Batch text processing #73
Replies: 5 comments
-
You can do it like this: def batch_predict_entities(self, texts, labels, flat_ner=True, threshold=0.5):
"""
Predict entities for a batch of texts.
texts: List of texts | List[str]
labels: List of labels | List[str]
...
""" |
Beta Was this translation helpful? Give feedback.
-
Thank you very much, I tried this approach and came accross this issue: Is there any plan to resolve it anytime soon on the new releases? |
Beta Was this translation helpful? Give feedback.
-
Fixed now. You can install v0.1.9 @Definelymes |
Beta Was this translation helpful? Give feedback.
-
Hi @urchade Urchade |
Beta Was this translation helpful? Give feedback.
-
Hi, The batch processing are processed in parallel @Hitish99 |
Beta Was this translation helpful? Give feedback.
-
Hi, I was wondering if there is a feature (or would be in future) to process multiple texts at a same time instead of processing them one by one in sequential manner.
Beta Was this translation helpful? Give feedback.
All reactions