mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-09-08 00:24:19 +00:00
Fix building HLG
This commit is contained in:
parent
f357d3ff3d
commit
edc37b0829
@ -160,6 +160,11 @@ def build_HLG(
|
|||||||
return HLG
|
return HLG
|
||||||
|
|
||||||
|
|
||||||
|
def copy_fst(fst):
|
||||||
|
# Please don't use fst.copy()
|
||||||
|
return kaldifst.StdVectorFst(fst)
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
args = get_args()
|
args = get_args()
|
||||||
lang_dir = args.lang_dir
|
lang_dir = args.lang_dir
|
||||||
@ -185,8 +190,8 @@ def main():
|
|||||||
|
|
||||||
logging.info("Building HL")
|
logging.info("Building HL")
|
||||||
HL = build_HL(
|
HL = build_HL(
|
||||||
H=H.copy(),
|
H=copy_fst(H),
|
||||||
L=L.copy(),
|
L=copy_fst(L),
|
||||||
has_silence=args.has_silence,
|
has_silence=args.has_silence,
|
||||||
lexicon=lexicon,
|
lexicon=lexicon,
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user