kensho-technologies / pyctcdecode

A fast and lightweight python-based CTC beam search decoder for speech recognition.
Apache License 2.0
416 stars 89 forks source link

Not require kenlm at import of pyctcdecode #39

Closed patrickvonplaten closed 2 years ago

patrickvonplaten commented 2 years ago

Currently:

import pyctcdecode

throws an error if kenlm is not installed because of the function linting. IMO, it would be better to just have a warning as it might have been intended originally.

Also for future language model implementations that might not rely on kenlm it might be better.