-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix pre chunking logic for negative confidences (#657)
If `return_negative_confidence` is set `True` for prediction of a sequence labeling model, the return format is a `List[Dict]` instead of `List[List[Dict]]`. As a result, the code added for pre chunking and then remerging chunks into a single document needs modifications to work error free.
- Loading branch information
Showing
2 changed files
with
131 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters