这是一个自我回答的问题,描述了如何解决安装brat注释工具时出现的问题,该工具用于在启用了SELinux的普通Linux机器上创建用于NLP的注释语料库.这基于该工具的1.3版.
作为安装程序记录包括以下步骤:
/var/www/html或$HOME/public_htmlbrat-v1.3_Crunchy_Frog简单的目录,例如bratsudo ./install.shsudo service httpd start如果尚未运行,请启动Web服务器()问题:在执行此过程时,任何尝试在浏览器中使用brat(通过将其指向http://localhost/brat/index.xhtml失败,并在屏幕上显示以下错误消息:
Error: ActiongetCollectionInformation failed on error Internal Server Error
Error: Actionwhoami failed on error Internal Server Error
Error: ActionloadConf failed on error Internal Server Error
Run Code Online (Sandbox Code Playgroud)
Apache错误日志(通常位于/var/log/httpd/error_log)中也显示错误:
(13)Permission denied: exec of '/var/www/html/new/ajax.cgi' failed, referer: http://localhost/new/index.xhtml
Premature end of script headers: ajax.cgi, referer: http://localhost/new/index.xhtml
Run Code Online (Sandbox Code Playgroud)
如何解决这个问题呢?
我想将多个实体的标签注释为单个单词。
在小子有关“ Colorado Richly Annotated Full Text Corpus(CRAFT)”的示例中,单词“ Collagen”由多个标签(例如“ RR”和“ GC CC”)注释。
现在,我尝试将多个实体的标签注释为单个单词,但是小子说错误
“ AnnotationError:错误[LABEL A]不能与[LABEL B] T [X]具有相同的跨度”
信息。
有什么问题 ?