Archive

Posts Tagged ‘Tagging’

release a new version of rbtagger

May 21st, 2009

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 , ,

rbtagger suggested 0.2.5

June 23rd, 2008

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 , ,