Repository navigation
dehyphen 0.6.0 runs Flair's language models without PyTorch.
pip install dehyphen- PyTorch is no longer a dependency: dehyphen reads Flair's checkpoints itself and runs the language models with numpy, on the CPU. The perplexities match PyTorch's to a relative 10⁻⁵.
FlairScorerhas nodeviceparameter. The models inFlairScorer.lmsare plain objects withperplexity, not PyTorch modules.