sgnlp
Quickstart
Advanced Tutorial
API Reference
models
csgec
emotion_entailment
lsr
rst_pointer
rumour_detection_twitter
sentic_gcn
span_extraction
config
data_class
eval
evaluate_squad
modeling
postprocess
preprocess
tokenization
train
utils
ufd
utils
sgnlp
»
sgnlp
»
models
»
span_extraction
»
utils
»
sgnlp.models.span_extraction.utils.get_final_text
View page source
sgnlp.models.span_extraction.utils.get_final_text
¶
get_final_text
(
pred_text
,
orig_text
,
do_lower_case
,
verbose_logging
=
False
)
[source]
¶
Project the tokenized prediction back to the original text.