Skip to content
Snippets Groups Projects
Commit d727d9cc authored by Simon Devauchelle's avatar Simon Devauchelle
Browse files

Updating speechrecfsts.jl

parent f449fd2b
No related branches found
No related tags found
2 merge requests!56Resolve "Wrong emission IDs",!55Updating speechrecfsts.jl
This commit is part of merge request !55. Comments created here will be created in the context of that merge request.
......@@ -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