de-mh / g2p_fa Goto Github PK
View Code? Open in Web Editor NEWA Grapheme to Phoneme model using LSTM implemented in pytorch
License: MIT License
A Grapheme to Phoneme model using LSTM implemented in pytorch
License: MIT License
I encountered an issue while using the g2p_fa library where I received the following error message:
IndexError: index 30 is out of bounds for dimension 0 with size 30
This error occurs in the tensor2IPA function in utils.py (line 54). Upon investigation, I found that the error arises when the last value of the tensor is not 'END', leading to an out-of-bounds index access.
I believe this issue might stem from two possible scenarios:
I suggest exploring solutions such as handling variable-sized inputs gracefully like sentences or adding a mechanism to detect the end of the predicted sequence more reliably, even in cases where the model prediction is incorrect.
Would it be possible to implement these changes to improve the library's robustness?
Thank you for your attention to this matter.
Best regards
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.