Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aboSamoor/pycld2
/ functions
Functions
421 in github.com/aboSamoor/pycld2
⨍
Functions
421
◇
Types & classes
16
Method
ComposeOffsetMap
static
cld2/internal/offsetmap.cc:509
Method
CopyDeletes
static
cld2/internal/offsetmap.cc:496
Method
CopyInserts
static
cld2/internal/offsetmap.cc:482
Method
CurrentTopKey
Return current top key
cld2/internal/tote.cc:205
Function
DemoteNotTop40
cld2/internal/compact_lang_det_impl.cc:467
Function
DetectLanguageCheckUTF8
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
Function
DiffScore
cld2/internal/scoreonescriptspan.cc:187
Function
DoBigramScoreV3
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
Function
DoWordScore
Find top two langs and scores for one word; underpins delta tables
cld2/internal/cldutil_offline.cc:99
Method
DocTote
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
Function
DumpResultChunkVector
cld2/internal/debug_empty.cc:60
Method
DumpString
cld2/internal/offsetmap.cc:208
Method
Emit
Len may be 0, for example as the low piece of length=64
cld2/internal/offsetmap.cc:203
Function
ExtLanguageDeclaredName
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
Function
ExtLanguageName
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
Function
FlagHint
cld2/internal/compact_lang_det_impl.cc:438
Function
FlagShort
cld2/internal/compact_lang_det_impl.cc:437
Function
FlagTop40
cld2/internal/compact_lang_det_impl.cc:436
Function
FlagUseWords
cld2/internal/compact_lang_det_impl.cc:439
Method
FlushAll
Add one more entry to copy one byte off the end, then flush
cld2/internal/offsetmap.cc:190
Method
GetByteCount
cld2/internal/tote.h:46
Method
GetClosePair
cld2/internal/tote.h:81
Function
GetColorHtmlEscapedText
cld2/internal/debug_empty.cc:31
Function
GetHtmlEscapedText
cld2/internal/debug_empty.cc:29
Method
GetIncrCount
cld2/internal/tote.h:80
Function
GetLangColorHtmlEscapedText
cld2/internal/debug_empty.cc:35
Function
GetLangColorHtmlEscapedText
cld2/internal/debug.cc:262
Function
GetOcta2At
Debug output string of two octagrams, including underscores
cld2/internal/debug.cc:72
Method
GetOneScriptSpan
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
Method
GetOneTextSpan
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
Function
GetPlainEscapedText
cld2/internal/debug_empty.cc:27
Function
GetProb
Not sure who calls this... Return the probability for given language, or 0
cld2/internal/cldutil_offline.cc:159
Function
GetScoreTxt
Debug output string of one or two formatted quadgram langprobs
cld2/internal/debug.cc:127
Function
GetTextSpanOffsets
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
Function
IsContinuationByte
cld2/internal/getonescriptspan.h:36
Function
IsPropObj
cld2/internal/utf8statetable.cc:179
Function
IsPropObj_2
cld2/internal/utf8statetable.cc:184
Function
IsReplaceObj
cld2/internal/utf8statetable.cc:194
Function
IsReplaceObj_2
cld2/internal/utf8statetable.cc:200
Function
IsScanObj
cld2/internal/utf8statetable.cc:189
Function
IsSingleLang
Return true if just lang1 is there: lang2=0 and lang3=0
cld2/internal/scoreonescriptspan.cc:99
Function
LanguageRecognizedScript
n is in 0..3. Trailing entries are filled with UNKNOWN_LANGUAGE (which never participates in language recognition)
cld2/internal/lang_script.cc:228
Method
LowerScriptSpan
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
Method
MapBack
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
Method
MapForward
Map an offset in A to the corresponding offset in A'
cld2/internal/offsetmap.cc:455
Method
MaybeFlushAll
Flush all if necessary
cld2/internal/offsetmap.cc:196
Method
MoveLeft
Move active window one range to the left Return true if move was OK
cld2/internal/offsetmap.cc:389
Function
OctaHash40underscore
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
Method
OffsetMap
Constructor, destructor
cld2/internal/offsetmap.cc:31
Method
ParseNext
Parse next range, 1..5 bytes Return subscript just off the end of that
cld2/internal/offsetmap.cc:316
Method
ParsePrevious
Parse previous range, 1..5 bytes Return current subscript
cld2/internal/offsetmap.cc:333
Function
PrintHtmlEscapedText
cld2/internal/compact_lang_det_impl.cc:1211
Function
PrintLang
cld2/internal/compact_lang_det_impl.cc:1216
Method
PrintPosition
Quick debugging dump; does not parse multi-byte items, so just length & 0x3f
cld2/internal/offsetmap.cc:339
Function
PrintText
cld2/internal/compact_lang_det_impl.cc:471
Function
PrintTopLang
cld2/internal/compact_lang_det_impl.cc:1227
Function
PrintTopLangSpeculative
cld2/internal/compact_lang_det_impl.cc:1236
Method
Printmap
Print map to file, for debugging
cld2/internal/offsetmap.cc:65
Function
ProbPackV2
Take three packed languages and three probabilities 1..12 and put into uint32 For offline construction of tables
cld2/internal/cldutil_offline.cc:184
Function
ProbUnpackV2
Take uint32 and unpack into three packed languages and three probabilities For runtime use of tables
cld2/internal/cldutil_offline.cc:202
Function
QuadHashV2Underscore
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
Method
RunningScore
cld2/internal/tote.h:76
Method
ScriptScanner
cld2/internal/getonescriptspan.cc:545
Function
SetCLDPriorLang
cld2/internal/compact_lang_det_hint_code.cc:928
Method
SetLeft
cld2/internal/offsetmap.cc:284
Method
SetRight
cld2/internal/offsetmap.cc:293
Method
SetScore
cld2/internal/tote.h:89
Method
SetScoreCount
cld2/internal/tote.h:48
Method
SkipToFrontOfSpan
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
Method
StringPiece
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
Method
StuffIt
For testing only -- force a mapping
cld2/internal/offsetmap.cc:559
Method
Tote
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
Function
TrimCLDLangTagsHint
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
Function
ULScriptDeclaredName
cld2/internal/lang_script.cc:147
Function
ULScriptName
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
Function
UNALIGNED_LOAD16
cld2/internal/port.h:104
Function
UNALIGNED_LOAD64
cld2/internal/port.h:87
Function
UNALIGNED_STORE16
cld2/internal/port.h:122
Function
UNALIGNED_STORE64
cld2/internal/port.h:93
Function
UTF8GenericProperty
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
Function
UTF8GenericReplaceTwoByte
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
Function
UTF8GenericScanFastAscii
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
Function
UTF8HasGenericProperty
cld2/internal/utf8statetable.cc:258
Function
UTF8HasGenericPropertyBigOneByte
BigOneByte versions are needed for tables > 240 states, but most won't need the TwoByte versions.
cld2/internal/utf8statetable.cc:352
Function
UTF8HasGenericPropertyTwoByte
TwoByte versions are needed for tables > 240 states
cld2/internal/utf8statetable.cc:442
Function
UTF8TrimToChars
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
Function
cld_clear
bindings/pycldmodule.cc:359
Function
cld_traverse
bindings/pycldmodule.cc:354
Function
detect
bindings/pycldmodule.cc:59
Function
init
Inits boosts
cld2/internal/scoreonescriptspan.h:153
Function
init_pycld2
bindings/pycldmodule.cc:389
Function
main
cld2/internal/cld2_unittest_full.cc:400
Function
main
cld2/internal/cld2_unittest.cc:428
Function
main
cld2/internal/cld2_do_score.cc:197
Function
main
cld2/internal/cld2_dynamic_data_tool.cc:52
Function
main
cld2/internal/scoreutf8text.cc:502
Function
main
cld2/internal/compact_lang_det_test.cc:204
Function
setDebug
cld2/internal/cld2_dynamic_data_extractor.cc:25
Method
test_bad_bytes
(self)
test_pycld2.py:63
Method
test_basic
(self)
bindings/test.py:312
← previous
next →
301–400 of 421, ranked by callers