(self, input_file)
| 226 | return document_object |
| 227 | |
| 228 | def process_single(self, input_file): |
| 229 | doc = self.process_structure(input_file) |
| 230 | |
| 231 | for paragraph in doc["passages"]: |
| 232 | entities = self.process_single_text(paragraph["text"]) |
| 233 | paragraph["spans"] = entities |
| 234 | |
| 235 | return doc |
| 236 | |
| 237 | def parse_grobid_xml(self, text, coordinates=False): |
| 238 | """Parse GROBID TEI-XML into a structured passage dict. |
nothing calls this directly
no test coverage detected