You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Example not working because doc.spans is None (TypeError: 'NoneType' object is not iterable)
from natasha import NamesExtractor, MorphVocab, PER, Doc
extractor = NamesExtractor(MorphVocab())
Text = 'Посол Израиля на Украине Йоэль Лион признался, что пришел в шок, узнав о решении властей Львовской области объявить 2019 год годом лидера запрещенной в России Организации украинских националистов (ОУН) Степана Бандеры.'
doc = Doc(Text)
for span in doc.spans:
if span.type == PER:
span.extract_fact(extractor)
The text was updated successfully, but these errors were encountered:
Example not working because doc.spans is None (TypeError: 'NoneType' object is not iterable)
The text was updated successfully, but these errors were encountered: