[SOLVED] How to change output annotator type via mapAnnotationsCol #2617
Replies: 4 comments 1 reply
-
Hi, I am a newbie to spark myself but I faced a similar problem. My idea is that you might have to convert |
Beta Was this translation helpful? Give feedback.
-
Thank you @SameekshaS for the response. |
Beta Was this translation helpful? Give feedback.
-
I've solved with this:
after the "mapAnnotationsCol" function. I think this annoying behavior could be corrected by simply inheriting the column metadata value from the annotationType metadata of each annotations in the column. Thank you all |
Beta Was this translation helpful? Give feedback.
-
I converted this to a discussion so it can continue without being close as it is interesting. Hope it's OK. |
Beta Was this translation helpful? Give feedback.
-
Hi all,
I'm trying to define my custom pipeline in order to create a custom lemmatizer.
This is my source code:
When I run this code I get the error in the title because the "modpod" column still remain of type POS.
This is the complete error:
I think I have understood the Annotator/AnnotatorType concept (I'm a SParkNLP newbie) and so in the mapAnnotationsCol I create the annotation of type TOKEN but evidently I miss some point.
Can anyone help me please?
Thanks a lot!
Beta Was this translation helpful? Give feedback.
All reactions