Method: BioCReader.read_sentence

Defined in:
lib/simple_bioc/bioc_reader.rb

.read_sentence(xml, sentence, options = {}) ⇒ Object



90
91
92
93
94
95
96
97
# File 'lib/simple_bioc/bioc_reader.rb', line 90

def read_sentence(xml, sentence, options = {})
  sentence.text = read_text(xml, "text")
  sentence.offset = read_int(xml, "offset")
  read_infon(xml, sentence)
  read_recursive(xml, sentence, "annotation")
  read_recursive(xml, sentence, "relation")
  true
end