Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A Python binding for Darts (Double Array Trie)
C Python
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
tests
.gitignore
.travis.yml use distutils instead of setuptools
LICENSE initial commit
MANIFEST.in
README.rst
darts.h
darts.pyx
requirements.txt
setup.cfg
setup.py

README.rst

python-darts

A Python binding for Darts (Double ARray Trie System).

https://badge.fury.io/py/python-darts.png https://travis-ci.org/studio-ousia/python-darts.png?branch=master

Installation

$ pip install Cython
$ pip install python-darts

Usage

>>> from darts import Darts
>>> da = Darts('tests/mock_data.darts')
>>> da.common_prefix_search('star wars')
['star', 'star wars']
>>> da.longest_match('star wars')
'star wars'
Something went wrong with that request. Please try again.