brat报错:The server encountered a serious error, please contact the administrators at ____ and give th
The server encountered a serious error, please contact the administrators at ____ and give the id#
- 记录安装brat时遇到的坑
- 查看apache2的报错日志
- 我的解决方法
记录安装brat时遇到的坑
使用brat进行事件标注时,因为需要中文,所以使用了:
# n = re.sub(r'[^a-zA-Z0-9_-]', '_', n)
n = re.sub(u'[^a-zA-Z\u4e00-\u9fa5<>,0-9_-]', '_', n)
但是在中文触发词连接到论元时,会报错,无法进行角色的设置。brat底部界面显示The server encountered a serious error, please contact the administrators at ____ and give the id#
查看apache2的报错日志
我是在ubuntu上安装的brat,(之前在centos上同样遇到这个问题,当时没有解决),在 /var/log/apache2/error_log 中查看具体的错误,错误如下:
然后简单查看了报错信息在/server/src/server.py和/server/src/annotation.py这两个文件中的位置,以及在网上搜索了**UnicodeEncodeError: ‘ascii’ …**这个错误原因。
我的解决方法
我最后在/server/src/server.py这个文件中加了下面代码:
import sys
reload(sys)
sys.setdefaultencoding('utf8')
至此,可以正常运行,并解决中文触发词无法连接论元的问题。
brat报错:The server encountered a serious error, please contact the administrators at ____ and give th相关推荐
- The server encountered a serious error, please contact the administrators at ____ and give the id#
在访问brat的时候遇到提示The server encountered a serious error, please contact the administrators at ____ and ...
- 记录学习Java HttpServletRequests报错The server encountered an internal error that prevented it from fulfil
文章目录 一.错误提示 二.解决办法 一.错误提示 通过错误信息可以看出是出现空指针异常,并且报错在registerServlet.java的第26行. 二.解决办法 通过排查发现registerSe ...
- 登陆weblogic console报错 The server encountered an unexpected condition which prevented it from
登陆weblogic console报错 The server encountered an unexpected condition which prevented it from fulfilli ...
- 启动mysql服务是报错找不到pid_mysql报错 The server quit without updating PID file
我的mysql总是在重启的时候mysql的数据总是会初始化,我以为是的配置问题,所以在网上找了各种方法测试都不通过,下面看我遇到的几个错误. 重启mysql失败 [root@wulaoer_mysql ...
- 解决Hibernate报错The server time zone value is unrecognized or represents more than one time zone
解决Hibernate报错The server time zone value is unrecognized or represents more than one time zone 笔者在使 ...
- conda install 换源_科学网—Anaconda 报错Multiple Errors Encountered和添加国内镜像以及换源和恢复默认源 - 张伟的博文...
(一)情景一 在安装完成 Anaconda 后,创建虚拟环境接连遇到报错 Multiple Errors Encountered 和 Anaconda An HTTP error occurred ...
- 【Flink】Flink 写入 kafka 报错 The server disconnected before a response was received
文章目录 1.场景再现 1.1.概述 1.场景再现 1.1.概述 Flink 写入 kafka 报错 The server disconnected before a response was rec ...
- php7链接数据库报错The server requested authentication method unknown to the client
php7链接数据库报错The server requested authentication method unknown to the client 主要原因 是因为 mysql 8.0 升级了密码 ...
- Linux下MySQL起动报错The server quit without updating PID file
MySQL起动报错The server quit without updating PID file (/usr/local/mysql/data/ 查看日志: 131206 23:10:21 mys ...
最新文章
- 编码和编码格式一样吗?_学习如何像专业人士一样编码
- 【错误记录】Android Studio 编译报错 ( Invalid main APK outputs : EarlySyncBuildOutput )
- 使用C++版本Mxnett进行预测的注意事项
- 谷歌和 Facebook 是如何给工程师定职级和薪水的?
- 在.Net framework下遍历XML文挡树的两种算法
- JAVA之获取JavaSwing单选框JRadioButton选中的值(内容)
- java 反射 成员变量_Java 反射:成员变量
- spring的IOC原理,容器管理的bean类型、bean的生命周期
- mysql-cluste多少钱,mysql-cluster集群
- 1.高性能MySQL --- MySQL 架构
- 无限打开计算机cmd,影子系统无限蓝屏cmd怎么解决
- 解决 IIS 部署网站引用 woff/woff2/svg 字体报 404 错误
- SQL代码建表时引用外键,有红线提示引用了无效的表
- 2023复旦大学计算机考研信息汇总
- DTMF三种模式(SIPINFO,RFC2833,INBAND)
- 微信小程序实现文本两端对齐
- 开源J2EE项目Zheng环境Docker部署
- Ubuntu20.04版本系统时间如何设置成北京时区,我来教你【亲测有效】
- MATLAB中FFT的使用方法(频谱分析)
- 扭矩大好还是马力大好_马力大和扭矩大哪个更重要,马力和扭矩详解
热门文章
- 简练软考知识点整理-创建工作分解结构过程
- == 和 ===的区别
- 1台电脑可以上网,通过网络共享,让另外一台电脑也可以上网
- java三手交换智能下棋代码,基于Java的六子棋人工智能系统的设计研究
- Go并发模型:流水线与取消(Pipelines and cancellation译文)
- pete shinners_Hanselminutes播客155-带有Silverlight 3的C64模拟器,作者:Pete Brown
- JavaScript脑图
- 互联网中所说的“旁注”是什么?
- 腾讯广告算法大赛2020-广告产品种类单特征-入门级
- Amazing grace 奇异恩典