Git Product home page Git Product logo

Comments (6)

jaumeortola avatar jaumeortola commented on July 20, 2024

Hi,
The DictionaryExporter in LT expects the speller dictionary to be inside a "hunspell" folder:

if (new File(filename).getAbsolutePath().contains("hunspell")) {
  FSADumpTool.main("--raw-data", "-d", args[0]);
} else {
  FSADumpTool.main("--raw-data", "-x", "-d", args[0]);
}

Taking the polish dict from the hunspell folder I can dump it. But I'm not sure if everything is OK.

from languagetool.

milekpl avatar milekpl commented on July 20, 2024

Jaume, I tried to dump the dictionary from the current folder. Then the error will appear. I simply wanted to see if it was encoded properly (because there is an encoding-related bug I discovered:

I don't think hardcoding the folder helps, and -x should work for frequency dictionaries. Otherwise, we cannot say we supply the source, which violates Debian principles - this is why we have documented all decoding procedures so that one could get the original sources. This means, however, that the decoding procedure has to produce readable frequency files, I'm afraid.

See also morfologik/morfologik-stemming#15

from languagetool.

danielnaber avatar danielnaber commented on July 20, 2024

Also see morfologik/morfologik-stemming#35

from languagetool.

danielnaber avatar danielnaber commented on July 20, 2024

So I understand that the problem is that we add the -x option depending on the hard-coded directory name. Instead we need to look inside the .info file and see if the fsa.dict.encoder option is set and only use the -x option if that is the case. Is that correct?

from languagetool.

danielnaber avatar danielnaber commented on July 20, 2024

@milekpl Could you maybe help with this, i.e. reply to my question above from 2014-09-24?

from languagetool.

milekpl avatar milekpl commented on July 20, 2024

@danielnaber: it won't help. The encoder will be set but frequency dictionaries have more data. These data are not dumped properly. I tried to persuade Jaume to add code to dump frequency data but this is not a trivial thing to do, as the source format is XML.

from languagetool.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.