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.
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.