updated lemmatizer
This commit is contained in:
parent
498b914c13
commit
8fffed6d58
@ -52,6 +52,10 @@ namespace LemmaGenSockets
|
|||||||
|
|
||||||
private string lemmatizeWord(string languageCode, string word)
|
private string lemmatizeWord(string languageCode, string word)
|
||||||
{
|
{
|
||||||
|
if (word.StartsWith("ne_") || word == "i" || word == "o" || word == "do")
|
||||||
|
{
|
||||||
|
return word;
|
||||||
|
}
|
||||||
string[] parts = word.Split(wordInnerSeparator);
|
string[] parts = word.Split(wordInnerSeparator);
|
||||||
if (parts.Length == 2)
|
if (parts.Length == 2)
|
||||||
{
|
{
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -46,6 +46,10 @@ namespace LemmaGenSentenceLemmatizer
|
|||||||
|
|
||||||
private string lemmatizeWord(string word)
|
private string lemmatizeWord(string word)
|
||||||
{
|
{
|
||||||
|
if (word.StartsWith("ne_") || word == "i" || word == "o" || word=="do")
|
||||||
|
{
|
||||||
|
return word;
|
||||||
|
}
|
||||||
string result = "";
|
string result = "";
|
||||||
string[] parts = word.Split(wordInnerSeparator);
|
string[] parts = word.Split(wordInnerSeparator);
|
||||||
if (parts.Length == 2)
|
if (parts.Length == 2)
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user