Answer the question
In order to leave comments, you need to log in
Definition of the part of speech of a word?
What are the algorithms for determining the part of speech of a word?
Other than listing the endings, nothing came to mind.
<br/>
/*<br/>
Группы окончаний:<br/>
1. прилагательные<br/>
2. причастие<br/>
3. глогол<br/>
4. существительное<br/>
*/<br/>
<br/>
$groups = array(<br/>
1 => array ('ее','ие','ые','ое','ими','ыми','ей','ий','ый','ой','ем','им','ым','ом','его','ого','ему','ому','их','ых','ую','юю','ая','яя','ою','ею'),<br/>
2 => array ('ивш','ывш','ующ','ем','нн','вш','ющ','щ'),<br/>
3 => array ('ила','ыла','ена','ейте','уйте','ите','или','ыли','ей','уй','ил','ыл','им','ым','ен','ило','ыло','ено','ят','ует','уют','ит','ыт','ены','ить','ыть','ишь','ую','ю','ла','на','ете','йте','ли','й','л','ем','н','ло','но','ет','ют','ны','ть','ешь','нно'),<br/>
4 => array ('а','ев','ов','ие','ье','е','иями','ями','ами','еи','ии','и','ией','ей','ой','ий','й','иям','ям','ием','ем','ам','ом','о','у','ах','иях','ях','ы','ь','ию','ью','ю','ия','ья','я'),);<br/>
Answer the question
In order to leave comments, you need to log in
Looking at suffixes / endings is not reliable, compare:
rocks (genus) - general - knew
Here is a link to a PDF about Mystem - company.yandex.ru/technology/mystem
So I answered here
...
If anything, I'm ready to consult in a personal.
The third option (hybrid :)):
1) look in the dictionary,
2) if the word was not found, we try to throw out the prefix from the beginning of the word and look again,
3) if there are several options, we do a parsing.
yeah… is Russian a noun or an adjective?
If you need a really reliable result, you will have to get confused on the context.
what programming language? depending on the language and needs look at phpmorphy, lemmatizer, pymorphy, mystem.
There is a lemmatizer on aot.ru that does morphological parsing.
IMHO, the most adequate and functional tool for this kind of tasks.
I'm writing something similar, current in C++, I'll give you a hint on accuracy, you can use prepositions for a more precise definition, could you not give me your contact information for a joint consideration of this problem, I have a few questions, I will be grateful if you answer me.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question