Skip to content

dehyphen 0.6.0

Latest

Choose a tag to compare

@jfilter jfilter released this 27 Oct 15:12

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⁻⁵.
  • FlairScorer has no device parameter. The models in FlairScorer.lms are plain objects with perplexity, not PyTorch modules.