MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / is_sentencepiece_installed

Function is_sentencepiece_installed

external/sentencepiece/python/setup.py:56–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54
55
56def is_sentencepiece_installed():
57 try:
58 subprocess.check_call('pkg-config sentencepiece --libs', shell=True)
59 return True
60 except subprocess.CalledProcessError:
61 return False
62
63
64def is_gil_disabled():

Callers 2

build_extensionMethod · 0.85
copy_package_dataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected