fengkx / jieba-wasm

WASM binding to jieba-rs
https://fengkx.github.io/jieba-wasm/
MIT License
51 stars 8 forks source link

[Feature Request] Add support for tagging part-of-speech #11

Open KiritaniAyaka opened 5 days ago

KiritaniAyaka commented 5 days ago

The jieba-rs support tagging part-of-speech by tag function, could you export it to this library?

fengkx commented 5 days ago

Can you give me some examples to show the use cases of this tag function?

KiritaniAyaka commented 4 days ago

Can you give me some examples to show the use cases of this tag function?

Such as searching and language processing, part-of-speech tagging is significant in these scenes.

With part-of-speech, it is possible to do different post-processing according to the POS in language processing. POS could also provide better searching accuracy as nouns are much more related to the theme than adjectives, adverbs, and other POSs.