Skip to content
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

CSV escape character is "\", rather than " #1181

Closed
acet opened this issue Aug 15, 2023 · 0 comments · Fixed by #2090
Closed

CSV escape character is "\", rather than " #1181

acet opened this issue Aug 15, 2023 · 0 comments · Fixed by #2090

Comments

@acet
Copy link

acet commented Aug 15, 2023

When outputting csv at
https://github.com/ggerganov/whisper.cpp/blob/master/examples/main/main.cpp#L475

escape_double_quotes_and_backslashes will escape a double quote with a backslash.

however, many reader libraries will use the default " as an escape character. This causes extra configuration when trying to read the csv output.
In python something like
csv.reader(file, escapechar="\\")
is needed

An example of CSV escaping:
https://hawq.apache.org/docs/userguide/2.3.0.0-incubating/datamgmt/load/g-escaping-in-csv-formatted-files.html

Can the escape character for csv be defaulted to the standard escape char?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant