- Notifications
You must be signed in to change notification settings - Fork12
rixwew/darts-clone-python
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Darts-clone binding for Python 3.x.
This repository provides Cython-based pip-installable package.
pip install dartsclone
darts-clone-python is almost compatible with darts-clone.
importdartsclonedarts=dartsclone.DoubleArray()# build indexdata= [b'apple',b'banana',b'orange']values= [1,3,2]darts.build(data,values=values)# exact match searchresult=darts.exact_match_search('apple'.encode('utf-8'))print(result)# [1, 5]# common prefix searchresult=darts.common_prefix_search('apples'.encode('utf-8'),pair_type=False)print(result)# [1]# save indexdarts.save('sample.dic')# load indexdarts.clear()darts.open('sample.dic')# dump array dataarray=darts.array()# load array datadarts.clear()darts.set_array(array)
About
Darts-clone python binding
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors5
Uh oh!
There was an error while loading.Please reload this page.