Closed iros closed 8 years ago
this is an issue for count
and will be a problem for POS tagger output.
I believe most CSV encodings have a slightly different solution for this, where double quotes are used explicitly.
hello,4
"my,land",5
Here is ruby's:
require 'csv'
v = ["test,a",3]
v.to_csv
=> "\"test,a\",3\n"
Here is python
import csv
v = ["test,a",3]
with open('some.csv', 'w', newline='') as f:
writer = csv.writer(f)
writer.writerow(v)
produces "test,a",3
- in some.csv
- so its the same.
I think we could just use the python csv.writer()
in the count
output and the POS output, and then use csv.reader
in some of the package functions.
i can work towards doing this for counts
Addressed in #24
Output like
Should be