Spaces:
Sleeping
Sleeping
fix invalid class encapsulation
Browse files
document_qa/grobid_processors.py
CHANGED
@@ -514,6 +514,12 @@ class GrobidAggregationProcessor(GrobidProcessor, GrobidQuantitiesProcessor, Gro
|
|
514 |
entities = self.prune_overlapping_annotations(all_entities)
|
515 |
return entities
|
516 |
|
|
|
|
|
|
|
|
|
|
|
|
|
517 |
@staticmethod
|
518 |
def prune_overlapping_annotations(entities: list) -> list:
|
519 |
# Sorting by offsets
|
|
|
514 |
entities = self.prune_overlapping_annotations(all_entities)
|
515 |
return entities
|
516 |
|
517 |
+
def extract_quantities(self, text):
|
518 |
+
return self.gqp.extract_quantities(text)
|
519 |
+
|
520 |
+
def extract_materials(self, text):
|
521 |
+
return self.gmp.extract_materials(text)
|
522 |
+
|
523 |
@staticmethod
|
524 |
def prune_overlapping_annotations(entities: list) -> list:
|
525 |
# Sorting by offsets
|