taishi-i/nagisa

Is it possible to apply pos-tagging to a list of words, which was already tokenized?

ichiroex opened this issue Β· 4 comments

Is it possible to apply pos-tagging to a list of words, which was already tokenized?

Hi @ichiroex

Yes, it is possibile to apply pos-tagging to a list of tokenized words.
However, I need to rewrite some existing codes.
I will inform you after rewriting the codes. Please wait a few days.

Thank you for your quick reply.
I'm looking forward to the function πŸ‘

Hi @ichiroex

I released nagisa 0.1.2, which provides the pos-tagging method.
If you want to apply pos-tagging to a list of tokenized words, please refer to the following code.
Don't forget update the latest version of nagisa sudo pip install -U nagisa.

import nagisa # version 0.1.2

tokenized_words = [" (δΊΊβ€’α΄—β€’β™‘)","こんばんは","β™ͺ"]
postags = nagisa.postagging(tokenized_words)
print(postags) #=> ['補助記号', 'ζ„Ÿε‹•θ©ž', '補助記号']

Thanks

Thank you for your prompt attention to this matter.
It's very nice! I'll use this wonderful function πŸ‘―