<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -31,3 +31,5 @@ ext/word_tagger/word_tagger.so
 lib/word_tagger.so
 ext/word_tagger/word_tagger.bundle
 lib/word_tagger.bundle
+pkg/
+doc/</diff>
      <filename>.gitignore</filename>
    </modified>
    <modified>
      <diff>@@ -2,7 +2,11 @@ $:.unshift(File.dirname(__FILE__)) unless
   $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
 
 module RbTagger
-  
+  class &lt;&lt; self
+    def tags_from_file( file )
+      File.read(file).split(&quot;\n&quot;).map{|t| t.strip}
+    end
+  end
 end
 
 require 'word/tagger'</diff>
      <filename>lib/rbtagger.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,13 @@
 module Word
   require 'word_tagger'
   class Tagger &lt; Tagger::WordTagger
+    def initialize( tags_file, options = {} )
+      load_tags( RbTagger.tags_from_file( tags_file ) )
+      set_words( options[:words] || 2 )
+    end
+
     def execute( text )
+      # strip non alpha characters
       super( text.gsub(/[^\w]/,' ') )
     end
   end</diff>
      <filename>lib/word/tagger.rb</filename>
    </modified>
    <modified>
      <diff>@@ -4,9 +4,7 @@ class TestWordTagger &lt; Test::Unit::TestCase
   
   def setup
     if !defined?($wtagger)
-      $wtagger = Word::Tagger.new
-      $wtagger.load_tags( File.read(File.join(File.dirname(__FILE__),'fixtures','tags.txt') ).split(&quot;\n&quot;).map{|t| t.strip} )
-      $wtagger.set_words( 4 )
+      $wtagger = Word::Tagger.new( File.join(File.dirname(__FILE__),'fixtures','tags.txt'), :words =&gt; 4 )
     end
   end
 </diff>
      <filename>test/test_word_tagger.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>e8cabf6eed2925cbf7288d4cd52da3a763a46469</id>
    </parent>
  </parents>
  <author>
    <name>Todd Fisher</name>
    <email>todd.fisher@gmail.com</email>
  </author>
  <url>http://github.com/taf2/rb-brill-tagger/commit/32be09d11dbe475e9dc31ed7c88060fa00f30b48</url>
  <id>32be09d11dbe475e9dc31ed7c88060fa00f30b48</id>
  <committed-date>2008-05-14T09:43:50-07:00</committed-date>
  <authored-date>2008-05-14T09:43:50-07:00</authored-date>
  <message>update tests</message>
  <tree>e0c7c4783f816f708ff505d2388bd4f9b822dea9</tree>
  <committer>
    <name>Todd Fisher</name>
    <email>todd.fisher@gmail.com</email>
  </committer>
</commit>
