Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tagging a new input #1

Open
sangeethajamal opened this issue Mar 10, 2018 · 1 comment
Open

tagging a new input #1

sangeethajamal opened this issue Mar 10, 2018 · 1 comment

Comments

@sangeethajamal
Copy link

How can i get the tags of a new sentence

@ad2476
Copy link
Owner

ad2476 commented Jul 26, 2018

It's been a while since I last visited this project. I would recommend the easiest way to tag new sentences would be to collect them in a file and pass that file as the "test" for evaluation.

If you want to use this as a library for your own project, you would want to first train the model (either the visible or hidden) on some data, and then once trained, construct a ViterbiDecoder and decode a sentence by calling .decode(). See the implementation in tagger.py for reference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants