-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: sgml parsing edge case when word list delimiter in transcript
- SCTK unfortunately doesn't escape the quote the entire field in the sgml file, and causes encoding/csv to split at the wrong place for a string like `S,"hello:","hello":C,"how","how"` with delimiter = `:`. - This commit applies a fix where we change the delimiter to an unlikely string using a carefully constructed regex, and them split on the new unlikely string.
- Loading branch information
Showing
2 changed files
with
67 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters