Comments (2)
Hi,I've got the following information not in this project but related:
beam_args.add_argument('--lm-path', default="", type=str,
help='Path to an (optional) kenlm language model for use with beam search (req'd with trie)')
and what should the lm-path be like if i want to use the kenlm for example using"https://github.com/kpu/kenlm/tree/master/lm"?
Thank you!
from ctcdecode.
Hi,I've got the following information not in this project but related:
beam_args.add_argument('--lm-path', default="", type=str,
help='Path to an (optional) kenlm language model for use with beam search (req'd with trie)')
and what should the lm-path be like if i want to use the kenlm for example using"https://github.com/kpu/kenlm/tree/master/lm"?
Thank you!
To add,the use of lm-path is like the following:
class BeamCTCDecoder(Decoder):
def init(self, labels, lm_path=None, alpha=0, beta=0, cutoff_top_n=40, cutoff_prob=1.0, beam_width=100,
num_processes=4, blank_index=0):
super(BeamCTCDecoder, self).init(labels)
try:
from ctcdecode import CTCBeamDecoder
except ImportError:
raise ImportError("BeamCTCDecoder requires paddledecoder package.")
self._decoder = CTCBeamDecoder(labels, lm_path, alpha, beta, cutoff_top_n, cutoff_prob, beam_width,
num_processes, blank_index)
from ctcdecode.
Related Issues (20)
- problem with CTCBeamDecoder.decode() when using a big (.arpa / .binary) file HOT 1
- I can't dockerize my project with ctcdecode library HOT 1
- "Symbol not found in flat name space" in MacOS (macbook pro M1) when importing ctcdecode HOT 1
- pip install error on Linux HOT 2
- out_len and out_lens
- Calculation of "beam_scores" and gradient HOT 2
- probelm on installing ctcdecode in window
- probelm when installing ctcdecode in window HOT 1
- You can migrate your code to kaggle, install the package through kaggle. See the website below for installation.
- RuntimeError: Resource temporarily unavailable
- could the ctcdecode be serialized and executed in non-Python environments, such as torchscript?
- #error C++17 or later compatible compiler is required to use PyTorch
- pip install . errro on colab HOT 3
- Unable to run the pip install . command HOT 1
- How to use timesteps information to calculate word-level alignments? HOT 2
- Can you list the dependencies like torch version, c++ and others HOT 1
- PIP install issue Windows HOT 1
- Can we just update this repo HOT 1
- Share how to install successful "ctcdecode" HOT 4
- beam scores of shape (batch, num_beams, time_steps)
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 ctcdecode.