class LLT::Review::Treebank::Sentence
Private Instance Methods
diff_namespace()
click to toggle source
# File lib/llt/review/treebank/sentence.rb, line 26 def diff_namespace Review::Treebank::Difference end
dummy_word(id)
click to toggle source
# File lib/llt/review/treebank/sentence.rb, line 19 def dummy_word(id) w = Word.new(id) w.form = "-" w.inexistant = true w end
report_container()
click to toggle source
# File lib/llt/review/treebank/sentence.rb, line 6 def report_container reports = { words: nil, heads: nil, relations: :relation, lemmata: :lemma, } reports.each_with_object({}) do |(tag, requested), hsh| hsh[tag] = Report::Generic.new(tag, size, requested) end.merge(postags: Report::Postags.new(size)) end