Comments (4)
you'll have to follow one of the earlier steps in the tutorial to make this work (and this isn't persistent, so you'll have to repeat this for each session or add it to your .bashrc file:
export PYTHONPATH=$(pwd)/subword-nmt:$PYTHONPATH
(if you add it to your .bashrc file, make sure to provide the absolute path, not the one relative to your working directory ($(pwd)
))
PS: the recommended way to install/execute apply_bpe is shown in the README - the tutorial doesn't properly install subword-nmt.
from subword-nmt.
Hi Rico,
After re-adding export PYTHONPATH=$(pwd)/subword-nmt:$PYTHONPATH I was able to execute the translation, but it didn't return the expected output
he is a great guy and a family father .`, but nothing.
I will try the recommended installation in the README next.
from subword-nmt.
you can check if this error is related to subword-nmt by only executing the top three lines of the script (without the trailing | \
). If this works properly, it's probably a problem with Sockeye. Remove the 2>/dev/null
part so you get error messages.
from subword-nmt.
I found a solution for my problem! :)
My model hasn't even trained yet, so I probably couldn't do any translation due to the missing data like "metrics" and the "params".
What I find funny, I had to rewrite the Sockeye code like in the last WMT 2014 English-German Tutorial: https://awslabs.github.io/sockeye/tutorials/wmt_large.html
Here is another link with important hints: awslabs/sockeye#981
from subword-nmt.
Related Issues (20)
- subword-nmt HOT 3
- learn_bpe.py error HOT 1
- learn_joint_bpe_and_vocab.py for Japanese HOT 1
- BPE-Dropout question HOT 1
- Recover back code file HOT 1
- DeprecationWarning and ResourceWarning: Enable tracemalloc to get the object allocation traceback HOT 2
- About the vocabulary size HOT 2
- Readme update please HOT 1
- Question about vocabulary filter HOT 2
- Unknown word and vocabulary filter HOT 2
- How to avoid special char like '\t' being split by bpe HOT 3
- applying BPE(Byte Pair Encoding) fails for large Chinese data tokenized with THULAC HOT 1
- Error: invalid line 2 in BPE codes file when running apply_bpe.py HOT 1
- How to decode BPE when applied to machine translation HOT 1
- learn_bpe.py code question HOT 1
- BrokenPipeError: [Errno 32] Broken pipe HOT 3
- Is it possibile to extend a trained BPE model's merge operations? HOT 2
- How to find all valid BPEs for a word? HOT 3
- AttributeError: 'BPE' object has no attribute 'glossaries_regex' 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 subword-nmt.