Skip to main content

Underthesea Core (fast & fun)

Project description

Underthesea Core (fast & fun)

Usage

CRFFeaturizer

>>> from underthesea_core import CRFFeaturizer
>>> features = ["T[-1]", "T[0]", "T[1]"]
>>> dictionary = set(["sinh viên"])
>>> featurizer = CRFFeaturizer(features, dictionary)
>>> sentences = [[["sinh", "X"], ["viên", "X"], ["đi", "X"], ["học", "X"]]]
>>> featurizer.process(sentences)
[[['T[-1]=BOS', 'T[0]=sinh', 'T[1]=viên'],
  ['T[-1]=sinh', 'T[0]=viên', 'T[1]=đi'],
  ['T[-1]=viên', 'T[0]=đi', 'T[1]=học'],
  ['T[-1]=đi', 'T[0]=học', 'T[1]=EOS']]]

Release Workflow

  1. Change version in Cargo.toml and pyproject.toml
  2. Push to branch core
  • This will trigger release-pypi-core action
  1. Check latest version in pypi

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

underthesea_core-0.0.5_alpha.2-cp311-none-win_amd64.whl (501.8 kB view hashes)

Uploaded CPython 3.11 Windows x86-64

underthesea_core-0.0.5_alpha.2-cp311-cp311-manylinux2010_x86_64.whl (599.3 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.12+ x86-64

underthesea_core-0.0.5_alpha.2-cp311-cp311-macosx_10_7_x86_64.whl (542.0 kB view hashes)

Uploaded CPython 3.11 macOS 10.7+ x86-64

underthesea_core-0.0.5_alpha.2-cp310-none-win_amd64.whl (504.9 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

underthesea_core-0.0.5_alpha.2-cp310-cp310-manylinux2010_x86_64.whl (591.2 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.12+ x86-64

underthesea_core-0.0.5_alpha.2-cp310-cp310-macosx_10_7_x86_64.whl (540.7 kB view hashes)

Uploaded CPython 3.10 macOS 10.7+ x86-64

underthesea_core-0.0.5_alpha.2-cp39-none-win_amd64.whl (505.0 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

underthesea_core-0.0.5_alpha.2-cp39-cp39-manylinux2010_x86_64.whl (591.2 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64

underthesea_core-0.0.5_alpha.2-cp39-cp39-macosx_10_7_x86_64.whl (540.7 kB view hashes)

Uploaded CPython 3.9 macOS 10.7+ x86-64

underthesea_core-0.0.5_alpha.2-cp38-none-win_amd64.whl (504.9 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

underthesea_core-0.0.5_alpha.2-cp38-cp38-manylinux2010_x86_64.whl (591.3 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

underthesea_core-0.0.5_alpha.2-cp38-cp38-macosx_10_7_x86_64.whl (541.0 kB view hashes)

Uploaded CPython 3.8 macOS 10.7+ x86-64

underthesea_core-0.0.5_alpha.2-cp37-none-win_amd64.whl (504.8 kB view hashes)

Uploaded CPython 3.7 Windows x86-64

underthesea_core-0.0.5_alpha.2-cp37-cp37m-manylinux2010_x86_64.whl (591.7 kB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.12+ x86-64

underthesea_core-0.0.5_alpha.2-cp37-cp37m-macosx_10_7_x86_64.whl (540.8 kB view hashes)

Uploaded CPython 3.7m macOS 10.7+ x86-64

underthesea_core-0.0.5_alpha.2-cp36-none-win_amd64.whl (503.1 kB view hashes)

Uploaded CPython 3.6 Windows x86-64

underthesea_core-0.0.5_alpha.2-cp36-cp36m-manylinux2010_x86_64.whl (588.8 kB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.12+ x86-64

underthesea_core-0.0.5_alpha.2-cp36-cp36m-macosx_10_7_x86_64.whl (538.2 kB view hashes)

Uploaded CPython 3.6m macOS 10.7+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page