Comments (2)
- you have two options here. First, you can use the preprocess and postprocess objects to apply BPE at runtime. this is however not ideal since you can apply BPE beforehand and store the preprocessed data on disk to speed up the training a bit. You can use e.g. fastBPE to extract a vocabulary and apply BPEs to your data. You will need to prepare a vocabulary file which is compatible with neural monkey's function from_wordlist from the vocabulary module. It takes a TSV file that looks like this:
<pad>
<s>
</s>
<unk>
First
word
and
so
on
[...]
With this file format, you also need to set contains_frequencies
and contain_header
to False
in the from_wordlist
function. Note that the ordering of the four special tokens matters.
- If you mean the
model_dimension
of thenoam_decay
function, it corresponds to the$d_{model}$ variable in the Attention is All You Need paper. I can't really help you with finding the right learning rate scheme parameters, you need to try what works best for your data and the rest of the hyper-parameters.
from neuralmonkey.
Thank you very much.
from neuralmonkey.
Related Issues (20)
- max_length must be undefined when using SequenceLabeler HOT 1
- learning_utils.join_exection_results does not support OutputSeries == dict
- from_dataset does not exist HOT 2
- dataset.from_files HOT 1
- Confusing Exception message in dataset.py
- Add an output buffering for neuralmonkey-run HOT 2
- Unify dropout usage
- GreedyRunner should not fetch training-related tensors by default during inference HOT 4
- Running as server is broken HOT 1
- neuralmonkey-run with RNN model does not work without reference HOT 1
- Dataset series should support max_len (max_size) flag.
- Neural Monkey does not throw exception when main.initial_variables contains nonexistent path.
- Neural Monkey should throw Exception when tf.Saver.restore fails
- How to train a transformer model with multi-source encoders ? HOT 3
- Exception: Unexpected fields: runners_batch_size HOT 1
- Requirement of editing the post-edit.ini and translation.ini for APE and MT respectively HOT 1
- The Model Configuration in Machine Translation task HOT 1
- Did you mean file './dataset.load_dataset_from_files'? HOT 1
- Interested in your paper HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neuralmonkey.