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
I used this script to apply new Charon format to the old dataset.
Later, when I tried to train a model, I receive the below error
File "/root/.pyenv/versions/3.8.2/envs/tvs_india2/lib/python3.8/site-packages/dialogy/plugins/text/duckling_plugin/__init__.py", line 501, in transform
row[self.output_column] + entities
TypeError: can only concatenate str (not "list") to str
This is because the entities column (in the new Charon output format) has lists as strings( "[]" instead of [] ) so it breaks.
Possible solutions
Replace row[self.output_column] + entities with json.loads(row[self.output_column]) + entitieshere and in dialogy here.
Set use_transform=False for dukcling and list entity plugins in [processor.py](https://github.com/skit-ai/dialogy-template-simple-transformers/blob/main/slu/slu/src/controller/processors.py)
Issue
I used this script to apply new Charon format to the old dataset.
Later, when I tried to train a model, I receive the below error
"[]"
instead of[]
) so it breaks.Possible solutions
row[self.output_column] + entities
withjson.loads(row[self.output_column]) + entities
here and in dialogy here.use_transform=False
for dukcling and list entity plugins in[processor.py](https://github.com/skit-ai/dialogy-template-simple-transformers/blob/main/slu/slu/src/controller/processors.py)
I think solution 1 is the proper fix.
credits: @biswaroop1547
The text was updated successfully, but these errors were encountered: