Open psychoslave opened 6 years ago
Hi, sorry for the late reply. I was out traveling without my computer.
Unfortunately Ve only supports Freeling in English at this point. You would have to create a new provider file, similar to https://github.com/Kimtaro/ve/blob/master/lib/providers/freeling_en.rb, and modify it to work with Freeling's French parser output.
I don't have Freeling installed at the moment so I can't check, but if the French parser has the exact same type of output as the English parser, then you could trick the freeling_en.rb
file to use French instead by making these changes:
On https://github.com/Kimtaro/ve/blob/master/lib/providers/freeling_en.rb#L24 change en.cfg
to fr.cfg
On https://github.com/Kimtaro/ve/blob/master/lib/providers/freeling_en.rb#L231 change :en
to :fr
I hope this helps.
Thank you very much @Kimtaro for your reply. Right now I have to focus on other priorities, but your feedback will certainly help me when I can allocate again some time to the project for which I was making this test.
Hello,
I wanted to test ve, specificaly to parse French sentences. I installed FreeLing-4.0 from source on Fedora 27, as following
Then I created a new directory with the following Gemfile
Then running
bundle install && pry
, here is a copy/paste of a basic session:Given this, what should be checked? It seems the French parser doesn't work at all, while the English one just provides completely irrelevant results with an empty array.