Skip to content

Instantly share code, notes, and snippets.

Created April 10, 2016 12:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/4d067db5c2307be31f983600ba7065fa to your computer and use it in GitHub Desktop.
Save anonymous/4d067db5c2307be31f983600ba7065fa to your computer and use it in GitHub Desktop.
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