Comments (3)
there are quite a few warnings that I've now reduced a bit in commit 810ee14.
However, the core problem of the broken pipe could also indicate that something is wrong with where the output is written to, i.e. sockeye. Can you try the following:
execute just this command in isolation:
echo "ich weiss nicht" | python -m apply_bpe -c bpe.codes --vocabulary bpe.vocab.de --vocabulary-threshold 50
execute the full command, but don't write sockeye errors to /dev/null:
echo "ich weiss nicht" | python -m apply_bpe -c bpe.codes --vocabulary bpe.vocab.de --vocabulary-threshold 50 | python -m sockeye.translate -m de-bar-base-model | sed -r "s/@@( |$)//g"
This should give you a better idea what's going on.
from subword-nmt.
Thanks for the quick reply, I pulled the newest commit and executed the commands as you mentioned:
Executing only the apply_bpe commands returns the encoded texts:
ich wei@@ ss nicht
Executing the full command and without writing to /dev/null returns errors again:
Traceback (most recent call last): File "/opt/conda/lib/python3.9/runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "/opt/conda/lib/python3.9/runpy.py", line 87, in _run_code exec(code, run_globals) File "/home/jovyan/sockeye/sockeye/translate.py", line 25, in <module> import torch as pt ModuleNotFoundError: No module named 'torch' /home/jovyan/sockeye/subword-nmt/apply_bpe.py:393: DeprecationWarning: this script's location has moved to /home/jovyan/sockeye/subword-nmt/subword_nmt. This symbolic link will be removed in a future version. Please point to the new location, or install the package and use the command 'subword-nmt' warnings.warn( Traceback (most recent call last): File "/opt/conda/lib/python3.9/runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "/opt/conda/lib/python3.9/runpy.py", line 87, in _run_code exec(code, run_globals) File "/home/jovyan/sockeye/subword-nmt/apply_bpe.py", line 446, in <module> args.output.write(bpe.process_line(line, args.dropout)) BrokenPipeError: [Errno 32] Broken pipe Exception ignored in: <_io.TextIOWrapper name='<stdout>' encoding='utf-8'> BrokenPipeError: [Errno 32] Broken pipe
I am deducing that the error occurs when passing the output to sockeye then...?
from subword-nmt.
yes, it seems that torch is not correctly installed, but is required by sockeye.
I'll close this issue, since this does not pertain to subword-nmt. I trust you'll find other resources to help with installing/debugging sockeye.
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
- No module named apply_bpe HOT 4
- 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
- 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.