Closed hmylk closed 1 year ago
I think FsaClassPtr is a shared_ptr, it should not be any difference whether it is a local or global instance. How do you implement and use these interfaces? could you give us more details ?
Thank you for your reply !
The implemention codes are borrowed from torch_api.cc.
Before every utt's decoding , i called LoadFsaClass and Init_Steams , then AdvanceRnntStreams is called for every chunk, when wav data is end, call FormatOutput and GetBestPaths to output 1best result.
i can give you the interface code . But how?
@hmylk you can send the code (text file) here if you could make it publicly, or you can send to me via email wkang.pku@gmail.com
@pkufool thank you very much, i have send my code to you via gmail .
How do you fix it? What's the problem?
First , i encapsulate a c++ interface ,as following:
Then i use this interface to implement LG decoding, if the LoadFsaClass is in the class , and be called before very utt's decoding , the wer is better. if LoadFsaClass is a global interface (i think it is must be called for once for saving memory), the wer is worse.
so i want help for this problem ,thank you very much.