kpu / kenlm

KenLM: Faster and Smaller Language Model Queries
http://kheafield.com/code/kenlm/
Other
2.52k stars 511 forks source link

Always build a dylib when building Python bindings on macOS #413

Closed jacobkahn closed 1 year ago

jacobkahn commented 1 year ago

Building a dylib on macOS means that the installed KenLM artifact can be used either by Python directly via import python or consumed by C++ libraries that want to have KenLM as a runtime dependency.

With both of these approaches, Python users can pip install git+https://github.com/kpu/kenlm and get a library that can be universally consumed.

Since Linux allows for linking against .so ELF objects, this isn't needed on Linux. Windows is similar.