开放式拼写检查器的字典文件结构
是否有任何关于 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这看起来是一个很好的起点,此页面的下载可能包含您正在寻找的格式文档。
This looks like a good starting point, and the downloads at this page may have the format documentation you're looking for.
只有几个链接可能对您有帮助:
这是在 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
在 Hunspell 中,您选择的标签是任意的,除了您分配给它们的含义之外,它们没有任何意义。您可以选择使用字母、数字 (1-65535) 等。
词缀文件描述了很多东西,但主要涉及单词如何变形。
例如:
手册详细解释了大部分内容。还有测试文件可以看一下。
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:
The manual explains most of the things in detail. There are also test files one can look at.