Module: PROIEL::PROIELXML::Reader Private
- Defined in:
- lib/proiel/proiel_xml/reader.rb
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Defined Under Namespace
Classes: Annotation, Div, InformationStatusValue, InformationStatuses, Morphology, MorphologyField, MorphologyValue, PartOfSpeechValue, PartsOfSpeech, Proiel, RelationValue, Relations, Sentence, Slash, Source, Token, TreebankFile
Class Method Summary collapse
-
.parse_io(io) ⇒ TreebankFile
private
Parses a PROIEL XML file.
-
.parse_xml(xml) ⇒ TreebankFile
private
Parses PROIEL XML data.
Class Method Details
.parse_io(io) ⇒ TreebankFile
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Parses a PROIEL XML file.
This does not automatically validate the PROIEL XML. If given an invalid PROIEL XML file, parsing is likely to succeed but the returned objects will be in an inconsistent state.
240 241 242 |
# File 'lib/proiel/proiel_xml/reader.rb', line 240 def self.parse_io(io) parse_xml(io.read) end |
.parse_xml(xml) ⇒ TreebankFile
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Parses PROIEL XML data.
This does not automatically validate the PROIEL XML. If given an invalid PROIEL XML file, parsing is likely to succeed but the returned objects will be in an inconsistent state.
224 225 226 |
# File 'lib/proiel/proiel_xml/reader.rb', line 224 def self.parse_xml(xml) TreebankFile.parse(xml) end |