class Corenlp::Enclitic
Public Instance Methods
enclitic_map()
click to toggle source
# File lib/corenlp/enclitic.rb, line 3 def enclitic_map # Note: This isn't really one-to-one (e.g. "'d" could be "had" or "would"): { "'ll" => "will", "'m" => "am", "'re" => "are", "'s" => "is", "'d" => "would", "'t" => "not", "'ve" => "have", "'nt" => "not", "n't" => "not" } end
expanded()
click to toggle source
# File lib/corenlp/enclitic.rb, line 18 def expanded enclitic_map[text] end