You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This patch fixes two issues I experienced with a nominal attribute that uses
quoted strings as options. (It's the glass.arff file from weka's standard data
directory).
- Using shlex to parse the option strings preserves quoted strings
- Stripping names for both types of quotes (Is propably needed somewhere else,
too)
Original issue reported on code.google.com by moschlar@metalabs.de on 30 Jan 2012 at 11:08
Shlex is problematic because it doesn't work with unicode in python 2.7
>>>shlex.split(u'asdf bb')
['a\x00\x00\x00s\x00\x00\x00d\x00\x00\x00f\x00\x00\x00',
'\x00\x00\x00b\x00\x00\x00b\x00\x00\x00']
I'm fixing it using next(csv.reader(['line']))
Original comment by ubershmekel@gmail.com on 7 May 2012 at 8:45
Original issue reported on code.google.com by
moschlar@metalabs.de
on 30 Jan 2012 at 11:08Attachments:
The text was updated successfully, but these errors were encountered: