Giter Club home page Giter Club logo

Comments (3)

rsennrich avatar rsennrich commented on May 31, 2024

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.

whher avatar whher commented on May 31, 2024

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.

rsennrich avatar rsennrich commented on May 31, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.