yanshao9798 / tagger

A Joint Chinese segmentation and POS tagger based on bidirectional GRU-CRF
151 stars 44 forks source link

Can I add a custom dictionary with POS to segment and tag? #12

Closed GabrielLin closed 6 years ago

GabrielLin commented 6 years ago

If it can, how? Thanks.

yanshao9798 commented 6 years ago

I think it is very difficult to directly integrate a dictionary in the model, but you can use your dictionary for post-processing.

GabrielLin commented 6 years ago

Yep, post-processing is a good idea. But I want to use that dictionary also for segment. It seems that I can just generate some corpus of words in the dictionary and retrain the model.