Morfologik's automata don't really require the .info file -- this file
contains additional metadata required for add-on applications (such as
language tool) and for "decoding" information stored in the automaton.
You can, in fact, dump the content of any automaton file directly
without any .info file, but this will show you the exact automaton
entries.

I guess what I'm trying to say is that Morfologik is a low-level tool.
Downstream packages, such as LT, should handle sanity checks by
verifying if all required files are in place and reporting a more
appropriate message if they're not.

Dawid

On Tue, Nov 4, 2014 at 6:31 PM, Jonathon Churchill
<jchurch...@iparadigms.com> wrote:
> Hi, just bringing up an issue I've just overcome: while it's clear when
> building a POS Dictionary that you need an .info file, it is deceptively
> less clear that you need an .info file in the same directory with the same
> name as your .dict file when dumping using DictionaryExporter (ie
> xyz/resources/example.dict must be accompanied by
> xyz/resources/example.info).
>
> It is not a parameter given in any method call, but if it is missing you
> will be greeted by this vague commentary from Morfologik functionality,
> before the code exits leaving an empty dump file:
>
> Warning: FSA automaton without metadata file.
> No dictionary metadata available.
>
> If you don't already know what you're looking for, you won't know what
> you're missing. It is mentioned indirectly here:
> http://wiki.languagetool.org/developing-a-tagger-dictionary#toc5
> However, at first sight this seemed to refer to POSDictionaryBuilder (since
> it is part of several necessary function calls).
>
> I felt this was worth bringing up for at least some documentation touch-ups,
> but wasn't sure whether this is necessarily a Morfologik or a
> LT-implementation of Morfologik issue, so thought I'd raise it here first
> for thoughts.
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Languagetool-devel mailing list
> Languagetool-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/languagetool-devel
>

------------------------------------------------------------------------------
_______________________________________________
Languagetool-devel mailing list
Languagetool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-devel

Reply via email to