MCPcopy Create free account

hub / github.com/aboSamoor/pycld2 / functions

Functions421 in github.com/aboSamoor/pycld2

MethodComposeOffsetMap
static
cld2/internal/offsetmap.cc:509
MethodCopyDeletes
static
cld2/internal/offsetmap.cc:496
MethodCopyInserts
static
cld2/internal/offsetmap.cc:482
MethodCurrentTopKey
Return current top key
cld2/internal/tote.cc:205
FunctionDemoteNotTop40
cld2/internal/compact_lang_det_impl.cc:467
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
cld2/internal/compact_lang_det.cc:44
FunctionDiffScore
cld2/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
cld2/internal/cldutil.cc:163
FunctionDoWordScore
Find top two langs and scores for one word; underpins delta tables
cld2/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
cld2/internal/tote.cc:105
FunctionDumpResultChunkVector
cld2/internal/debug_empty.cc:60
MethodDumpString
cld2/internal/offsetmap.cc:208
MethodEmit
Len may be 0, for example as the low piece of length=64
cld2/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
cld2/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
cld2/internal/lang_script.cc:240
FunctionFlagHint
cld2/internal/compact_lang_det_impl.cc:438
FunctionFlagShort
cld2/internal/compact_lang_det_impl.cc:437
FunctionFlagTop40
cld2/internal/compact_lang_det_impl.cc:436
FunctionFlagUseWords
cld2/internal/compact_lang_det_impl.cc:439
MethodFlushAll
Add one more entry to copy one byte off the end, then flush
cld2/internal/offsetmap.cc:190
MethodGetByteCount
cld2/internal/tote.h:46
MethodGetClosePair
cld2/internal/tote.h:81
FunctionGetColorHtmlEscapedText
cld2/internal/debug_empty.cc:31
FunctionGetHtmlEscapedText
cld2/internal/debug_empty.cc:29
MethodGetIncrCount
cld2/internal/tote.h:80
FunctionGetLangColorHtmlEscapedText
cld2/internal/debug_empty.cc:35
FunctionGetLangColorHtmlEscapedText
cld2/internal/debug.cc:262
FunctionGetOcta2At
Debug output string of two octagrams, including underscores
cld2/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
cld2/internal/getonescriptspan.cc:801
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
cld2/internal/getonescriptspan.cc:681
FunctionGetPlainEscapedText
cld2/internal/debug_empty.cc:27
FunctionGetProb
Not sure who calls this... Return the probability for given language, or 0
cld2/internal/cldutil_offline.cc:159
FunctionGetScoreTxt
Debug output string of one or two formatted quadgram langprobs
cld2/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
cld2/internal/scoreonescriptspan.cc:164
FunctionIsContinuationByte
cld2/internal/getonescriptspan.h:36
FunctionIsPropObj
cld2/internal/utf8statetable.cc:179
FunctionIsPropObj_2
cld2/internal/utf8statetable.cc:184
FunctionIsReplaceObj
cld2/internal/utf8statetable.cc:194
FunctionIsReplaceObj_2
cld2/internal/utf8statetable.cc:200
FunctionIsScanObj
cld2/internal/utf8statetable.cc:189
FunctionIsSingleLang
Return true if just lang1 is there: lang2=0 and lang3=0
cld2/internal/scoreonescriptspan.cc:99
FunctionLanguageRecognizedScript
n is in 0..3. Trailing entries are filled with UNKNOWN_LANGUAGE (which never participates in language recognition)
cld2/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
cld2/internal/getonescriptspan.cc:1035
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
cld2/internal/getonescriptspan.cc:1078
MethodMapForward
Map an offset in A to the corresponding offset in A'
cld2/internal/offsetmap.cc:455
MethodMaybeFlushAll
Flush all if necessary
cld2/internal/offsetmap.cc:196
MethodMoveLeft
Move active window one range to the left Return true if move was OK
cld2/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
cld2/internal/cldutil_shared.cc:364
MethodOffsetMap
Constructor, destructor
cld2/internal/offsetmap.cc:31
MethodParseNext
Parse next range, 1..5 bytes Return subscript just off the end of that
cld2/internal/offsetmap.cc:316
MethodParsePrevious
Parse previous range, 1..5 bytes Return current subscript
cld2/internal/offsetmap.cc:333
FunctionPrintHtmlEscapedText
cld2/internal/compact_lang_det_impl.cc:1211
FunctionPrintLang
cld2/internal/compact_lang_det_impl.cc:1216
MethodPrintPosition
Quick debugging dump; does not parse multi-byte items, so just length & 0x3f
cld2/internal/offsetmap.cc:339
FunctionPrintText
cld2/internal/compact_lang_det_impl.cc:471
FunctionPrintTopLang
cld2/internal/compact_lang_det_impl.cc:1227
FunctionPrintTopLangSpeculative
cld2/internal/compact_lang_det_impl.cc:1236
MethodPrintmap
Print map to file, for debugging
cld2/internal/offsetmap.cc:65
FunctionProbPackV2
Take three packed languages and three probabilities 1..12 and put into uint32 For offline construction of tables
cld2/internal/cldutil_offline.cc:184
FunctionProbUnpackV2
Take uint32 and unpack into three packed languages and three probabilities For runtime use of tables
cld2/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
cld2/internal/cldutil_shared.cc:208
MethodRunningScore
cld2/internal/tote.h:76
MethodScriptScanner
cld2/internal/getonescriptspan.cc:545
FunctionSetCLDPriorLang
cld2/internal/compact_lang_det_hint_code.cc:928
MethodSetLeft
cld2/internal/offsetmap.cc:284
MethodSetRight
cld2/internal/offsetmap.cc:293
MethodSetScore
cld2/internal/tote.h:89
MethodSetScoreCount
cld2/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
cld2/internal/getonescriptspan.cc:594
MethodStringPiece
We provide non-explicit singleton constructors so users can pass in a "const char*" or a "string" wherever a "StringPiece" is expected.
cld2/internal/stringpiece.h:39
MethodStuffIt
For testing only -- force a mapping
cld2/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
cld2/internal/tote.cc:30
FunctionTrimCLDLangTagsHint
Trim language tag string to canonical form for each language Input is from GetLangTagsFromHtml(), already lowercased
cld2/internal/compact_lang_det_hint_code.cc:1050
FunctionULScriptDeclaredName
cld2/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)
cld2/internal/lang_script.cc:133
FunctionUNALIGNED_LOAD16
cld2/internal/port.h:104
FunctionUNALIGNED_LOAD64
cld2/internal/port.h:87
FunctionUNALIGNED_STORE16
cld2/internal/port.h:122
FunctionUNALIGNED_STORE64
cld2/internal/port.h:93
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
cld2/internal/utf8statetable.cc:207
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
cld2/internal/utf8statetable.cc:1242
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
cld2/internal/utf8statetable.cc:588
FunctionUTF8HasGenericProperty
cld2/internal/utf8statetable.cc:258
FunctionUTF8HasGenericPropertyBigOneByte
BigOneByte versions are needed for tables > 240 states, but most won't need the TwoByte versions.
cld2/internal/utf8statetable.cc:352
FunctionUTF8HasGenericPropertyTwoByte
TwoByte versions are needed for tables > 240 states
cld2/internal/utf8statetable.cc:442
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
cld2/internal/utf8statetable.cc:1319
Functioncld_clear
bindings/pycldmodule.cc:359
Functioncld_traverse
bindings/pycldmodule.cc:354
Functiondetect
bindings/pycldmodule.cc:59
Functioninit
Inits boosts
cld2/internal/scoreonescriptspan.h:153
Functioninit_pycld2
bindings/pycldmodule.cc:389
Functionmain
cld2/internal/cld2_unittest_full.cc:400
Functionmain
cld2/internal/cld2_unittest.cc:428
Functionmain
cld2/internal/cld2_do_score.cc:197
Functionmain
cld2/internal/cld2_dynamic_data_tool.cc:52
Functionmain
cld2/internal/scoreutf8text.cc:502
Functionmain
cld2/internal/compact_lang_det_test.cc:204
FunctionsetDebug
cld2/internal/cld2_dynamic_data_extractor.cc:25
Methodtest_bad_bytes
(self)
test_pycld2.py:63
Methodtest_basic
(self)
bindings/test.py:312
← previousnext →301–400 of 421, ranked by callers