Skip to content
This repository has been archived by the owner on Jun 9, 2022. It is now read-only.

Converting bin to arpa only extract unigram #89

Open
BananaNosh opened this issue Jan 18, 2022 · 0 comments
Open

Converting bin to arpa only extract unigram #89

BananaNosh opened this issue Jan 18, 2022 · 0 comments

Comments

@BananaNosh
Copy link

BananaNosh commented Jan 18, 2022

When using sphinx_lm_convert -i model.lm.bin -ifmt bin -o model.lm.arpa -ofmt arpa I get the following error and only the unigrams are extracted to the new format:

sphinx_lm_convert: ../../../../src/libsphinxbase/lm/ngram_model_trie.c:279: ngram_model_trie_write_arpa: Assertion "raw_ngram_idx == base->n_counts[i - 1]" failed.

This error is the same as in Issue #52.

I should note that the binary file was built with the tool itself from a valid arpa file.
The translation back, however, then drops the bi- and trigrams with the error mentioned above.
Uncommenting the assertion leads to a segmentation fault.

Cheers

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant