Coder Social home page Coder Social logo

louiskirsch / tensorflow-with-kenlm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tensorflow/tensorflow

34.0 34.0 8.0 92.03 MB

Tensorflow with KenLM integrated for beam search scoring

Home Page: http://tensorflow.org

License: Apache License 2.0

Python 41.77% C++ 47.01% C 0.38% Protocol Buffer 0.43% LLVM 0.01% CMake 0.29% Java 0.62% Makefile 0.08% Objective-C 0.02% Objective-C++ 0.14% Shell 0.71% Jupyter Notebook 3.93% HTML 1.24% Go 1.67% JavaScript 0.03% TypeScript 1.66% CSS 0.01% Batchfile 0.02%
beam-search language-model language-model-score-smearing tensorflow

tensorflow-with-kenlm's People

Contributors

andrewharp avatar aselle avatar asimshankar avatar benoitsteiner avatar caisq avatar davidsoergel avatar dsmilkov avatar ebrevdo avatar girving avatar gunan avatar hawkinsp avatar ilblackdragon avatar ispirmustafa avatar jart avatar jendap avatar josh11b avatar keveman avatar langmore avatar martinwicke avatar mrry avatar petewarden avatar rohan100jain avatar sukritiramesh avatar teamdandelion avatar tensorflower-gardener avatar terrytangyuan avatar vincentvanhoucke avatar yifeif avatar yuanbyu avatar zheng-xq avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

tensorflow-with-kenlm's Issues

please provide the installation instructions with version of bazel and tensorflow.

NOTE: Only file GitHub issues for bugs and feature requests. All other topics will be closed.

For general support from the community, see StackOverflow.
To make bugs and feature requests more easy to find and organize, we close issues that are deemed
out of scope for GitHub Issues and point people to StackOverflow.

For bugs or installation issues, please provide the following information.
The more information you provide, the more easily we will be able to offer
help and advice.

What related GitHub issues or StackOverflow threads have you found by searching the web for your problem?

Environment info

Operating System:

Installed version of CUDA and cuDNN:
(please attach the output of ls -l /path/to/cuda/lib/libcud*):

If installed from binary pip package, provide:

  1. A link to the pip package you installed:
  2. The output from python -c "import tensorflow; print(tensorflow.__version__)".

If installed from source, provide

  1. The commit hash (git rev-parse HEAD)
  2. The output of bazel version

If possible, provide a minimal reproducible example (We usually don't have time to read hundreds of lines of your code)

What other attempted solutions have you tried?

Logs or other output that would be helpful

(If logs are large, please upload as attachment or provide link).

ctc_beam_search_decoder spends too much time at TrieNode::ReadFromStream

Hi,

I ran ctc_beam_search_decoder and I found it too slow with kenlm.
My python code looks like below.

decoded, _ = tf.nn.ctc_beam_search_decoder(...)
with tf.Session() as session:
session.run(decoded) # Takes more than 20 seconds!

I profiled the code and found that it took most of the time at loading vocabulary file ('trie'). Is there any way that I can avoid repeated call to TrieNode::ReadFromStream for each session.run() ?
For now, it seems to called for each session.run(decoded) which seems quite redundant.

Thank you and best regards,
Hongjoo

bash: corpus.txt: No such file or directory

Hi @timediv , I stuck at bazel-bin/tensorflow/core/util/ctc/ctc_generate_trie kenlm-model.binary vocabulary < corpus.txt > trie it says: bash: corpus.txt: No such file or directory

So where can I find this corpus.txt file?

Also I did not understand the purpose that command. How am I suppose to upgrade my tensorflow installation to modify tf.nn.ctc_beam_search_decoder() function and support kenlm_directory_path='your/directory/path' argument?

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.