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

Class BeamEntry

trainer/utils.py:12–20  ·  view source on GitHub ↗

information about one single beam at specific time-step

Source from the content-addressed store, hash-verified

10
11##### https://github.com/githubharald/CTCDecoder/blob/master/src/BeamSearch.py
12class BeamEntry:
13 "information about one single beam at specific time-step"
14 def __init__(self):
15 self.prTotal = 0 # blank and non-blank
16 self.prNonBlank = 0 # non-blank
17 self.prBlank = 0 # blank
18 self.prText = 1 # LM score
19 self.lmApplied = False # flag if LM was already applied to this beam
20 self.labeling = () # beam-labeling
21
22class BeamState:
23 "information about the beams at specific time-step"

Callers 2

addBeamFunction · 0.70
ctcBeamSearchFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…