lfoppiano commited on
Commit
cf77f40
1 Parent(s): 16e8140

fix invalid class encapsulation

Browse files
Files changed (1) hide show
  1. document_qa/grobid_processors.py +6 -0
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