CWB编码语料库 [英] CWB encoding Corpus

查看:148
本文介绍了CWB编码语料库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据语料库工作台,要对语料库进行编码,我需要使用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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆