Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
percevalw committed Sep 7, 2023
1 parent cdb5c12 commit 7f42040
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions edspdf/trainable_pipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,24 +375,6 @@ def preprocess_supervised(self, doc: PDFDoc) -> Dict[str, Any]:
"""
return self.preprocess(doc)

def clean_gold_for_evaluation(self, gold: PDFDoc) -> PDFDoc:
"""
Clean the gold document before evaluation.
Only the attributes that are predicted by the component should be removed.
By default, this is a no-op.
Parameters
----------
gold: PDFDoc
Gold document
Returns
-------
PDFDoc
The document without attributes that should be predicted
"""
return gold

def __call__(self, doc: PDFDoc) -> PDFDoc:
"""
Applies the component on a single doc.
Expand Down

0 comments on commit 7f42040

Please sign in to comment.