Commit
·
a40e3bd
1
Parent(s):
eb8888e
Update README.md
Browse files
README.md
CHANGED
|
@@ -82,9 +82,9 @@ class KeyphraseExtractionPipeline(TokenClassificationPipeline):
|
|
| 82 |
**kwargs
|
| 83 |
)
|
| 84 |
|
| 85 |
-
def postprocess(self,
|
| 86 |
results = super().postprocess(
|
| 87 |
-
|
| 88 |
aggregation_strategy=AggregationStrategy.FIRST,
|
| 89 |
)
|
| 90 |
return np.unique([result.get("word").strip() for result in results])
|
|
|
|
| 82 |
**kwargs
|
| 83 |
)
|
| 84 |
|
| 85 |
+
def postprocess(self, all_outputs):
|
| 86 |
results = super().postprocess(
|
| 87 |
+
all_outputs=all_outputs,
|
| 88 |
aggregation_strategy=AggregationStrategy.FIRST,
|
| 89 |
)
|
| 90 |
return np.unique([result.get("word").strip() for result in results])
|