enhance pos tagging with transformers function #866
Labels
refactoring
a technical improvement which does not add any new features or change existing features.
Milestone
In PR #857 ,
pos_tag_transformers
was added which consist of 3 models, however, to call and engine, the full name of it must be specified, also the output still not the same format as another tagger. For examplewhich is very hard for the normal user to remember its entire name (at least me to remember "bert-base-th-cased-blackboard" is impossible), and may result in more mess in the internal code if another transformers model trained on new corpus are added. we will end up with a lot of if-else condition in order to call a model in the future
According to that i've cleaned up the code to let a user call a model with parameters named
engine
andcorpus
same as what we have from the former function that ispos_tag
andpos_tag_sents
and also fix output format in PR #865. This will reduce how hard to remember the entire model name, and better experience for users. What do you think ? @wannaphongThe text was updated successfully, but these errors were encountered: