Traceback (most recent call last):



 "<ipython-input-9-21efd88a4f4f>", line 1, in <module>

tagger.predict(sentences)



 "C:\ProgramData\Anaconda3\lib\site-packages\flair\models\sequence_tagger_model.py", line 362, in predict

for i, batch in enumerate(dataloader):



 "C:\ProgramData\Anaconda3\lib\site-packages\torch\utils\data\dataloader.py", line 345, in __next__

data = self._next_data()



 "C:\ProgramData\Anaconda3\lib\site-packages\torch\utils\data\dataloader.py", line 385, in _next_data

data = self._dataset_fetcher.fetch(index)
# may raise StopIteration



 "C:\ProgramData\Anaconda3\lib\site-packages\torch\utils\data\_utils\fetch.py", line 44, in fetch

data = [self.dataset[idx] for idx in possibly_batched_index]



 "C:\ProgramData\Anaconda3\lib\site-packages\torch\utils\data\_utils\fetch.py", line 44, in <listcomp>

data = [self.dataset[idx] for idx in possibly_batched_index]



 "C:\ProgramData\Anaconda3\lib\site-packages\flair\datasets\base.py", line 125, in __getitem__

return Sentence(text, use_tokenizer=self.use_tokenizer)



 "C:\ProgramData\Anaconda3\lib\site-packages\flair\data.py", line 499, in __init__

text = self._restore_windows_1252_characters(text)



 "C:\ProgramData\Anaconda3\lib\site-packages\flair\data.py", line 847, in _restore_windows_1252_characters

return re.sub(r"[\u0080-\u0099]", to_windows_1252, text)



 "C:\ProgramData\Anaconda3\lib\re.py", line 192, in sub

return _compile(pattern, flags).sub(repl, string, count)

TypeError: expected string or bytes-like object

Traceback (most recent call last):


 "scripts/doc_checker.py", line 557, in <module>

if not validate(args.paths, args.add_ignore, not args.disable_numpydoc):


 "scripts/doc_checker.py", line 489, in validate

if not numpydoc_validate(path):


 "scripts/doc_checker.py", line 402, in numpydoc_validate

results = list(map(validate_object, to_validate))


 "scripts/doc_checker.py", line 328, in validate_object

noqa_checks = get_noqa_checks(doc)


 "scripts/doc_checker.py", line 298, in get_noqa_checks

if "# noqa:" in noqa_str:
TypeError: argument of type 'NoneType' is not iterable
