MCPcopy Create free account

hub / github.com/CLD2Owners/cld2 / functions

Functions389 in github.com/CLD2Owners/cld2

FunctionDetectLanguageCheckUTF8
Scan interchange-valid UTF-8 bytes and detect most likely language If the input is in fact not valid UTF-8, this returns immediately with the result v
internal/compact_lang_det.cc:44
FunctionDiffScore
internal/scoreonescriptspan.cc:187
FunctionDoBigramScoreV3
BIGRAM, using hash table, always advancing by 1 char Caller supplies table, such as &kCjkBiTable_obj or &kGibberishTable_obj Score all bigrams in isrc
internal/cldutil.cc:163
FunctionDoWordScore
Find top two langs and scores for one word; underpins delta tables
internal/cldutil_offline.cc:99
MethodDocTote
Take a set of <key, value> pairs and tote them up. After explicitly sorting, retrieve top key, value pairs 0xFFFF in key signifies unused
internal/tote.cc:105
FunctionDumpResultChunkVector
internal/debug_empty.cc:60
MethodDumpString
internal/offsetmap.cc:208
MethodEmit
Len may be 0, for example as the low piece of length=64
internal/offsetmap.cc:203
FunctionExtLanguageDeclaredName
Given the Language, returns its Language enum spelling, for use by programs that create C declarations, e.g. "KOREAN" "UNKNOWN_LANGUAGE" if the input
internal/lang_script.cc:253
FunctionExtLanguageName
Given the Language, returns its string name used as the output by the lang/enc identifier, e.g. "Korean" "invalid_language" if the input is invalid. T
internal/lang_script.cc:240
FunctionFlagHint
internal/compact_lang_det_impl.cc:438
FunctionFlagShort
internal/compact_lang_det_impl.cc:437
FunctionFlagTop40
internal/compact_lang_det_impl.cc:436
FunctionFlagUseWords
internal/compact_lang_det_impl.cc:439
MethodFlushAll
Add one more entry to copy one byte off the end, then flush
internal/offsetmap.cc:190
MethodGetByteCount
internal/tote.h:46
MethodGetClosePair
internal/tote.h:81
FunctionGetColorHtmlEscapedText
internal/debug_empty.cc:31
FunctionGetHtmlEscapedText
internal/debug_empty.cc:29
MethodGetIncrCount
internal/tote.h:80
FunctionGetLangColorHtmlEscapedText
internal/debug_empty.cc:35
FunctionGetLangColorHtmlEscapedText
internal/debug.cc:262
FunctionGetOcta2At
Debug output string of two octagrams, including underscores
internal/debug.cc:72
MethodGetOneScriptSpan
Copy next run of same-script non-tag letters to buffer [NUL terminated] Buffer ALWAYS has leading space and trailing space space space NUL
internal/getonescriptspan.cc:799
MethodGetOneTextSpan
Copy next run of non-tag characters to buffer [NUL terminated] This just replaces tags with space or \n and removes entities. Tags <br> <p> and <tr> a
internal/getonescriptspan.cc:679
FunctionGetPlainEscapedText
internal/debug_empty.cc:27
FunctionGetProb
Not sure who calls this... Return the probability for given language, or 0
internal/cldutil_offline.cc:159
FunctionGetScoreTxt
Debug output string of one or two formatted quadgram langprobs
internal/debug.cc:127
FunctionGetTextSpanOffsets
At this point, The chunk is described by hitbuffer->base[cspan->chunk_base .. cspan->chunk_base + cspan->base_len) hitbuffer->delta[cspan->chunk_delta
internal/scoreonescriptspan.cc:164
FunctionIsContinuationByte
internal/getonescriptspan.h:36
FunctionIsSingleLang
Return true if just lang1 is there: lang2=0 and lang3=0
internal/scoreonescriptspan.cc:99
FunctionLanguageRecognizedScript
n is in 0..3. Trailing entries are filled with UNKNOWN_LANGUAGE (which never participates in language recognition)
internal/lang_script.cc:228
MethodLowerScriptSpan
Force Latin, Cyrillic, Armenian, Greek scripts to be lowercase List changes with each version of Unicode, so just always lowercase Unicode 6.2.0: ARME
internal/getonescriptspan.cc:1033
MethodMapBack
Maps byte offset in most recent GetOneScriptSpan/Lower span->text [0..text_bytes] into an additional byte offset from span->offset, to get back to cor
internal/getonescriptspan.cc:1076
MethodMapForward
Map an offset in A to the corresponding offset in A'
internal/offsetmap.cc:455
MethodMaybeFlushAll
Flush all if necessary
internal/offsetmap.cc:196
MethodMoveLeft
Move active window one range to the left Return true if move was OK
internal/offsetmap.cc:389
FunctionOctaHash40underscore
OCTAGRAM wrapper with surrounding underscores (offline use) Pick up 1..24 bytes plus pre/post space and hash them via mask/shift/add UNDERSHOOTS 1 byt
internal/cldutil_shared.cc:364
MethodOffsetMap
Constructor, destructor
internal/offsetmap.cc:31
MethodParseNext
Parse next range, 1..5 bytes Return subscript just off the end of that
internal/offsetmap.cc:316
MethodParsePrevious
Parse previous range, 1..5 bytes Return current subscript
internal/offsetmap.cc:333
FunctionPrintHtmlEscapedText
internal/compact_lang_det_impl.cc:1211
FunctionPrintLang
internal/compact_lang_det_impl.cc:1216
MethodPrintPosition
Quick debugging dump; does not parse multi-byte items, so just length & 0x3f
internal/offsetmap.cc:339
FunctionPrintText
internal/compact_lang_det_impl.cc:471
FunctionPrintTopLang
internal/compact_lang_det_impl.cc:1227
FunctionPrintTopLangSpeculative
internal/compact_lang_det_impl.cc:1236
MethodPrintmap
Print map to file, for debugging
internal/offsetmap.cc:65
FunctionProbPackV2
Take three packed languages and three probabilities 1..12 and put into uint32 For offline construction of tables
internal/cldutil_offline.cc:184
FunctionProbUnpackV2
Take uint32 and unpack into three packed languages and three probabilities For runtime use of tables
internal/cldutil_offline.cc:202
FunctionQuadHashV2Underscore
QUADGRAM wrapper with surrounding underscores (offline use) Pick up 1..12 bytes plus pre/post '_' and hash them via mask/shift/add OVERSHOOTS up to 3
internal/cldutil_shared.cc:208
MethodRunningScore
internal/tote.h:76
MethodScriptScanner
internal/getonescriptspan.cc:545
FunctionSetCLDPriorLang
internal/compact_lang_det_hint_code.cc:928
MethodSetLeft
internal/offsetmap.cc:284
MethodSetRight
internal/offsetmap.cc:293
MethodSetScore
internal/tote.h:89
MethodSetScoreCount
internal/tote.h:48
MethodSkipToFrontOfSpan
Get to the first real non-tag letter or entity that is a letter Sets script of that letter Return len if no more letters
internal/getonescriptspan.cc:592
MethodStringPiece
We provide non-explicit singleton constructors so users can pass in a "const char*" or a "string" wherever a "StringPiece" is expected.
internal/stringpiece.h:39
MethodStuffIt
For testing only -- force a mapping
internal/offsetmap.cc:559
MethodTote
Take a set of <key, value> pairs and tote them up. After explicitly sorting, retrieve top key, value pairs Normal use is key=per-script language and v
internal/tote.cc:30
FunctionTrimCLDLangTagsHint
Trim language tag string to canonical form for each language Input is from GetLangTagsFromHtml(), already lowercased
internal/compact_lang_det_hint_code.cc:1050
FunctionULScriptDeclaredName
internal/lang_script.cc:147
FunctionULScriptName
If the input is out of range or otherwise unrecognized, it is treated as UNKNOWN_ULSCRIPT (which never participates in language recognition)
internal/lang_script.cc:133
FunctionUNALIGNED_LOAD16
internal/port.h:106
FunctionUNALIGNED_LOAD64
internal/port.h:89
FunctionUNALIGNED_STORE16
internal/port.h:124
FunctionUNALIGNED_STORE64
internal/port.h:95
FunctionUTF8GenericProperty
Look up property of one UTF-8 character and advance over it Return 0 if input length is zero Return 0 and advance one byte if input is ill-formed
internal/utf8statetable.cc:179
FunctionUTF8GenericReplaceTwoByte
Scan a UTF-8 stringpiece based on state table with two-byte entries, copying to output stringpiece and doing text replacements. Also writes an optiona
internal/utf8statetable.cc:1214
FunctionUTF8GenericScanFastAscii
Scan a UTF-8 stringpiece based on state table. Always scan complete UTF-8 characters Set number of bytes scanned. Return reason for exiting OPTIMIZED
internal/utf8statetable.cc:560
FunctionUTF8HasGenericProperty
internal/utf8statetable.cc:230
FunctionUTF8HasGenericPropertyBigOneByte
BigOneByte versions are needed for tables > 240 states, but most won't need the TwoByte versions.
internal/utf8statetable.cc:324
FunctionUTF8HasGenericPropertyTwoByte
TwoByte versions are needed for tables > 240 states
internal/utf8statetable.cc:414
FunctionUTF8TrimToChars
Adjust a stringpiece to encompass complete UTF-8 characters. The data pointer will be increased by 0..3 bytes to get to a character boundary, and the
internal/utf8statetable.cc:1291
Functioninit
Inits boosts
internal/scoreonescriptspan.h:153
Functionmain
internal/cld2_unittest_full.cc:400
Functionmain
internal/cld2_unittest.cc:428
Functionmain
internal/cld2_do_score.cc:197
Functionmain
internal/cld2_dynamic_data_tool.cc:52
Functionmain
internal/scoreutf8text.cc:502
Functionmain
internal/compact_lang_det_test.cc:204
FunctionsetDebug
internal/cld2_dynamic_data_extractor.cc:25
Functionwrap
internal/scoreonescriptspan.h:120
Method~DocTote
internal/tote.cc:113
Method~OffsetMap
internal/offsetmap.cc:35
Method~ScriptScanner
internal/getonescriptspan.cc:581
Method~Tote
internal/tote.cc:37
← previous301–389 of 389, ranked by callers