File "/opt/anaconda3/lib/python3.8/site-packages/summarizer/model_processors.py", line 116, in call
return self.run(body, ratio, min_length, max_length, algorithm=algorithm, use_first=use_first)
File "/opt/anaconda3/lib/python3.8/site-packages/summarizer/model_processors.py", line 87, in run
sentences = self.sentence_handler(body, min_length, max_length)
File "/opt/anaconda3/lib/python3.8/site-packages/summarizer/sentence_handler.py", line 24, in call
return self.process(body, min_length, max_length)
File "/opt/anaconda3/lib/python3.8/site-packages/summarizer/sentence_handler.py", line 21, in process
return [c.string.strip() for c in doc.sents if max_length > len(c.string.strip()) > min_length]
File "/opt/anaconda3/lib/python3.8/site-packages/summarizer/sentence_handler.py", line 21, in
return [c.string.strip() for c in doc.sents if max_length > len(c.string.strip()) > min_length]
AttributeError: 'spacy.tokens.span.Span' object has no attribute 'string'
File "/opt/anaconda3/lib/python3.8/site-packages/summarizer/model_processors.py", line 116, in call return self.run(body, ratio, min_length, max_length, algorithm=algorithm, use_first=use_first) File "/opt/anaconda3/lib/python3.8/site-packages/summarizer/model_processors.py", line 87, in run sentences = self.sentence_handler(body, min_length, max_length) File "/opt/anaconda3/lib/python3.8/site-packages/summarizer/sentence_handler.py", line 24, in call return self.process(body, min_length, max_length) File "/opt/anaconda3/lib/python3.8/site-packages/summarizer/sentence_handler.py", line 21, in process return [c.string.strip() for c in doc.sents if max_length > len(c.string.strip()) > min_length] File "/opt/anaconda3/lib/python3.8/site-packages/summarizer/sentence_handler.py", line 21, in
return [c.string.strip() for c in doc.sents if max_length > len(c.string.strip()) > min_length]
AttributeError: 'spacy.tokens.span.Span' object has no attribute 'string'