question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

another little problem in 3_decoding_tutorial

See original GitHub issue

Hi @lvapeab

there is some error when i run

>>>filepath = nmt_model.model_path+'/' + 'test' + '_sampling.pred' # results file >>>import utils >>> utils.read_write.list2file(filepath, predictions) Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: 'module' object has no attribute 'read_write'

Should i use the module of keras_wrapper?

>>> import keras_wrapper >>> keras_wrapper.extra.read_write.list2file(filepath, predictions) >>>

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
hanyaqiancommented, Jun 13, 2017

@lvapeab, it works ,Thanks. >_<

1reaction
lvapeabcommented, Jun 13, 2017

Ok. You need to decode your predictions before evaluating. I.e., transform them from indices to words. Try to follow the (updated) tutorial from box 6 (In [6]:).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Word Decoding and Phonics - Reading Rockets
Decoding is the ability to apply your knowledge of letter-sound relationships, including knowledge of letter patterns, to correctly pronounce written words.
Read more >
Huffman Decoding - GeeksforGeeks
Follow the below steps to solve the problem: Note: To decode the encoded data we require the Huffman tree. We iterate through the...
Read more >
Protocol Buffer Basics: C++ - Google Developers
This can be a good choice if you want to share data with other applications/projects. However, XML is notoriously space intensive, and encoding/decoding...
Read more >
Decoding methods - Wikipedia
In coding theory, decoding is the process of translating received messages into codewords of a given code. There have been many common methods...
Read more >
List-Decoding Reed-Muller Codes over Small Fields
[11], other list-decoders for Hadamard codes were given by ... an mO(r) local algorithm that solves the decoding problem up to an error...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found