texta-crf-extractor
Project description
TEXTA CRF Extractor
Installation:
pip install texta-crf-extractor
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
Release history Release notifications | RSS feed
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.1.tar.gz
(18.3 kB
view details)
File details
Details for the file texta-crf-extractor-1.0.1.tar.gz
.
File metadata
- Download URL: texta-crf-extractor-1.0.1.tar.gz
- Upload date:
- Size: 18.3 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 027b84564c9af2eb6f536084a475f64eda2f83bbe71dbc68516bbc7862366197 |
|
MD5 | 5b07135fabcbdb4611a4143340396654 |
|
BLAKE2b-256 | a347c326ad8c202bc914db2e8c11a3d0a2cad067c1f5344a147bde0f863d92ce |