Hi there,
sorry another newbie question.
Most likely you already have a working solution for the following task, i couldn't find one on your homepage or through google though
I have a simple dataframe with single and multi-word terms that i want to use as a match pattern for seeding my annotation process.
So i need to convert the dataframe to the appropriate JSON-Format.
Just using ".to_json" wont work since i need the multi words split by the nested "lower" (i really need them ) tags.
So sticking to your homepage example - i have a dataframe with two columns and maaaany seed words:
label pattern
FASHION_BRAND Ann Taylor
FASHION_BRAND Naked And Famous
FASHION_BRAND TOPSHOP
.....(Thousands more)
that i need that converted to your JSON-Pattern ( no vectorisation or anything):
{"label": "FASHION_BRAND", "pattern": [{"lower": "ann"}, {"lower": "taylor"}]}
{"label": "FASHION_BRAND", "pattern": [{"lower": "topshop"}]}
{"label": "FASHION_BRAND", "pattern": [{"lower": "naked"}, {"lower": "and"}, {"lower": "famous"}]}
I guess you have a working function/solution for this task that you could point me a direction to?
Thanks,
Jan