CWB编码语料库 [英] CWB encoding Corpus
问题描述
根据语料库工作台,要对语料库进行编码,我需要使用cwb-encode perl脚本
According to the Corpus Work Bench, to encode a corpus i need to use the cwb-encode perl script
对语料库进行编码,即使用cwb-encode工具将垂直文本转换为CWB二进制格式.请注意,以下命令必须在一行上输入." http://cogsci.uni-osnabrueck.de/~korpora /ws/CWBdoc/CWB_Encoding_Tutorial/node3.html
"encode the corpus, i.e. convert the verticalized text to CWB binary format with the cwb-encode tool. Note that the command below has to be entered on a single line." http://cogsci.uni-osnabrueck.de/~korpora/ws/CWBdoc/CWB_Encoding_Tutorial/node3.html
$ cwb-encode -d /corpora/data/example -f example.vrt -R /usr/local/share/cwb/registry/example -P pos -S s
当我尝试它时,它说文件丢失了,但是我确定文件在$ HOME/corpora/data/example中,错误是
when i tried it, it says the file is missing but i'm sure the file is in $HOME/corpora/data/example, the error was
$ cwb-encode -d /corpora/data/example -f example.vrt -R /usr/local/share/cwb/registry/example -P pos -S s
example.vrt: No such file or directory
Can't open input file example.vrt!
有人能弄清楚为什么吗?
can anyone figure out why?
推荐答案
给出example.vrt
的完整路径的方法:
How about giving full path to example.vrt
:
cwb-encode -d /corpora/data/example -f /corpora/data/example/example.vrt -R /usr/local/share/cwb/registry/example -P pos -S s
这篇关于CWB编码语料库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!