Esempio n. 1
0
 def from_conllu_string(self, string):
     """Load a document from a conllu-formatted string."""
     reader = ConlluReader(filehandle=io.StringIO(string))
     reader.apply_on_document(self)
Esempio n. 2
0
 def from_conllu_string(self, string):
     """Load a document from a conllu-formatted string."""
     reader = ConlluReader(filehandle=io.StringIO(string))
     reader.apply_on_document(self)
Esempio n. 3
0
 def load_conllu(self, filename=None):
     """Load a document from a conllu-formatted file."""
     reader = ConlluReader(files=filename)
     reader.apply_on_document(self)