UzMorphAnalyser | Uzbek Morphological Analyser on Python
Project description
UzMorphAnalyser
https://pypi.org/project/UzMorphAnalyser
https://github.com/UlugbekSalaev/UzMorphAnalyser
UzMorpAnalyser tool is focused to make morphological analysis of Uzbek word based on morphemes. The tool includes Stemmer, Lemmatizer, Morphological Analyze methods. It is created as a python library and uploaded to PyPI. It is simply easy to use in your python project or other programming language projects via the API.
About project
The tool is focused to make morphological analysis of Uzbek word based on morphemes. The tool includes Stemmer, Lemmatizer, Morphological Analyze methods.
Quick links
Demo
You can use web interface.
Features
- Stemmer
- Lemmatizer
- Lemmatizer with POS tag
- Extract Morphemes list
- Analyzer
- Analyzer with POS tag
Usage
Three options to run UzMorphAnalyser:
- pip
- API
- Web interface
pip installation
To install UzMorphAnalyser, simply run:
pip install UzMorphAnalyser
After installation, use in python like following:
# import the library
from UzMorphAnalyser import UzMorphAnalyser
# create an object
analyzer = UzMorphAnalyser()
# call stem method
analyzer.stem('maktabimda')
# call lemmatize method
analyzer.lemmatize('maktabimda')
# call lemmatize method with POS tag
analyzer.lemmatize('maktabimda', analyzer.POS.NOUN)
# call analyze method
analyzer.analyze('maktabimda')
# call analyze method with POS tag
analyzer.analyze('maktabimda', analyzer.POS.NOUN)
API
API configurations:
-
Method: GET
-
Response type:
string -
URL: https://nlp.urdu.uz:8080/uzmorphanalyser/stem
- Parameters:
word:string - Sample Request: https://nlp.urdu.uz:8080/uzmorphanalyser/stem?word=maktabimda
- Parameters:
-
https://nlp.urdu.uz:8080/uzmorphanalyser/lemmatize
- Parameters:
word:string,pos:string - Sample Request: https://nlp.urdu.uz:8080/uzmorphanalyser/lemmatize?word=maktabimda&pos=NOUN
- Parameters:
-
https://nlp.urdu.uz:8080/uzmorphanalyser/analyze
- Parameters:
word:string,pos:string - Sample Request: https://nlp.urdu.uz:8080/uzmorphanalyser/analyze?word=maktabimda&pos=NOUN
- Parameters:
Note: argument pos is optional in all methods
Web-UI
The web interface created to use easily the library: You can use web interface here.
Options
When you use PyPI or API, you should use following options as POS tag of a word which is optional parameters of lemmatize() and analyze() metods:
NOUN Noun
VERB Verb
ADJ Adjective
NUM Numerical
PRN Pronoun
ADV Adverb
pos parameters is optional for lemmatize and analyze metods.
Result Explaining
It returns single word in a string type from each method, stem and lemmatize, that is stem and lemma of given word, respectively.
Result from analyze method
analyze method returns a response as list of dictionary which is may contain following keys:
{'word', 'lemma', 'pos', 'affix','affixed','tense','person','cases','singular','plural','question','negative','impulsion','copula','verb_voice','verb_func'}:
Documentation
See here.
Citation
Plain text
Ulugbek Salaev; UzMorphAnalyser: A morphological analysis model for the Uzbek language using inflectional endings. AIP Conf. Proc. 27 November 2024; 3244 (1): 030058. https://doi.org/10.1063/5.0241461
Bibtex
@CONFERENCE{Salaev2024,
author = {Salaev, Ulugbek},
title = {UzMorphAnalyser: A Morphological Analysis Model for the Uzbek Language Using Inflectional Endings},
year = {2024},
journal = {AIP Conference Proceedings},
volume = {3244},
number = {1},
doi = {10.1063/5.0241461},
url = {https://www.scopus.com/inward/record.uri?eid=2-s2.0-85212084325&doi=10.1063%2f5.0241461&partnerID=40&md5=2aebf2ea03ea0a3a7850c4fb867480ba},
source = {Scopus}
}
Contact
For help and feedback, please feel free to contact the author.
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 Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file UzMorphAnalyser-0.0.19-py3-none-any.whl.
File metadata
- Download URL: UzMorphAnalyser-0.0.19-py3-none-any.whl
- Upload date:
- Size: 33.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
21a031ae9bca71120513faa711282bb71772b1b757c85dd5ffd9522ab00ba69e
|
|
| MD5 |
11e32274a7cbb99a08a8b5ec9c2d5a6a
|
|
| BLAKE2b-256 |
1946ddab55737874426c564dbbbb10fd4082f3a776fb2b7359e4c151a766d538
|