mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Fix ya.make
This commit is contained in:
parent
9c1d2a31a2
commit
9947f557c8
BIN
src/Functions/.ya.make.swo
Normal file
BIN
src/Functions/.ya.make.swo
Normal file
Binary file not shown.
@ -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]));
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
*/
|
||||
|
@ -59,6 +59,7 @@ SRCS(
|
||||
FunctionsCharsetClassification.cpp
|
||||
FunctionsTonalityClassification.cpp
|
||||
FunctionsProgrammingClassification.cpp
|
||||
FunctionsLanguageClassification.cpp
|
||||
GatherUtils/concat.cpp
|
||||
GatherUtils/createArraySink.cpp
|
||||
GatherUtils/createArraySource.cpp
|
||||
|
Loading…
Reference in New Issue
Block a user