Created
April 10, 2016 12:32
-
-
Save anonymous/4d067db5c2307be31f983600ba7065fa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'engtagger' | |
require 'nokogiri' | |
tgr = EngTagger.new | |
sample = "Hello world." | |
tagged = tgr.add_tags(sample) | |
tag_xml = Nokogiri::XML(tagged) | |
r = tag_xml.xpath("/nn") | |
puts r |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment