Fix ya.make

This commit is contained in:
s-kat 2021-05-27 12:16:30 +03:00
parent 9c1d2a31a2
commit 9947f557c8
5 changed files with 7 additions and 5 deletions

BIN
src/Functions/.ya.make.swo Normal file

Binary file not shown.

View File

@ -23,12 +23,13 @@ struct LanguageClassificationImpl
{
String ans(LanguageName(CLD2::DetectLanguage(str, strlen(str), true, &is_UTF8)));
res = ans;
} else {
}
else
{
CLD2::Language result_lang_top3[3];
int pc[3];
int bytes[3];
CLD2::DetectLanguageSummary(str, strlen(str), true, result_lang_top3, pc, bytes, &is_UTF8);
String lang1(LanguageName(result_lang_top3[0]));
String lang2(LanguageName(result_lang_top3[1]));
String lang3(LanguageName(result_lang_top3[2]));

View File

@ -14,12 +14,12 @@ namespace DB
*
* detectCharset(string data) - detect charset of data.
* Returns string name of most likely charset.
* .
*
* detectLanguage(string data) - detect language of data in various encodings (not UTF-8)
*
* getTonality(string data) - defines the emotional coloring of the text.
* Returns NEG if text is negative, POS if text is positive or NEUT if text is neutral.
*
*
* getProgrammingLanguage(string data) - detect programming language
*/
namespace ErrorCodes

View File

@ -11,7 +11,7 @@
namespace DB
{
/**
* Determines the sentiment of text data.
* Determines the sentiment of text data.
* Uses a marked-up sentiment dictionary, each word has a tonality ranging from -3 to 3.
* For each text, calculate the average sentiment value of its words and return NEG, POS or NEUT
*/

View File

@ -59,6 +59,7 @@ SRCS(
FunctionsCharsetClassification.cpp
FunctionsTonalityClassification.cpp
FunctionsProgrammingClassification.cpp
FunctionsLanguageClassification.cpp
GatherUtils/concat.cpp
GatherUtils/createArraySink.cpp
GatherUtils/createArraySource.cpp