tengo un dataset csv multilabel con la siguiente estructura: una columa con tweets en…
- User
tengo un dataset csv multilabel con la siguiente estructura: una columa con tweets en texto, y otra columa de tipo string que contiene al menos una palabra, por ejemplo: 1365287445114322946t,We do not need any crazy twisted politician telling us whether to take a vaccine. We do not need them to tell us how to run our lives. What we need to do is fight back and ignore the nonsensical narrative.,political 1364157842022891520t,"@AgreeT0D1sagree @Matteo30115900 @Femi_Sorry I respect Natalie’s view even if it differs from mine. I genuinely hope you don’t encounter problems for not having a vaccine passport, if they are issued",mandatory
Cual es la forma más eficiente y efectiva para crear un array multilabel para procesar los target?
- Assistant
- User
el problema que tengo es que mi df no tiene una columna por etiqueta, simplementa tienen una columa con un string en el que están escritas las label separadas por espacios. estructura dataframe: ID tweet labels 0 1296010336907038720t @cath__kath AstraZeneca is made with the kidne... ingredients 1 1336808189677940736t It begins. Please find safe alternatives to th... side-effect 2 1329488407307956231t @PaolaQP1231 Well, I mean congratulations Covi... side-effect 3 1364194604459900934t @BorisJohnson for those of us that do not wish... mandatory 4 1375938799247765515t She has been trying to speak out: writing lett... side-effect rushed
- Assistant
Si las etiquetas en tu dataframe están separadas por espacios en una única columna llamada
labels, necesitas un proceso ligeramente diferente para convertir esas etiquetas en un formato adecuado para el entrenamiento de modelos multilabel. Aquí tienes un enfoque ajustado para manejar esta situación:- Preparación:
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.