Just released a new version of rbtagger gem. It’s much easier to use as I now include the Brown Corpus and Lexicon in the gem. This means to create the tagger using the default Corpus no arguments are required.
tagger = Brill::Tagger.new
tagger.tag("some body of text")
To install:
gem install rbtagger
Software Gem, Ruby, Tagging
I just released a new version of rbtagger that includes a little feature called suggest. After loading the rule tagger, you can pass it a chunk of text and have it suggest key words to use for tagging. Here’s how it works:
require 'rbtagger'
tagger = Brill::Tagger.new( 'LEXICON', 'LEXICALRULEFILE', 'CONTEXTUALRULEFILE' )
tagger.suggest( File.read('sample.txt') )
=> [['doctor', 'NN', 3],['treatment','NN',5]]
Read more…
Software Eric Brill, Ruby, Tagging
Recent Comments