k2py 0.2.2__cp310-cp310-win_amd64.whl → 0.2.4__cp310-cp310-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
k2py/__init__.py
CHANGED
|
@@ -35,7 +35,18 @@ class AlignedToken:
|
|
|
35
35
|
|
|
36
36
|
class OnlineDenseIntersecter(_OnlineDenseIntersecter):
|
|
37
37
|
"""Wrapper around C++ OnlineDenseIntersecter to produce Python-friendly results."""
|
|
38
|
-
|
|
38
|
+
|
|
39
|
+
def get_partial_labels(self) -> List[int]:
|
|
40
|
+
"""Get partial per-frame labels for streaming confidence calculation.
|
|
41
|
+
|
|
42
|
+
Returns per-frame token IDs from the current lattice state.
|
|
43
|
+
Used for computing emission-based confidence scores in streaming mode.
|
|
44
|
+
|
|
45
|
+
Returns:
|
|
46
|
+
List of token IDs, one per frame.
|
|
47
|
+
"""
|
|
48
|
+
return list(super().get_partial_labels())
|
|
49
|
+
|
|
39
50
|
def finish(self) -> Tuple[List[List["AlignedToken"]], List[List[int]]]:
|
|
40
51
|
"""Finish decoding and return results including AlignedToken objects.
|
|
41
52
|
|
k2py/_k2.cp310-win_amd64.pyd
CHANGED
|
Binary file
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
k2py/__init__.py,sha256=KR-D9Luea5f6G6-O9pHsQoJTPH7kn2zLwuFXSIDs-M8,4741
|
|
2
|
+
k2py/_k2.cp310-win_amd64.pyd,sha256=bMr0ak--WoZyOk7RB5CI5NCxeY-R7LZva038nD8OIzU,676352
|
|
3
|
+
k2py-0.2.4.dist-info/METADATA,sha256=YZxTxwdJp7Hawm0YeUP1tPYebyv0Lbc17TB2hjgO8OY,2306
|
|
4
|
+
k2py-0.2.4.dist-info/WHEEL,sha256=hrGeChGtn46HBGmzasO9QQDSLelRN-tUarBSv4gFcsI,106
|
|
5
|
+
k2py-0.2.4.dist-info/RECORD,,
|
k2py-0.2.2.dist-info/RECORD
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
k2py/__init__.py,sha256=uL7PzO4GaOn18UCSOGd9UYBtcUblvpAeRUhIs4Sa6Y8,4334
|
|
2
|
-
k2py/_k2.cp310-win_amd64.pyd,sha256=KAbKFa3A_UW8cew_3TITbOQlhC3AnVwyoHJv5Fay_PE,672768
|
|
3
|
-
k2py-0.2.2.dist-info/METADATA,sha256=r0vfmrD2qwHeM7uJeX3PBB4w-880yjV05NX4u8JXrzs,2306
|
|
4
|
-
k2py-0.2.2.dist-info/WHEEL,sha256=hrGeChGtn46HBGmzasO9QQDSLelRN-tUarBSv4gFcsI,106
|
|
5
|
-
k2py-0.2.2.dist-info/RECORD,,
|
|
File without changes
|