gpt4 book ai didi

installation - TreeTagger 安装成功但无法打开 .par 文件

转载 作者:行者123 更新时间:2023-12-04 04:57:31 45 4
gpt4 key购买 nike

有谁知道如何解决 TreeTagger 中的这个文件读取错误?这是一种常用的自然语言处理工具 POS标记、词形还原和块化句子?

alvas@ikoma:~/treetagger$ echo 'Hello world!' | cmd/tree-tagger-english 
reading parameters ...

ERROR: Can't open for reading: /home/alvas/treetagger/lib/english.par
aborted.

我没有遇到任何可能的安装问题,如 http://www.ims.uni-stuttgart.de/projekte/corplex/TreeTagger/installation-hints.txt 所暗示的那样.
我已按照网页上的说明进行操作,并且已正确安装( http://www.ims.uni-stuttgart.de/projekte/corplex/TreeTagger/#Linux ):
alvas@ikoma:~$ mkdir treetagger
alvas@ikoma:~$ cd treetagger
alvas@ikoma:~/treetagger$ wget ftp://ftp.ims.uni-stuttgart.de/pub/corpora/tree-tagger-linux-3.2.tar.gz
alvas@ikoma:~/treetagger$ wget ftp://ftp.ims.uni-stuttgart.de/pub/corpora/tagger-scripts.tar.gz
alvas@ikoma:~/treetagger$ wget ftp://ftp.ims.uni-stuttgart.de/pub/corpora/install-tagger.sh
alvas@ikoma:~/treetagger$ wget ftp://ftp.ims.uni-stuttgart.de/pub/corpora/dutch-par-linux-3.2-utf8.bin.gz
alvas@ikoma:~/treetagger$ wget ftp://ftp.ims.uni-stuttgart.de/pub/corpora/german-par-linux-3.2-utf8.bin.gz
alvas@ikoma:~/treetagger$ wget ftp://ftp.ims.uni-stuttgart.de/pub/corpora/italian-par-linux-3.2-utf8.bin.gz
alvas@ikoma:~/treetagger$ wget ftp://ftp.ims.uni-stuttgart.de/pub/corpora/spanish-par-linux-3.2-utf8.bin.gz
alvas@ikoma:~/treetagger$ wget ftp://ftp.ims.uni-stuttgart.de/pub/corpora/french-par-linux-3.2-utf8.bin.gz

alvas@ikoma:~/treetagger$ sh install-tagger.sh

Linux version of TreeTagger installed.
Tagging scripts installed.
German parameter file (Linux, UTF8) installed.
German chunker parameter file (Linux) installed.
French parameter file (Linux, UTF8) installed.
French chunker parameter file (Linux, UTF8) installed.
Italian parameter file (Linux, UTF8) installed.
Spanish parameter file (Linux, UTF8) installed.
Dutch parameter file (Linux, UTF8) installed.
Path variables modified in tagging scripts.

You might want to add /home/alvas/treetagger/cmd and /home/alvas/treetagger/bin to the PATH variable so that you do not need to specify the full path to run the tagging scripts.

但是当我尝试测试该软件时,我收到以下错误:
alvas@ikoma:~/treetagger$ echo 'Hello world!' | cmd/tree-tagger-english 
reading parameters ...

ERROR: Can't open for reading: /home/alvas/treetagger/lib/english.par
aborted.
alvas@ikoma:~/treetagger$ echo 'Das ist ein Test.' | cmd/tagger-chunker-german

ERROR: Can't open for reading: /home/alvas/treetagger/lib/german-chunker.par
aborted.

ERROR: Can't open for reading: /home/alvas/treetagger/lib/german.par
aborted.
reading parameters ...

ERROR: Can't open for reading: /home/alvas/treetagger/lib/german.par
aborted.

最佳答案

我认为有两个问题:首先,脚本的名称中应该有“-utf8”,例如cmd/tagger-chunker-german-utf8 ,因为您下载了 UTF-8 数据。其次,标记和分块都需要一个数据文件。查看主页,其中有“PC 的参数文件”和“PC 的 Chunker 参数文件”部分 - 从这两个部分下载文件,然后重新执行 install-tagger.sh .

关于installation - TreeTagger 安装成功但无法打开 .par 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15503388/

45 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com