CWB encoding Corpus

霸气de小男生 提交于 2020-01-14 03:48:18

问题


According to the Corpus Work Bench, to encode a corpus i need to use the cwb-encode perl script

"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

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?


回答1:


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


来源:https://stackoverflow.com/questions/5589684/cwb-encoding-corpus

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!