├── LICENSE ├── README.md ├── docs ├── build-graph.md └── decoders.md ├── examples ├── aishell │ ├── conf │ │ └── aishell.conf │ ├── data │ │ ├── aishell.arpa │ │ ├── resource_aishell │ │ │ └── lexicon.txt │ │ └── vocab │ ├── graph │ │ ├── LG.fst │ │ └── words.txt │ ├── local │ │ └── filter_lexicon.py │ └── prepare_data.sh └── hkust │ ├── beam_search_scores.txt │ ├── conf │ └── hkust.conf │ ├── data │ ├── lm_hkust.arpa │ └── vocab │ ├── graph │ └── lexicon.txt │ ├── prepare_data.sh │ └── wfst_scores.txt ├── pydecoders ├── __init__.py ├── build_graph_main.py ├── decode_beam_search_main.py ├── decode_wfst_main.py ├── decoders │ ├── __init__.py │ ├── beam_search_decoder.py │ └── wfst_decoder.py └── graph │ ├── __init__.py │ ├── grammar_builder.py │ ├── graph_builder.py │ ├── lexicon_builder.py │ └── token_builder.py ├── requirements.txt ├── setup.py ├── tests ├── grammar_builder_test.py ├── graph_builder_test.py └── lexicon_builder_test.py └── tools └── env.sh /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athena-team/athena-decoder/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athena-team/athena-decoder/HEAD/README.md -------------------------------------------------------------------------------- /docs/build-graph.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athena-team/athena-decoder/HEAD/docs/build-graph.md -------------------------------------------------------------------------------- /docs/decoders.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athena-team/athena-decoder/HEAD/docs/decoders.md -------------------------------------------------------------------------------- /examples/aishell/conf/aishell.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athena-team/athena-decoder/HEAD/examples/aishell/conf/aishell.conf -------------------------------------------------------------------------------- /examples/aishell/data/aishell.arpa: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athena-team/athena-decoder/HEAD/examples/aishell/data/aishell.arpa -------------------------------------------------------------------------------- /examples/aishell/data/resource_aishell/lexicon.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athena-team/athena-decoder/HEAD/examples/aishell/data/resource_aishell/lexicon.txt -------------------------------------------------------------------------------- /examples/aishell/data/vocab: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athena-team/athena-decoder/HEAD/examples/aishell/data/vocab -------------------------------------------------------------------------------- /examples/aishell/graph/LG.fst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athena-team/athena-decoder/HEAD/examples/aishell/graph/LG.fst -------------------------------------------------------------------------------- /examples/aishell/graph/words.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athena-team/athena-decoder/HEAD/examples/aishell/graph/words.txt -------------------------------------------------------------------------------- /examples/aishell/local/filter_lexicon.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athena-team/athena-decoder/HEAD/examples/aishell/local/filter_lexicon.py -------------------------------------------------------------------------------- /examples/aishell/prepare_data.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athena-team/athena-decoder/HEAD/examples/aishell/prepare_data.sh -------------------------------------------------------------------------------- /examples/hkust/beam_search_scores.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athena-team/athena-decoder/HEAD/examples/hkust/beam_search_scores.txt -------------------------------------------------------------------------------- /examples/hkust/conf/hkust.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athena-team/athena-decoder/HEAD/examples/hkust/conf/hkust.conf -------------------------------------------------------------------------------- /examples/hkust/data/lm_hkust.arpa: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athena-team/athena-decoder/HEAD/examples/hkust/data/lm_hkust.arpa -------------------------------------------------------------------------------- /examples/hkust/data/vocab: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athena-team/athena-decoder/HEAD/examples/hkust/data/vocab -------------------------------------------------------------------------------- /examples/hkust/graph/lexicon.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athena-team/athena-decoder/HEAD/examples/hkust/graph/lexicon.txt -------------------------------------------------------------------------------- /examples/hkust/prepare_data.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athena-team/athena-decoder/HEAD/examples/hkust/prepare_data.sh -------------------------------------------------------------------------------- /examples/hkust/wfst_scores.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athena-team/athena-decoder/HEAD/examples/hkust/wfst_scores.txt -------------------------------------------------------------------------------- /pydecoders/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athena-team/athena-decoder/HEAD/pydecoders/__init__.py -------------------------------------------------------------------------------- /pydecoders/build_graph_main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athena-team/athena-decoder/HEAD/pydecoders/build_graph_main.py -------------------------------------------------------------------------------- /pydecoders/decode_beam_search_main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athena-team/athena-decoder/HEAD/pydecoders/decode_beam_search_main.py -------------------------------------------------------------------------------- /pydecoders/decode_wfst_main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athena-team/athena-decoder/HEAD/pydecoders/decode_wfst_main.py -------------------------------------------------------------------------------- /pydecoders/decoders/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athena-team/athena-decoder/HEAD/pydecoders/decoders/__init__.py -------------------------------------------------------------------------------- /pydecoders/decoders/beam_search_decoder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athena-team/athena-decoder/HEAD/pydecoders/decoders/beam_search_decoder.py -------------------------------------------------------------------------------- /pydecoders/decoders/wfst_decoder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athena-team/athena-decoder/HEAD/pydecoders/decoders/wfst_decoder.py -------------------------------------------------------------------------------- /pydecoders/graph/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athena-team/athena-decoder/HEAD/pydecoders/graph/__init__.py -------------------------------------------------------------------------------- /pydecoders/graph/grammar_builder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athena-team/athena-decoder/HEAD/pydecoders/graph/grammar_builder.py -------------------------------------------------------------------------------- /pydecoders/graph/graph_builder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athena-team/athena-decoder/HEAD/pydecoders/graph/graph_builder.py -------------------------------------------------------------------------------- /pydecoders/graph/lexicon_builder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athena-team/athena-decoder/HEAD/pydecoders/graph/lexicon_builder.py -------------------------------------------------------------------------------- /pydecoders/graph/token_builder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athena-team/athena-decoder/HEAD/pydecoders/graph/token_builder.py -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | openfst-python==1.7.3 2 | absl-py 3 | 4 | -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athena-team/athena-decoder/HEAD/setup.py -------------------------------------------------------------------------------- /tests/grammar_builder_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athena-team/athena-decoder/HEAD/tests/grammar_builder_test.py -------------------------------------------------------------------------------- /tests/graph_builder_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athena-team/athena-decoder/HEAD/tests/graph_builder_test.py -------------------------------------------------------------------------------- /tests/lexicon_builder_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athena-team/athena-decoder/HEAD/tests/lexicon_builder_test.py -------------------------------------------------------------------------------- /tools/env.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athena-team/athena-decoder/HEAD/tools/env.sh --------------------------------------------------------------------------------