Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
从Windows命令行使用foma/flookup_Windows_Parsing_Command Line_Nlp_Morphological Analysis - Fatal编程技术网

从Windows命令行使用foma/flookup

从Windows命令行使用foma/flookup,windows,parsing,command-line,nlp,morphological-analysis,Windows,Parsing,Command Line,Nlp,Morphological Analysis,我正在关注foma的教程,除了flookup,其他一切都对我有效。我已经将C:\Program Files\foma添加到我的PATH系统变量中,并编译了lexc、foma和bin文件,但是当我尝试 C:\Program Files\foma>echo "begging" | flookup english.bin C:\Program Files\foma>echo "beg+V+PresPart" | flookup -i english.bin 我明白了 "begging"

我正在关注foma的教程,除了flookup,其他一切都对我有效。我已经将C:\Program Files\foma添加到我的PATH系统变量中,并编译了lexc、foma和bin文件,但是当我尝试

C:\Program Files\foma>echo "begging" | flookup english.bin
C:\Program Files\foma>echo "beg+V+PresPart" | flookup -i english.bin
我明白了

"begging"       +?
当我尝试的时候

C:\Program Files\foma>echo "begging" | flookup english.bin
C:\Program Files\foma>echo "beg+V+PresPart" | flookup -i english.bin
我明白了

正确的输出应该是

begging beg+V+PresPart

分别


我猜测这是Linux和Windows之间的兼容性问题。我该怎么做才能使这个工作正常?

这是一个老问题,但万一有人还需要答案:这是要分析的单词后的尾随空格。这适用于Windows 10 cmd:

$ echo city| flookup.exe english.bin
city    city+N+Sg
请注意,管道必须紧跟在单词末尾之后,否则它将查找“city”