mirror of
https://github.com/ivabus/pantry
synced 2024-11-26 10:25:05 +03:00
+sentencepiece
This commit is contained in:
parent
7f68885ffa
commit
3112bc4685
1 changed files with 31 additions and 0 deletions
31
projects/google.com/sentencepiece/package.yml
Normal file
31
projects/google.com/sentencepiece/package.yml
Normal file
|
@ -0,0 +1,31 @@
|
|||
distributable:
|
||||
url: https://github.com/google/sentencepiece/archive/v{{version}}.tar.gz
|
||||
strip-components: 1
|
||||
|
||||
versions:
|
||||
github: google/sentencepiece/releases/tags
|
||||
ignore: '1.0.0' # whoops, who tagged this then?
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
tea.xyz/gx/cc: c99
|
||||
tea.xyz/gx/make: '*'
|
||||
cmake.org: ^3
|
||||
working-directory: build
|
||||
script: |
|
||||
cmake .. -DCMAKE_INSTALL_PREFIX="{{prefix}}" -DCMAKE_BUILD_TYPE=Release
|
||||
make --jobs {{ hw.concurrency }} install
|
||||
|
||||
provides:
|
||||
- bin/spm_decode
|
||||
- bin/spm_encode
|
||||
- bin/spm_export_vocab
|
||||
- bin/spm_normalize
|
||||
- bin/spm_train
|
||||
|
||||
test:
|
||||
dependencies:
|
||||
gnu.org/wget: '*'
|
||||
script: |
|
||||
wget https://raw.githubusercontent.com/google/sentencepiece/master/data/botchan.txt
|
||||
spm_train --input=botchan.txt --model_prefix=m --vocab_size=1000
|
Loading…
Reference in a new issue