gpt4 book ai didi

dictionary - 我在哪里可以下载 ispell *.dict 和 *.affix 文件?

转载 作者:行者123 更新时间:2023-12-03 18:26:22 24 4
gpt4 key购买 nike

我对 postgresql 全文搜索很陌生,我正在设置配置,因为我可以在哪里下载 ispell *.dict 和 *.affix 文件(与 docs 完全一样):

CREATE TEXT SEARCH DICTIONARY english_ispell (
TEMPLATE = ispell,
DictFile = english,
AffFile = english,
StopWords = english
);

所以,我认为这需要文件 english.dictenglish.affix例如:
/usr/share/postgresql/9.2/tsearch_data

但是这些文件不存在。我只有 ispell_sample.dictispell_sample.affix - 当包含在上面时工作正常 - 没问题。

所以...我跟着这个 post并从 the open office people 下载所需的字典并更名为 .dic.dict.aff.affix .然后我检查了(使用 file -bi dict.affixfile -bi english.dict 并且它们是 UTF8 编码的)。

当我运行上面的文本搜索字典时,出现错误:
 ERROR:  wrong affix file format for flag
CONTEXT: line 2778 of configuration file "/usr/share/postgresql/9.2/tsearch_data/english.affix": "COMPOUNDMIN 1
"

我想知道是否有人有关于如何解决这个问题的线索,或者是否有人以前遇到过这个问题。
谢谢。/。

更新:1:我想这个问题可以改写如下: where can I download the ispell *.dict and *.affix file for postgres

最佳答案

这是一个很好的引用:https://www.cs.hmc.edu/~geoff/ispell-dictionaries.html对于任何语言的词典来说,这是一个很好的资源。

关于dictionary - 我在哪里可以下载 ispell *.dict 和 *.affix 文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18230269/

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