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):


 "/usr/local/lib/python3.7/asyncio/runners.py", line 43, in run

return loop.run_until_complete(main)


 "/usr/local/lib/python3.7/asyncio/base_events.py", line 583, in run_until_complete

return future.result()


 "/usr/src/homeassistant/homeassistant/__main__.py", line 249, in setup_and_run_hass

safe_mode=args.safe_mode,


 "/usr/src/homeassistant/homeassistant/bootstrap.py", line 89, in async_setup_hass

await async_from_config_dict(config_dict, hass)


 "/usr/src/homeassistant/homeassistant/bootstrap.py", line 132, in async_from_config_dict

await _async_set_up_integrations(hass, config)


 "/usr/src/homeassistant/homeassistant/bootstrap.py", line 377, in _async_set_up_integrations

*(async_setup_component(hass, domain, config) for domain in domains_to_load)


 "/usr/src/homeassistant/homeassistant/setup.py", line 49, in async_setup_component

return await task
# type: ignore


 "/usr/src/homeassistant/homeassistant/setup.py", line 145, in _async_setup_component

hass, config, integration


 "/usr/src/homeassistant/homeassistant/config.py", line 704, in async_process_component_config

return component.CONFIG_SCHEMA(config)
# type: ignore


 "/usr/local/lib/python3.7/site-packages/voluptuous/schema_builder.py", line 272, in __call__

return self._compiled([], data)


 "/usr/local/lib/python3.7/site-packages/voluptuous/schema_builder.py", line 594, in validate_dict

return base_validate(path, iteritems(data), out)


 "/usr/local/lib/python3.7/site-packages/voluptuous/schema_builder.py", line 386, in validate_mapping

cval = cvalue(key_path, value)


 "/usr/local/lib/python3.7/site-packages/voluptuous/schema_builder.py", line 817, in validate_callable

return schema(data)


 "/usr/local/lib/python3.7/site-packages/voluptuous/schema_builder.py", line 272, in __call__

return self._compiled([], data)


 "/usr/local/lib/python3.7/site-packages/voluptuous/schema_builder.py", line 594, in validate_dict

return base_validate(path, iteritems(data), out)


 "/usr/local/lib/python3.7/site-packages/voluptuous/schema_builder.py", line 373, in validate_mapping

new_key = ckey(key_path, key)


 "/usr/local/lib/python3.7/site-packages/voluptuous/schema_builder.py", line 817, in validate_callable

return schema(data)


 "/usr/src/homeassistant/homeassistant/helpers/config_validation.py", line 659, in validator

value = config[key]
TypeError: string indices must be integers
