2

我正在关注https://fomafst.github.io/morphtut.html上的 foma 教程,除了flookup之外,一切都对我有用。我已将 C:\Program Files\foma 添加到我的 PATH 系统变量并编译了 lexc、foma 和 bin 文件,但是当我尝试

C:\Program Files\foma>echo "begging" | flookup english.bin

我明白了

"begging"       +?

当我尝试

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

我明白了

"beg+V+PresPart"        +?

正确的输出应该是

begging beg+V+PresPart

beg+V+PresPart  begging

分别。

我最好的猜测是这是 Linux 和 Windows 之间的兼容性问题。我应该怎么做才能完成这项工作?

4

1 回答 1

1

这是一个古老的问题,但如果有人仍然需要答案:它是要分析的单词之后的尾随空格。这适用于 Windows 10 cmd:

$ echo city| flookup.exe english.bin
city    city+N+Sg

注意管道必须紧跟在词尾之后,否则它会查找“city”

于 2020-10-01T13:55:15.330 回答