Skip to main content

texta-tagger

Project description

TEXTA Torch Tagger Python Package

Installation

From Git

pip install git+https://git.texta.ee/texta/texta-torch-tagger-python.git

Testing

python -m pytest -v tests

Usage

>>>  from texta_tools.embedding import W2VEmbedding
>>>  from texta_torch_tagger.tagger import TorchTagger
>>>  
>>>  data = {"good": ["Täna on ilus ilm.", "Kuidas käsi käib?"], "bad": ["Arno on loll.", "ei"]}
>>>  
>>>  embedding = W2VEmbedding()
>>>  embedding.train([y for x in data.values() for y in x])
>>>  
>>>  tagger = TorchTagger(embedding, model_arch="TextRNN")
>>>  
>>>  report = t.train(data, num_epochs=3)
>>>  
>>>  tagger.tag_text("Ei hooli.")
"bad"

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-torch-tagger-1.0.4.tar.gz (20.5 kB view details)

Uploaded Source

File details

Details for the file texta-torch-tagger-1.0.4.tar.gz.

File metadata

  • Download URL: texta-torch-tagger-1.0.4.tar.gz
  • Upload date:
  • Size: 20.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.1.post20201107 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5

File hashes

Hashes for texta-torch-tagger-1.0.4.tar.gz
Algorithm Hash digest
SHA256 fd951fa2de548f6cc9a8425c7175da5cb99ff6c5b429b3f92314f01986dc0ecb
MD5 fcca98782d1cfdce32f4fe1728e7b0ba
BLAKE2b-256 ce84a7639667850503abfba149f1aeb58843b96ed2360a62c0a37a5ec2d12815

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