kenlm icon indicating copy to clipboard operation
kenlm copied to clipboard

PyPI - Release kenlm library on PyPI

Open patrickvonplaten opened this issue 3 years ago • 7 comments

Hello,

Thanks a lot for this amazing library. It seems like more and more speech libraries are moving to Python, e.g.:

  • Fairseq: https://github.com/pytorch/fairseq
  • Transformers: https://github.com/huggingface/transformers
  • Espnet: https://github.com/espnet/espnet
  • Speechbrain: https://speechbrain.github.io/
  • PyCTCDecode: https://github.com/kensho-technologies/pyctcdecode
  • Icefall: https://github.com/k2-fsa/icefall

kenlm is still the standard library for efficient ngram decoding with many of the above libraries have dependencies on it. It's great to have Python bindings, but it would be even nicer if the library could be hosted on https://pypi.org/ to have a clean kenlm dependency on other pypi packages.

@kpu - is there a possibility that this library can be published on pypi?

patrickvonplaten avatar Dec 08 '21 20:12 patrickvonplaten

Yes, I mainly need to learn how to do that.

kpu avatar Dec 08 '21 21:12 kpu

Awesome! Happy to help!

patrickvonplaten avatar Dec 09 '21 09:12 patrickvonplaten

https://packaging.python.org/en/latest/tutorials/packaging-projects/#generating-distribution-archives

This is my go-to to deploy to pypi !

Narsil avatar Jan 07 '22 14:01 Narsil

We at Writer have some libraries on PyPi and are happy to help.

@kpu It looks like you own the kenlm name on PyPi and pushed something up in 2017. Do you still have access to that account?

sam-writer avatar Mar 29 '22 17:03 sam-writer

@kpu Any update on this? The instructions given above should be enough. This would be a great help to be able to use kenlm in standard python pipelines.

f4hy avatar Aug 11 '22 23:08 f4hy

https://pypi.org/project/kenlm/0.1/

kpu avatar Oct 16 '22 20:10 kpu

Wuhuuu - this is great! Thanks a lot for the effort @kpu !

patrickvonplaten avatar Oct 17 '22 17:10 patrickvonplaten