-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
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
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] + entitieswithjson.loads(row[self.output_column]) + entitieshere and in dialogy here. - Set
use_transform=Falsefor 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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels