Hello,
I wanted to test ve, specificaly to parse French sentences. I installed FreeLing-4.0 from source on Fedora 27, as following
sudo dnf install boost-devel
wget https://github.com/TALP-UPC/FreeLing/releases/download/4.0/FreeLing-4.0.tar.gz
tar xvzf FreeLing-4.0.tar.gz
cd FreeLing-4.0
autoreconf --install
./configure
make
sudo make install
Then I created a new directory with the following Gemfile
source 'https://rubygems.org'
gem "ve"
Then running bundle install && pry, here is a copy/paste of a basic session:
[1] pry(main)> require 've'
/home/psychoslave/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/ve-0.0.3/lib/providers/japanese_transliterators.rb:100: warning: key "gwi" is duplicated and overwritten on line 101
/home/psychoslave/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/ve-0.0.3/lib/providers/japanese_transliterators.rb:100: warning: key "gwu" is duplicated and overwritten on line 101
/home/psychoslave/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/ve-0.0.3/lib/providers/japanese_transliterators.rb:100: warning: key "gwe" is duplicated and overwritten on line 101
/home/psychoslave/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/ve-0.0.3/lib/providers/japanese_transliterators.rb:100: warning: key "gwo" is duplicated and overwritten on line 101
=> true
[2] pry(main)> text = %q{Socrate (en grec ancien Σωκράτης / Sōkrátēs) est un philosophe grec du Ve siècle av. J.-C. (né vers -470/469, mort en -399). Il est connu comme l’un des créateurs de la philosophie morale. Socrate n’a laissé aucun écrit, mais sa pensée et sa réputation se sont transmises par des témoignages indirects. Ses disciples Platon et Xénophon ont notablement œuvré à maintenir l'image de leur maître, qui est mis en scène dans leurs œuvres respectives. Les philosophes Démétrios de Phalère, et Maxime de Tyr dans sa Neuvième Dissertation1 ont écrit que Socrate est mort à l’âge de 70 ans.}
=> "Socrate (en grec ancien Σωκράτης / Sōkrátēs) est un philosophe grec du Ve siècle av. J.-C. (né vers -470/469, mort en -399). Il est connu comme l’un des créateurs de la philosophie morale. Socrate n’a laissé aucun écrit, mais sa pensée et sa réputation se sont transmises par des témoignages indirects. Ses disciples Platon et Xénophon ont notablement œuvré à maintenir l'image de leur maître, qui estémis en scène dans leurs œuvres respectives. Les philosophes Démétrios de Phalère, et Maxime de Tyr dans sa Neuvième Dissertation1 ont
crit que Socrate est mort à l’âge de 70 ans."
[3] pry(main)> words = Ve.in(:fr).words(text)
NoMethodError: undefined method `[]' for nil:NilClass
from /home/psychoslave/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/ve-0.0.3/lib/ve.rb:20:in `provider_for'
[4] pry(main)> words = Ve.in(:en).words('I like melons.')
=> []
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.
Hello,
I wanted to test ve, specificaly to parse French sentences. I installed FreeLing-4.0 from source on Fedora 27, as following
sudo dnf install boost-devel wget https://github.com/TALP-UPC/FreeLing/releases/download/4.0/FreeLing-4.0.tar.gz tar xvzf FreeLing-4.0.tar.gz cd FreeLing-4.0 autoreconf --install ./configure make sudo make installThen 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.