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

Using model on new data #2

Closed
Slyfest opened this issue Mar 11, 2017 · 3 comments
Closed

Using model on new data #2

Slyfest opened this issue Mar 11, 2017 · 3 comments

Comments

@Slyfest
Copy link

Slyfest commented Mar 11, 2017

Hello, @marekrei
Great work!
I’m trying to make use of bidirectional lstm for binary sequence labeling.
Having trained your model on my data, i want to
test it on separate sentence, presumably, not from the training set.

In other words, how to use trained model to get output for one sentence at a time?

@marekrei
Copy link
Owner

Hi @Slyfest ,

The code doesn't currently have an out-of-the-box functionality for saving an output file, just running and evaluating an experiment. I'll add that functionality in the next update.
In the mean time, you could create it yourself either by integrating a saving functionality in process_batches() or creating a separate script that loads a saved model, processes a file and prints the results.

@Slyfest
Copy link
Author

Slyfest commented Mar 11, 2017

Thanks for your reply!
I will work in this direction

@marekrei
Copy link
Owner

There is now a script for printing output for any input file.

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