This repository has been archived by the owner on Dec 16, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
modified the make_output_human_readable method in basic_classifier fo…
…r allennlp-demo (#4038) * modified the make_output_human_readable method in basic_classifier, so that the outputdict can contain a tokens field for allennlp-demo. This fix is only for BERT and may not be compatiable to other models. * added namespace to the constructer * Formatting * Fix tests * Formatting Co-authored-by: Dirk Groeneveld <dirkg@allenai.org> Co-authored-by: Evan Pete Walsh <epwalsh10@gmail.com>
- Loading branch information
1 parent
6ea6c59
commit d709e59
Showing
2 changed files
with
26 additions
and
8 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