MCPcopy Create free account

hub / github.com/CLD2Owners/cld2 / functions

Functions389 in github.com/CLD2Owners/cld2

↓ 1 callersFunctionGetTextBeginPos
Return position of start of text
internal/scoreutf8text.cc:138
↓ 1 callersFunctionGetUniAt
Debug output string of one unigram
internal/debug.cc:32
↓ 1 callersFunctionGetUniHits
Score up to 64KB of a single script span in one pass Make a dummy entry off the end to calc length of last span Return offset of first unused input by
internal/cldutil.cc:201
↓ 1 callersFunctionInitCLDLangPriors
internal/compact_lang_det_hint_code.h:52
↓ 1 callersFunctionInitHtmlOut
internal/cld2_unittest_full.cc:351
↓ 1 callersFunctionInitHtmlOut
internal/cld2_unittest.cc:265
↓ 1 callersFunctionInitResult
internal/scoreutf8text.cc:236
↓ 1 callersFunctionIsComment
internal/cld2_do_score.cc:85
↓ 1 callersFunctionIsComment
internal/scoreutf8text.cc:80
↓ 1 callersFunctionIsComment
internal/compact_lang_det_test.cc:87
↓ 1 callersFunctionJustOneItemToVector
Add just one element to resultchunk vector: For RTypeNone or RTypeOne
internal/scoreonescriptspan.cc:513
↓ 1 callersFunctionLangDetLinesOfFile
internal/scoreutf8text.cc:393
↓ 1 callersFunctionLanguageDeclaredName
internal/lang_script.cc:219
↓ 1 callersFunctionLinearizeAll
Effectively, do a merge-sort based on text offsets Look up each indirect value in appropriate scoring table and keep just the resulting langprobs
internal/scoreonescriptspan.cc:856
↓ 1 callersFunctionLinearizeHitBuffer
Merge-sort the individual hit arrays, go indirect on the scoring subscripts, break linear array into chunks. Input: hitbuffer base, delta, distinct a
internal/scoreonescriptspan.cc:1043
↓ 1 callersFunctionLookupEntity
Useful for converting an entity to an ascii value. RETURNS unicode value, or -1 if entity isn't valid. Don't include & or ;
internal/getonescriptspan.cc:292
↓ 1 callersFunctionMaxInt
internal/compact_lang_det_hint_code.cc:936
↓ 1 callersFunctionMoveLang1ToLang2
Move all the text bytes from lower byte-count to higher one
internal/compact_lang_det_impl.cc:1105
↓ 1 callersFunctionNextChunkLang
internal/scoreonescriptspan.cc:367
↓ 1 callersFunctionOctaFPJustHash
From 40-bit gram FP, return hash table subscript and remaining key
internal/cldutil_shared.h:389
↓ 1 callersFunctionOctaHash40
OCTAGRAM wrapper with surrounding spaces Pick up 1..24 bytes plus pre/post space and hash them via mask/shift/add UNDERSHOOTS 1 byte, OVERSHOOTS up to
internal/cldutil_shared.cc:348
↓ 1 callersFunctionOneTest
internal/cld2_unittest_full.cc:287
↓ 1 callersFunctionPairHash
Hash a consecutive pair of tokens/words A B Old: hash is B - A, which gives too many false hits on one-char diffs Now: rotate(A,13) + B
internal/cldutil_shared.cc:384
↓ 1 callersFunctionPrintLangs
internal/compact_lang_det_impl.cc:1247
↓ 1 callersFunctionPriorVecLang
internal/scoreonescriptspan.cc:362
↓ 1 callersFunctionQuadFPJustHash
From 32-bit gram FP, return hash table subscript and remaining key
internal/cldutil_shared.h:380
↓ 1 callersFunctionQuadLen
src points to a letter. Find the byte length of a quadgram starting there.
internal/cldutil_shared.cc:411
↓ 1 callersFunctionReadEntity
Unescape the current character pointed to by src. SETS the number of chars read for the conversion (in UTF8). If src isn't a valid entity, just cons
internal/getonescriptspan.cc:393
↓ 1 callersFunctionReadLine
internal/cld2_do_score.cc:72
↓ 1 callersFunctionReadLine
internal/scoreutf8text.cc:67
↓ 1 callersFunctionReadline
internal/compact_lang_det_test.cc:74
↓ 1 callersFunctionRecordCLDResult
internal/scoreutf8text.cc:250
↓ 1 callersFunctionRefineScoredClosePairs
Move less likely byte count to more likely for close pairs of languages If given, also update resultchunkvector
internal/compact_lang_det_impl.cc:1154
↓ 1 callersMethodReinit
internal/tote.cc:40
↓ 1 callersFunctionReliabilityDelta
Return reliablity of result 0..100 for top two scores delta==0 is 0% reliable, delta==fully_reliable_thresh is 100% reliable (on a scale where +1 is a
internal/cldutil.cc:553
↓ 1 callersFunctionReliabilityExpected
internal/cldutil.cc:587
↓ 1 callersFunctionRemoveExtendedLanguages
Delete any extended languages from doc_tote
internal/compact_lang_det_impl.cc:977
↓ 1 callersFunctionRemoveUnreliableLanguages
Move bytes for unreliable langs to another lang or UNKNOWN doc_tote is sorted, so cannot Add If both CHINESE and CHINESET are present and unreliable,
internal/compact_lang_det_impl.cc:997
↓ 1 callersFunctionRunTests
internal/cld2_unittest_full.cc:373
↓ 1 callersFunctionScoreAllHits
Score chunks of text described by hitbuffer, allowing each to be in a different language, and optionally adjusting the boundaries inbetween. Set last_
internal/scoreonescriptspan.cc:265
↓ 1 callersFunctionScoreBoosts
For each chunk, add extra weight for language priors (from content-lang and meta lang=xx) and distinctive tokens
internal/scoreonescriptspan.cc:125
↓ 1 callersFunctionScoreCJKScriptSpan
Score RTypeCJK scriptspan into doc_tote and vec, updating scoringcontext
internal/scoreonescriptspan.cc:1163
↓ 1 callersFunctionScoreEntireScriptSpan
Score RTypeNone or RTypeOne scriptspan into doc_tote and vec, updating scoringcontext
internal/scoreonescriptspan.cc:1132
↓ 1 callersFunctionScoreOneChunk
Score all the bases, deltas, distincts, boosts for one chunk into chunk_tote After last chunk there is always a hitbuffer entry with an offset just of
internal/scoreonescriptspan.cc:208
↓ 1 callersFunctionScoreOneLine
Return score per 1024 bytes for top language
internal/cld2_do_score.cc:34
↓ 1 callersFunctionScoreOneScriptSpan
Score one scriptspan into doc_tote and vec, updating scoringcontext Inputs: One scriptspan of perhaps 40-60KB, all same script lower-case letters and
internal/scoreonescriptspan.cc:1302
↓ 1 callersFunctionScoreQuadScriptSpan
Score RTypeMany scriptspan into doc_tote and vec, updating scoringcontext We have a scriptspan with all lowercase text in one script. Look up quadgram
internal/scoreonescriptspan.cc:1231
↓ 1 callersFunctionSetCLDContentLangHint
Add hints to vector of langpriors Input is string after HTTP header Content-Language:
internal/compact_lang_det_hint_code.cc:1439
↓ 1 callersFunctionSetCLDEncodingHint
Add hints to vector of langpriors Input is from DetectEncoding()
internal/compact_lang_det_hint_code.cc:1466
↓ 1 callersFunctionSetCLDLanguageHint
Add hints to vector of langpriors Input is from random source
internal/compact_lang_det_hint_code.cc:1503
↓ 1 callersFunctionSetCLDTLDHint
Add hints to vector of langpriors Input is last element of hostname (no dot), e.g. from GetTLD()
internal/compact_lang_det_hint_code.cc:1446
↓ 1 callersFunctionSetChunkSummary
Needs expected score per 1KB in scoring context
internal/scoreonescriptspan.cc:60
↓ 1 callersMethodSetValue
internal/tote.h:88
↓ 1 callersFunctionSharpenBoundaries
For all but the first summary, if its top language differs from the previous chunk, refine the boundary Linearized version
internal/scoreonescriptspan.cc:780
↓ 1 callersFunctionSkipMe
internal/scoreutf8text.cc:379
↓ 1 callersFunctionSummaryBufferToDocTote
internal/scoreonescriptspan.cc:305
↓ 1 callersFunctionSummaryBufferToVector
Add n elements of summarybuffer to resultchunk vector: Each element is letters-only text [offset..offset+bytes) This maps back to original[Back(offset
internal/scoreonescriptspan.cc:389
↓ 1 callersFunctionTrim
Remove any trailing digits/spaces (possible mapreduce counts) Return length
internal/scoreutf8text.cc:386
↓ 1 callersFunctionTrimCLDLangPriors
Trim language priors to no more than max_entries, keeping largest abs weights
internal/compact_lang_det_hint_code.cc:975
↓ 1 callersFunctionUNALIGNED_STORE32
internal/port.h:128
↓ 1 callersFunctionUTF8GenericPropertyBigOneByte
BigOneByte versions are needed for tables > 240 states, but most won't need the TwoByte versions. Internally, to next-to-last offset is multiplied by
internal/utf8statetable.cc:271
↓ 1 callersFunctionUTF8GenericPropertyTwoByte
TwoByte versions are needed for tables > 240 states Look up property of one UTF-8 character and advance over it Return 0 if input length is zero Retur
internal/utf8statetable.cc:362
↓ 1 callersFunctionUTF8GenericReplace
Scan a UTF-8 stringpiece based on state table, copying to output stringpiece and doing text replacements. Also writes an optional OffsetMap. Pass NULL
internal/utf8statetable.cc:1138
↓ 1 callersFunctionUTF8GenericReplaceInternal
Scan a UTF-8 stringpiece based on state table, copying to output stringpiece and doing text replacements. DO NOT CALL DIRECTLY. Use UTF8GenericReplace
internal/utf8statetable.cc:608
↓ 1 callersFunctionUTF8GenericReplaceInternalTwoByte
Scan a UTF-8 stringpiece based on state table with two-byte entries, copying to output stringpiece and doing text replacements. DO NOT CALL DIRECTLY.
internal/utf8statetable.cc:877
↓ 1 callersFunctionUniLen
src points to a letter. Find the byte length of a unigram starting there.
internal/cldutil_shared.cc:396
↓ 1 callersFunctionZeroPSLang
internal/scoreonescriptspan.cc:39
↓ 1 callersFunctionadvance
internal/cld2_dynamic_data_extractor.cc:29
↓ 1 callersFunctionalignAll
Assuming that all fields have been set in the specified header, re-align the starting positions of all data chunks to be aligned along 64-bit boundari
internal/cld2_dynamic_data_extractor.cc:199
↓ 1 callersFunctionascii_isalnum
internal/getonescriptspan.cc:312
↓ 1 callersFunctioncoreAssumptionsOk
internal/cld2_dynamic_data.cc:206
↓ 1 callersFunctiondumpHeader
internal/cld2_dynamic_data.cc:51
↓ 1 callersFunctionhex_digit_to_int
internal/getonescriptspan.cc:318
↓ 1 callersFunctioninitDeltaHeaders
internal/cld2_dynamic_data_extractor.cc:333
↓ 1 callersFunctioninitTableHeaders
internal/cld2_dynamic_data_extractor.cc:162
↓ 1 callersFunctioninitUtf8Headers
internal/cld2_dynamic_data_extractor.cc:338
↓ 1 callersFunctionisLittleEndian
As noted on http://stackoverflow.com/questions/1001307, gcc is highly likely to convert this function's return into a constant - meaning that any if-b
internal/cld2_dynamic_data.cc:198
↓ 1 callersFunctionloadDataRaw
internal/cld2_dynamic_data_loader.cc:190
↓ 1 callersFunctionloadHeaderFromRaw
internal/cld2_dynamic_data_loader.cc:41
↓ 1 callersFunctionmem_compare
internal/cld2_dynamic_data.cc:26
↓ 1 callersMethodremove_suffix
internal/stringpiece.h:62
↓ 1 callersFunctionrunetochar
runetochar copies (encodes) one rune, pointed to by r, to at most UTFmax bytes starting at s and returns the number of bytes generated.
internal/getonescriptspan.cc:249
↓ 1 callersFunctionstrto32_base10
internal/getonescriptspan.cc:325
↓ 1 callersFunctionstrto32_base16
internal/getonescriptspan.cc:357
↓ 1 callersFunctionverify
internal/cld2_dynamic_data.cc:113
↓ 1 callersFunctionwriteDataFile
internal/cld2_dynamic_data_extractor.cc:46
MethodAddBytes
internal/tote.h:43
MethodAddClosePair
internal/tote.h:74
FunctionAddDistinctBoost1
Update scoring context distinct_boost for single language quad
internal/scoreonescriptspan.cc:105
FunctionApplyAllLanguageHints
internal/compact_lang_det_impl.cc:1206
FunctionApproxProb3
Converts a unigram prob/lang byte into an approximate prob/lang triple Just keeps the largest value. Now unused.
internal/cldutil_offline.cc:177
MethodBackup
Back up over previous range, 1..5 bytes Return subscript at the beginning of that. Pins at 0
internal/offsetmap.cc:304
FunctionCLD2_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
internal/debug_empty.cc:44
FunctionCLD2_Debug2
For showing all chunks
internal/debug_empty.cc:54
FunctionCLD2_Debug2
For showing all chunks
internal/debug.cc:411
MethodComposeOffsetMap
static
internal/offsetmap.cc:509
MethodCopyDeletes
static
internal/offsetmap.cc:496
MethodCopyInserts
static
internal/offsetmap.cc:482
MethodCurrentTopKey
Return current top key
internal/tote.cc:205
FunctionDemoteNotTop40
internal/compact_lang_det_impl.cc:467
← previousnext →201–300 of 389, ranked by callers