Method: BioCReader.read_annotation
- Defined in:
- lib/simple_bioc/bioc_reader.rb
.read_annotation(xml, annotation, options = {}) ⇒ Object
96 97 98 99 100 101 102 |
# File 'lib/simple_bioc/bioc_reader.rb', line 96 def read_annotation(xml, annotation, = {}) annotation.id = xml["id"] annotation.text = read_text(xml, "text") read_infon(xml, annotation) read_recursive(xml, annotation, "location") true end |