Extract named entities and lemmas using StanfordCoreNLP.
Add this line to your application's Gemfile:
gem 'nabatheon'
And then execute:
$ bundle
Or install it yourself as:
$ gem install nabatheon
text = 'Angela Merkel met Nicolas Sarkozy on January 25th in Berlin to discuss a new austerity package. Sarkozy looked pleased, but Merkel was dismayed.'
Nabatheon.annotate(text)
- Fork it ( https://github.com/buren/nabatheon/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request