Skip to main content

texta-crf-extractor

Project description

TEXTA CRF Extractor

Installation:

# 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-1.0.10.tar.gz (19.5 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: texta-crf-extractor-1.0.10.tar.gz
  • Upload date:
  • Size: 19.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.3

File hashes

Hashes for texta-crf-extractor-1.0.10.tar.gz
Algorithm Hash digest
SHA256 5acb05087465d8754df8914bae63f574d9d3f71c3f98034df796cb63857c84c9
MD5 9b6fc98bfac03b4bc6d69c9659b444a6
BLAKE2b-256 d4c4c8672415bfbc30d421953852a7ba4da85093654bf90d3c71a8bb68bef6a0

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