Skip to content

A ctc decoder implemented in C++, compiled into a dynamic link library, and exposing the available interfaces via ctcdecode.h

License

Notifications You must be signed in to change notification settings

Kevindurant111/ctcdecode-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ctcdecode-cpp

A ctc decoder implemented in C++, compiled into a dynamic link library, and exposing the available interfaces via ctcdecode.h. This is a fork of ctc_decoder and ctcdecode-cpp, with appropriate modifications made.

Installation & Compilation

git clone https://github.com/Kevindurant111/ctcdecode-cpp.git
cd ctcdecode-cpp/

# fetch kenlm and ThreadPool
git submodule init
git submodule update

# install bz2 and lzma
sudo apt-get install libbz2-dev liblzma-dev

# download and compile openfst
wget http://www.openfst.org/twiki/pub/FST/FstDownload/openfst-1.6.3.tar.gz
tar -xzvf openfst-1.6.3.tar.gz
cd openfst-1.6.3/
./configure
make
cd ..

mkdir build && cd build
# Please replace xxx with an absolute path to openfst-1.6.3/src
cmake -DOPENFST_ROOT=xxx ..
make

usage in cmakelists

# Please replace xxx with an absolute path to ctcdecode-cpp/include
include_directories(xxx)
# Please replace xxx with an absolute path to ctcdecode-cpp/build/libctcdecode.so
target_link_libraries(${PROJECT_NAME} xxx)

License

This project is licensed under the MIT License. Please include the copyright and license notice of this project when using it.

About

A ctc decoder implemented in C++, compiled into a dynamic link library, and exposing the available interfaces via ctcdecode.h

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published