Skip to content
Snippets Groups Projects
Commit 5632c4b4 authored by Martin Kocour's avatar Martin Kocour
Browse files

Merge branch '44-wrong-emission-ids' into 'main'

Updating speechrecfsts.jl

Closes #44

See merge request !55
parents 0b547375 ff0224c8
Branches 27-read-iarpa-format-lm-2
No related tags found
1 merge request!55Updating speechrecfsts.jl
......@@ -28,14 +28,27 @@ S = BoolSemiring
U2 = TensorFST(
[
(src = (5,), isym = 5, osym = 4, weight = one(S), dest = (6,)),
(src = (2,), isym = 2, osym = 1, weight = one(S), dest = (2,)),
(src = (3,), isym = 3, osym = 3, weight = one(S), dest = (4,)),
(src = (4,), isym = 4, osym = 1, weight = one(S), dest = (4,)),
(src = (1,), isym = 1, osym = 2, weight = one(S), dest = (2,)),
(src = (6,), isym = 6, osym = 1, weight = one(S), dest = (6,))
# # Extra node
# Source
(src = (7,), isym = 0, osym = 4, weight = one(S), dest = (5,)),
(src = (7,), isym = 0, osym = 3, weight = one(S), dest = (3, )),
(src = (7,), isym = 0, osym = 2, weight = one(S), dest = (1,)),
# Destination
(src = (6,), isym = 0, osym = 0, weight = one(S), dest = (7,)),
(src = (4,), isym = 0, osym = 0, weight = one(S), dest = (7, )),
(src = (2,), isym = 0, osym = 0, weight = one(S), dest = (7,)),
# Nodes tensorFST
(src = (5,), isym = 6, osym = 0, weight = one(S), dest = (6,)),
(src = (2,), isym = 2, osym = 0, weight = one(S), dest = (2,)),
(src = (3,), isym = 4, osym = 0, weight = one(S), dest = (4,)),
(src = (4,), isym = 4, osym = 0, weight = one(S), dest = (4,)),
(src = (1,), isym = 2, osym = 0, weight = one(S), dest = (2,)),
(src = (6,), isym = 6, osym = 0, weight = one(S), dest = (6,)),
],
[(5,) => one(S), (3,) => one(S), (1,) => one(S)],
[(7,) => one(S)],
[(4,) => one(S), (6,) => one(S), (2,) => one(S)],
)
@test issame(U, U2)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment