updated lemmatizer

This commit is contained in:
rjawor 2017-04-26 14:03:29 +02:00
parent 498b914c13
commit 8fffed6d58
12 changed files with 8 additions and 0 deletions

View File

@ -52,6 +52,10 @@ namespace LemmaGenSockets
private string lemmatizeWord(string languageCode, string word)
{
if (word.StartsWith("ne_") || word == "i" || word == "o" || word == "do")
{
return word;
}
string[] parts = word.Split(wordInnerSeparator);
if (parts.Length == 2)
{

View File

@ -46,6 +46,10 @@ namespace LemmaGenSentenceLemmatizer
private string lemmatizeWord(string word)
{
if (word.StartsWith("ne_") || word == "i" || word == "o" || word=="do")
{
return word;
}
string result = "";
string[] parts = word.Split(wordInnerSeparator);
if (parts.Length == 2)