MCPcopy
hub / github.com/JaidedAI/EasyOCR / addBeam

Function addBeam

trainer/utils.py:69–72  ·  view source on GitHub ↗

add beam if it does not yet exist

(beamState, labeling)

Source from the content-addressed store, hash-verified

67 childBeam.lmApplied = True # only apply LM once per beam entry
68
69def addBeam(beamState, labeling):
70 "add beam if it does not yet exist"
71 if labeling not in beamState.entries:
72 beamState.entries[labeling] = BeamEntry()
73
74def ctcBeamSearch(mat, classes, ignore_idx, lm, beamWidth=25, dict_list = []):
75 "beam search as described by the paper of Hwang et al. and the paper of Graves et al."

Callers 1

ctcBeamSearchFunction · 0.70

Calls 1

BeamEntryClass · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…