예제 #1
0
 def read(self) -> List[str]:
     """Read headers file."""
     return io.read_data(self.doc, io.HEADERS_FILE).splitlines()
예제 #2
0
 def read(self):
     """Read structure file."""
     return io.read_data(self.doc, io.STRUCTURE_FILE)
예제 #3
0
 def read(self):
     """Read arbitrary corpus level string data from annotation file."""
     return io.read_data(None, self.name)
예제 #4
0
 def read(self, doc: str):
     """Read arbitrary string data from annotation file."""
     return io.read_data(doc, self.name)
예제 #5
0
 def read(self, doc: Optional[str] = None):
     """Read arbitrary string data from annotation file."""
     return io.read_data(self.doc or doc, self.name)