-
Notifications
You must be signed in to change notification settings - Fork 910
Parse Text/Speech Data from TSV #8138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parse Text/Speech Data from TSV #8138
Conversation
Source/textdat.cpp
Outdated
while ((pos = speech.txtstr.find("\\n", pos)) != std::string::npos) { | ||
speech.txtstr.replace(pos, 2, "\n"); | ||
pos += 1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This loop is quadratic, can you please make it linear? This can be easily done by appending to a separate string rather than doing it in-place.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for keeping this! ❤️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file is a much better way to keep it as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I thought it was important to preserve information :) and I saw that effects-unused.tsv existed, so I followed the existing pattern
This PR moves text/speech data to a TSV file.