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