Skip to main content

texta-crf-extractor

Project description

TEXTA CRF Extractor

Py3.8 Py3.9 Py3.10

Requirements

  • Python >= 3.8
  • SciPy installation for scikit-learn (requires BLAS & LAPACK system libraries).

Installation:

# For debian based systems (ex: debian:buster) to install binary dependencies.

apt-get update && apt-get install python3-scipy

# Install without MLP

pip install texta-crf-extractor

# Install with MLP 

pip install texta-crf-extractor[mlp]

Usage:

from texta_crf_extractor.crf_extractor import CRFExtractor
from texta_mlp.mlp import MLP

mlp = MLP(language_codes=["en"], default_language_code="en")

# prepare data
texts = ["foo", "bar"]
mlp_docs = [mlp.process(text) for text in texts]

# create extractor
extractor = CRFExtractor(mlp=mlp)

# train the CRF model
extractor.train(mlp_docs)

# tag something
extractor.tag("Tere maailm!")

Project details


Download files

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

Source Distribution

texta-crf-extractor-2.1.1.tar.gz (20.5 kB view details)

Uploaded Source

File details

Details for the file texta-crf-extractor-2.1.1.tar.gz.

File metadata

  • Download URL: texta-crf-extractor-2.1.1.tar.gz
  • Upload date:
  • Size: 20.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.12 tqdm/4.64.0 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.14

File hashes

Hashes for texta-crf-extractor-2.1.1.tar.gz
Algorithm Hash digest
SHA256 283b2126793f1a12793b1555de0c197bf927ca30652b2b677753de7c78802df4
MD5 2109835297780145f50522c9eb925209
BLAKE2b-256 d359ca72a8c836a844f0bfc4464bae7785df56f7eb98d4f9ebb6ca6080049a17

See more details on using hashes here.

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