Skip to main content

Utility for part-of-speech tagging of Udmurt text

Project description

This module contains a utility for part-of-speech tagging of Udmurt text. The tool based on LSTM neural network and takes a word order into account.

Installation

The tool could be installed with pip

pip3 install udmurttagger

Note: the model for the utility must be downloaded separately. Due to limitations on the size of the project, I could not place it on a github or PiPy. After launching the program it will download and unpack the model. No action is necessary on your part. But you will need an Internet connection and about 150 megabytes of incoming traffic.

Usage example

Tagging one sentence at a time

>>> from udmurttagger import Tagger
>>> t = Tagger()
>>> sentence = "Сьӧд зарезе."
>>> tagged_sentence = t.predict_pos(sentence)
>>> print(tagged_sentence)
[('сьӧд', 'N'), ('зарезе', 'N')]

Tagset

Tagset based on UDMURT CORPORA

  • ADJ — adjective

  • ADJPRO — adjectival pronoun

  • ADV — adverb

  • ADVPRO — adverbial pronoun

  • CNJ — conjunction

  • IMIT — ideophone

  • INTRJ — interjection

  • N — noun

  • NUM — numeral

  • PARENTH — parenthetic word

  • PART — particle

  • PN — proper noun (subtype of nouns)

  • POST — postposition

  • PREDIC — predicative

  • PRO — pronoun

  • V — verb

See the page for the details.

Model

This tool can be used for disambiguation of rule-based markup.

You can make your own wrap of the trained model.

Model’s evaluation: loss: 0.2281 - acc: 0.9845 - val_loss: 0.2643 - val_acc: 0.9782.

Contacts

You can contact the contriutor of the project via email:

Boris Orekhov (nevmenandr)

@ gmail

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

udmurttagger-0.5.2.tar.gz (431.8 kB view details)

Uploaded Source

File details

Details for the file udmurttagger-0.5.2.tar.gz.

File metadata

  • Download URL: udmurttagger-0.5.2.tar.gz
  • Upload date:
  • Size: 431.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.5

File hashes

Hashes for udmurttagger-0.5.2.tar.gz
Algorithm Hash digest
SHA256 6c5cbc7959655a9c97cf70d3a855c0c51c63d7115da2d26b6765b3df7eaca778
MD5 0314f0a14799229d488918cc013bb66e
BLAKE2b-256 c4fe4ba5b240d7d50e6a426b8e47b7b1202ceba7ec9732ea73371d3831813c58

See more details on using hashes here.

Supported by

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