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,7 +14,7 @@ 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.

View File

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