MCPcopy Create free account

hub / github.com/aboSamoor/pycld2 / functions

Functions421 in github.com/aboSamoor/pycld2

↓ 43 callersMethodsize
cld2/internal/stringpiece.h:71
↓ 38 callersFunctionLanguageCode
cld2/internal/lang_script.cc:212
↓ 36 callersFunctionUNALIGNED_LOAD32
cld2/internal/port.h:110
↓ 33 callersFunctionLanguageName
cld2/internal/lang_script.cc:206
↓ 20 callersMethodCopy
Add to mapping from A to A', specifying how many next bytes are identical in A and A'
cld2/internal/offsetmap.cc:107
↓ 19 callersFunctionLgProb3
Return one of three probabilities in an entry
cld2/internal/cldutil_shared.h:322
↓ 18 callersFunctionBinarySearch
Returns mid if key found in lo <= mid < hi, else -1
cld2/internal/lang_script.cc:361
↓ 17 callersFunctionGetHtmlEscapedText
cld2/internal/debug.cc:225
↓ 17 callersFunctionminint
cld2/internal/cldutil.h:73
↓ 16 callersMethodDelete
Add to mapping from A to A', specifying how many next bytes are deleted from A while not advancing in A' at all
cld2/internal/offsetmap.cc:141
↓ 14 callersMethoddata
data() may return a pointer to a buffer with embedded NULs, and the returned buffer may or may not be null terminated. Therefore it is typically a mi
cld2/internal/stringpiece.h:70
↓ 14 callersMethodlength
cld2/internal/stringpiece.h:72
↓ 13 callersFunctionSkipOneField
Skips over xxxxx_ where _ is one or more spaces/tabs Returns string::npos if no more fields
cld2/internal/cld2_do_score.cc:95
↓ 13 callersFunctionSkipOneField
Skips over xxxxx_ where _ is one or more spaces/tabs Returns string::npos if no more fields
cld2/internal/scoreutf8text.cc:92
↓ 13 callersMethodValue
cld2/internal/tote.h:84
↓ 13 callersMethodempty
cld2/internal/stringpiece.h:73
↓ 12 callersFunctionDetectLanguageSummaryV2
Results language3/percent3/text_bytes must be exactly three items
cld2/internal/compact_lang_det_impl.cc:1707
↓ 12 callersFunctionGetLangScore
Return score for a particular per-script language, or zero
cld2/internal/cldutil.cc:141
↓ 10 callersFunctionFindAfter
Scan forwards for case-insensitive string s in [pos..max_pos) Bytes of s must already be lowercase, i.e. in [20..3f] or [60..7f] Cheap lowercase. Cont
cld2/internal/compact_lang_det_hint_code.cc:1328
↓ 10 callersFunctionLanguageCloseSet
Returns which set of statistically-close languages lang is in. 0 means none.
cld2/internal/lang_script.cc:261
↓ 10 callersMethodReliability
sum lg prob
cld2/internal/tote.h:86
↓ 9 callersFunctionMakeULScr
cld2/internal/lang_script.cc:462
↓ 9 callersFunctionisDataLoaded
cld2/internal/compact_lang_det_impl.cc:105
↓ 8 callersMethodAdd
cld2/internal/tote.cc:52
↓ 8 callersFunctionGetCLDPriorLang
cld2/internal/compact_lang_det_hint_code.h:44
↓ 8 callersFunctionGetCLDPriorWeight
Reading exposed here; setting hidden in .cc
cld2/internal/compact_lang_det_hint_code.h:41
↓ 8 callersMethodInsert
Add to mapping from A to A', specifying how many next bytes are inserted in A' while not advancing in A at all
cld2/internal/offsetmap.cc:122
↓ 8 callersMethodKey
cld2/internal/tote.h:83
↓ 8 callersFunctionMakeLang
cld2/internal/lang_script.cc:376
↓ 8 callersFunctionwriteChunk
cld2/internal/cld2_dynamic_data_extractor.cc:39
↓ 7 callersMethodClear
Clear the map After: next_diff_sub_ is 0 Windows are the a and a' ranges covered by diffs_[next_diff_sub_-1] which is a fake range of width 0 mapping
cld2/internal/offsetmap.cc:43
↓ 7 callersFunctionDisplayPiece
cld2/internal/getonescriptspan.cc:213
↓ 7 callersFunctionFlush
cld2/internal/cld2_do_score.cc:173
↓ 7 callersFunctionFromPerScriptNumber
cld2/internal/lang_script.cc:328
↓ 7 callersFunctionGetLangProbTxt
Debug output string of one formatted langprob Returns "en.24&nbsp;fr.10&nbsp;es.4"
cld2/internal/debug.cc:99
↓ 7 callersFunctionGetUTF8LetterScriptNum
Gets lscript number for letters; always returns 0 (common script) for non-letters
cld2/internal/getonescriptspan.cc:1085
↓ 7 callersFunctionLgProb2TblEntry
Return address of 8-byte entry[i]
cld2/internal/cldutil_shared.h:317
↓ 7 callersFunctionMergeCLDLangPriorsBoost
Merge in another language prior, boosting 10x if already there
cld2/internal/compact_lang_det_hint_code.cc:958
↓ 7 callersFunctionOpPart
cld2/internal/offsetmap.cc:57
↓ 7 callersFunctionUTF8OneCharLen
cld2/internal/utf8statetable.h:269
↓ 6 callersMethodGetBufferStart
cld2/internal/getonescriptspan.h:81
↓ 6 callersFunctionInStateZero
Return true if current Tbl pointer is within state0 range Note that unsigned compare checks both ends of range simultaneously
cld2/internal/utf8statetable.cc:164
↓ 6 callersFunctionLenPart
cld2/internal/offsetmap.cc:60
↓ 6 callersFunctionQuadHashV3Lookup4
Look up 32-bit gram FP in caller-passed table Typical size 256K entries (1.5MB) Two-byte hashkey
cld2/internal/cldutil_shared.h:403
↓ 6 callersMethodSetScore
cld2/internal/tote.h:49
↓ 5 callersFunctionEqCase
These are for ASCII-only tag names Compare one letter uplow to c, ignoring case of uplowp
cld2/internal/getonescriptspan.cc:649
↓ 5 callersFunctionFindBefore
Scan backwards for case-insensitive string s in [min_pos..pos) Bytes of s must already be lowercase, i.e. in [20..3f] or [60..7f] Cheap lowercase. Con
cld2/internal/compact_lang_det_hint_code.cc:1306
↓ 5 callersFunctionGetLanguageFromName
Name can be either full name or ISO code, or can be ISO code embedded in a language-script combination such as "ABKHAZIAN", "en", "en-Latn-GB"
cld2/internal/lang_script.cc:380
↓ 5 callersMethodGetScore
cld2/internal/tote.h:47
↓ 5 callersFunctionMapToSmallInt
cld2/internal/scoreutf8text.cc:224
↓ 5 callersFunctionOneTest
cld2/internal/cld2_unittest.cc:193
↓ 5 callersFunctionPackCLDPriorLangWeight
cld2/internal/compact_lang_det_hint_code.cc:932
↓ 5 callersFunctionPerScriptNumber
cld2/internal/lang_script.cc:320
↓ 5 callersMethodReset
Reset to offset 0
cld2/internal/offsetmap.cc:94
↓ 5 callersMethodScore
byte count
cld2/internal/tote.h:85
↓ 5 callersMethodSetReliability
cld2/internal/tote.h:90
↓ 5 callersFunctionULScriptCode
cld2/internal/lang_script.cc:140
↓ 5 callersFunctionWS
These are for ASCII-only tag names Return true for space \n false for \r
cld2/internal/getonescriptspan.cc:661
↓ 5 callersMethodremove_prefix
cld2/internal/stringpiece.h:57
↓ 5 callersFunctionunloadData
cld2/internal/compact_lang_det_impl.cc:138
↓ 4 callersFunctionBytesPer1KB
cld2/internal/cld2_do_score.cc:192
↓ 4 callersFunctionDetectLanguageVersion
Return version text string String is "code_version - data_build_date"
cld2/internal/compact_lang_det_impl.cc:2114
↓ 4 callersFunctionDoLangTagLookup
Binary lookup on language tag
cld2/internal/compact_lang_det_hint_code.cc:1007
↓ 4 callersFunctionDumpResultChunkVector
cld2/internal/debug.cc:463
↓ 4 callersMethodDumpWindow
cld2/internal/offsetmap.cc:248
↓ 4 callersFunctionEntityToBuffer
Src points to '&' Writes entity value to dst. Returns take(src), put(dst) byte counts
cld2/internal/getonescriptspan.cc:454
↓ 4 callersFunctionInStateZero_2
cld2/internal/utf8statetable.cc:169
↓ 4 callersFunctionIsSpecial
Returns true if character is < > or &, none of which are letters
cld2/internal/getonescriptspan.cc:471
↓ 4 callersMethodMapBack
Map an offset in A' to the corresponding offset in A
cld2/internal/offsetmap.cc:428
↓ 4 callersMethodMaxSize
cld2/internal/tote.h:82
↓ 4 callersFunctionMergeCLDLangPriorsMax
Merge in another language prior, taking max if already there
cld2/internal/compact_lang_det_hint_code.cc:941
↓ 4 callersFunctionSameCloseSet
cld2/internal/scoreonescriptspan.cc:44
↓ 4 callersFunctionmaxint
cld2/internal/cldutil.h:74
↓ 3 callersFunctionAddLangProb
cld2/internal/scoreonescriptspan.cc:35
↓ 3 callersFunctionAddOneWhack
cld2/internal/compact_lang_det_impl.cc:1545
↓ 3 callersFunctionCountPredictedBytes
cld2/internal/compact_lang_det_impl.cc:541
↓ 3 callersFunctionCountSpaces4
Counts number of spaces; a little faster than one-at-a-time Doesn't count odd bytes at end
cld2/internal/compact_lang_det_impl.cc:586
↓ 3 callersFunctionDivisor
Avoid zdiv
cld2/internal/cld2_do_score.cc:169
↓ 3 callersFunctionDumpExtLang
cld2/internal/compact_lang_det_test.cc:97
↓ 3 callersFunctionDumpLanguages
cld2/internal/compact_lang_det_test.cc:159
↓ 3 callersFunctionFmtLP
Debug output string of one formatted pslang,qprob pair
cld2/internal/debug.cc:87
↓ 3 callersFunctionGetBackColor
cld2/internal/debug.cc:171
↓ 3 callersFunctionGetCLDLangPriorCount
cld2/internal/compact_lang_det_hint_code.h:48
↓ 3 callersFunctionGetNormalizedScore
Return internal probability score (sum) per 1024 bytes
cld2/internal/compact_lang_det_impl.cc:1269
↓ 3 callersFunctionGetTextColor
cld2/internal/debug.cc:191
↓ 3 callersFunctionIsLatnLanguage
Return true if language can be in the Latin script
cld2/internal/lang_script.cc:344
↓ 3 callersFunctionIsOthrLanguage
Return true if language can be in a non-Latin script
cld2/internal/lang_script.cc:350
↓ 3 callersFunctionLScript4
Map script into Latin, Cyrillic, Arabic, Other
cld2/internal/lang_script.cc:552
↓ 3 callersFunctionMakeLangProb
Create a langprob packed value from its parts. qprob is quantized [0..12] We use Latn script to represent any RTypeMany language
cld2/internal/cldutil.cc:610
↓ 3 callersFunctionNeqLetter
These are for ASCII-only tag names Return true for space / < > etc. all less than 0x40
cld2/internal/getonescriptspan.cc:655
↓ 3 callersFunctionOctaHashV3Lookup4
Look up 40-bit gram FP in caller-passed table Typical size 256K-4M entries (1-16MB) 24-12 bit hashkey packed with 8-20 bit indirect lang/probs keymask
cld2/internal/cldutil_shared.h:431
↓ 3 callersFunctionOctaLen
src points to a letter. Find the byte length of an octagram starting there.
cld2/internal/cldutil_shared.cc:421
↓ 3 callersFunctionScanToPossibleLetter
src points to non-letter, such as tag-opening '<' Return length from here to next possible letter On another < before >, return 1 advances <tag> |
cld2/internal/getonescriptspan.cc:503
↓ 3 callersMethodSetKey
cld2/internal/tote.h:87
↓ 3 callersFunctionUTF8GenericScan
Scan a UTF-8 stringpiece based on state table. Always scan complete UTF-8 characters Set number of bytes scanned. Return reason for exiting
cld2/internal/utf8statetable.cc:488
↓ 3 callersFunctionloadDataFromFile
cld2/internal/compact_lang_det_impl.cc:108
↓ 2 callersFunctionAddCloseLangWhack
cld2/internal/compact_lang_det_impl.cc:1563
↓ 2 callersFunctionBackscanToSpace
Backscan to word boundary, returning how many bytes n to go back so that src - n is non-space ans src - n - 1 is space. If not found in kMaxSpaceScan
cld2/internal/compact_lang_det_impl.cc:491
↓ 2 callersFunctionBiHashV2
BIGRAM Pick up 1..8 bytes and hash them via mask/shift/add. NO pre/post OVERSHOOTS up to 3 bytes For runtime use of tables Does X86 unaligned loads
cld2/internal/cldutil_shared.cc:107
↓ 2 callersFunctionCLD2_Debug
For showing one chunk Print debug output for one scored chunk Optionally print out per-chunk scoring information In degenerate cases, hitbuffer and cs
cld2/internal/debug.cc:275
next →1–100 of 421, ranked by callers