Skip to content

Commit

Permalink
Merge pull request kpu#401 from JonLiu1993/vcpkg-installition
Browse files Browse the repository at this point in the history
Add vcpkg installation instructions
  • Loading branch information
kpu authored Feb 16, 2023
2 parents a73dbec + 3f75d4b commit 9af679c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,18 @@ print(model.score('this is a sentence .', bos = True, eos = True))
```
See [python/example.py](python/example.py) and [python/kenlm.pyx](python/kenlm.pyx) for more, including stateful APIs.

### Building kenlm - Using vcpkg

You can download and install kenlm using the [vcpkg](https://github.com/Microsoft/vcpkg) dependency manager:

git clone https://github.com/Microsoft/vcpkg.git
cd vcpkg
./bootstrap-vcpkg.sh
./vcpkg integrate install
./vcpkg install kenlm

The kenlm port in vcpkg is kept up to date by Microsoft team members and community contributors. If the version is out of date, please [create an issue or pull request](https://github.com/Microsoft/vcpkg) on the vcpkg repository.

---

The name was Hieu Hoang's idea, not mine.

0 comments on commit 9af679c

Please sign in to comment.