You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm very fresh in AI field and I'm trying to learn how to use XNMT to create a simple English->German translator. Here's my very basic question:
What I did
I followed the Getting Started page and after reading different YAML files, and modified the 01_standard.yaml file to train a model in the following way:
where src-test.txt and tgt-test.txt are a list of sentences (separated with new line) in English and German, respectively. the corresponding "*.vocab.txt" files include the tokens using nltk.tokenize.
It worked and it created the following model files:
xnmt/example/models/codecomment.mod
xnmt/example/models/codecomment.mod.data/*
Problem
How can I load and use my trained model to make predictions on the unseen data, like giving an English sentence and see what is the result?
I looked into API and sample config files. They usually show how to load and fine-tune an existing model, not how to use it in practice. Note that I don't want to provide a pair of (input, expected output) as we do for the evaluation step. I want to see get the output for a given input.
Any help or hint is welcome.
The text was updated successfully, but these errors were encountered:
emadpres
changed the title
How to load and use an existing trained model?
How to load an existing trained model and make predictions on the unseen data?
Jul 18, 2019
Hi everyone,
I'm very fresh in AI field and I'm trying to learn how to use XNMT to create a simple English->German translator. Here's my very basic question:
What I did
I followed the Getting Started page and after reading different YAML files, and modified the
01_standard.yaml
file to train a model in the following way:where
src-test.txt
andtgt-test.txt
are a list of sentences (separated with new line) in English and German, respectively. the corresponding "*.vocab.txt" files include the tokens usingnltk.tokenize
.It worked and it created the following model files:
xnmt/example/models/codecomment.mod
xnmt/example/models/codecomment.mod.data/*
Problem
How can I load and use my trained model to make predictions on the unseen data, like giving an English sentence and see what is the result?
I looked into API and sample config files. They usually show how to load and fine-tune an existing model, not how to use it in practice. Note that I don't want to provide a pair of (input, expected output) as we do for the evaluation step. I want to see get the output for a given input.
Any help or hint is welcome.
The text was updated successfully, but these errors were encountered: