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

Joh*_*hnJ 5 dictionary nlp full-text-search ispell

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

CREATE TEXT SEARCH DICTIONARY english_ispell (
    TEMPLATE = ispell,
    DictFile = english, 
    AffFile = english, 
    StopWords = english
);
Run Code Online (Sandbox Code Playgroud)

所以,我认为这需要文件english.dictenglish.affix例如:

/usr/share/postgresql/9.2/tsearch_data
Run Code Online (Sandbox Code Playgroud)

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

所以......我跟着这个职位,并下载必要的词典,从开放的办公室的人,并更名为.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
 "
Run Code Online (Sandbox Code Playgroud)

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

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

Chr*_*ers 3

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