开放式拼写检查器的字典文件结构

发布于 2024-12-11 13:31:31 字数 272 浏览 0 评论 0原文

是否有任何关于 FreeDict、Aspell、Hunspell/OpenOffice 词典的文件结构的解释文档或教程,特别是关于每个 .dic 文件中每行末尾的开关?我的猜测是,这些开关描述了该单词的语义解释,无论它是

  • 名词、
  • 形容词、
  • 副词
  • 、副词

还是上述的任意组合。但我不知道如何将这些与开关字符匹配。

我也对 .aff 文件描述的内容感到好奇。

Is there any explanation docs or tutorials of the file structure of FreeDict, Aspell, Hunspell/OpenOffice Dictionaries especially concerning the switches at the end of each row in each .dic file? My guess is that the switches describe the semantic interpretation of the word whether it's a

  • noun
  • adjective
  • adverb
  • adverbial
  • etc.

or any combination of the above. But I don't know how to match these to the switch characters.

I'm also curios about what the .aff file describes.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

塔塔猫 2024-12-18 13:31:31

看起来是一个很好的起点,此页面的下载可能包含您正在寻找的格式文档。

This looks like a good starting point, and the downloads at this page may have the format documentation you're looking for.

我偏爱纯白色 2024-12-18 13:31:31

只有几个链接可能对您有帮助:

这是在 sthackoverflow 上:
OpenOffice 词典的格式是什么?

第二个很好开始

http://sourceforge.net/apps/mediawiki/freedict/index.php?title=Main_Page

希望这有帮助

Just a couple of links that might help you:

this is on sthackoverflow :
What's the format of the OpenOffice dictionaries?

this second one is a good start

http://sourceforge.net/apps/mediawiki/freedict/index.php?title=Main_Page

hope this helps

口干舌燥 2024-12-18 13:31:31

在 Hunspell 中,您选择的标签是任意的,除了您分配给它们的含义之外,它们没有任何意义。您可以选择使用字母、数字 (1-65535) 等。

词缀文件描述了很多东西,但主要涉及单词如何变形。

例如:

$ test.dic
4
apple/a
banana/a
green/b
small/b

$ test.aff
SFX a Y 2 # Allow the following 2 suffixes to words with the "a" flag.
SFX a 0 s . # An "s" at the end for words ending in any letter (signified by the dot). "Apples" and "bananas". 
SFX a 0 s' . # "Apples'" and "bananas'".

SFX b Y 2
SFX b 0 er . # "Greener" and "smaller".
SFX b 0 est . # "Greenest" and "smallest".

手册详细解释了大部分内容。还有测试文件可以看一下。

In Hunspell the tags you choose are arbitrary, they have no meaning other than that which you assign to them. You can choose from using letters, numbers (1-65535) and more.

The affix file describes many things, but is mainly concerned with how words are inflected.

For example:

$ test.dic
4
apple/a
banana/a
green/b
small/b

$ test.aff
SFX a Y 2 # Allow the following 2 suffixes to words with the "a" flag.
SFX a 0 s . # An "s" at the end for words ending in any letter (signified by the dot). "Apples" and "bananas". 
SFX a 0 s' . # "Apples'" and "bananas'".

SFX b Y 2
SFX b 0 er . # "Greener" and "smaller".
SFX b 0 est . # "Greenest" and "smallest".

The manual explains most of the things in detail. There are also test files one can look at.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文