MCPcopy Create free account
hub / github.com/BYVoid/OpenCC / PrefixEntropy

Method PrefixEntropy

src/PhraseExtract.cpp:395–397  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

393}
394
395double PhraseExtract::PrefixEntropy(const UTF8StringSlice8Bit& word) const {
396 return Signal(word).prefixEntropy;
397}
398
399size_t PhraseExtract::Frequency(const UTF8StringSlice8Bit& word) const {
400 const size_t frequency = Signal(word).frequency;

Callers 1

TEST_FFunction · 0.80

Calls

no outgoing calls

Tested by 1

TEST_FFunction · 0.64