When input > 512 tokens, sentiment had to perform extractive summary to reduce the input down to a size that the sentiment model can handle. During this function call, getSummary returns a dict with summary key, when sentiment analyser expectes a raw string. Fixed by setting text_to_analyse = getSummary(input)['summary']
Fixes #193
When input > 512 tokens, sentiment had to perform extractive summary to reduce the input down to a size that the sentiment model can handle. During this function call, getSummary returns a dict with
summary
key, when sentiment analyser expectes a raw string. Fixed by settingtext_to_analyse = getSummary(input)['summary']