Encima | 13 Aug 2012 18:32
Picon
Gravatar

Yet Another Premature End of Line Question

Hello All,


I have scoured your archives today but I have written a python script that turns the contents of a csv into an arff file but I am getting that ridiculous 'readToken[EOL]' for a premature end of line.

I am only dealing with one nominal field and all others are numbers. I have pasted the first entry of the file, as well as the headers here but the whole file can be found here: http://pastebin.com/4nM34d1R.

I have removed all chars that would seem to cause an EOL and I still cannot see an issue. Any help is greatly appreciated.

Thanks,
Chris


_______________________________________________
Wekalist mailing list
Send posts to: Wekalist <at> list.scms.waikato.ac.nz
List info and subscription status: https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html
Bernhard Pfahringer | 14 Aug 2012 10:59
Picon

Re: Yet Another Premature End of Line Question

Hi,

that one is easy: you define 28 attributes, but your examples only
have 27 values/fields,
i.e. they are one field short.
If that should be an unknown target value, use "?" to indicate this.

hth, Bernhard

On Tue, Aug 14, 2012 at 4:32 AM, Encima <encima <at> gmail.com> wrote:
> Hello All,
>
> I have scoured your archives today but I have written a python script that
> turns the contents of a csv into an arff file but I am getting that
> ridiculous 'readToken[EOL]' for a premature end of line.
>
> I am only dealing with one nominal field and all others are numbers. I have
> pasted the first entry of the file, as well as the headers here but the
> whole file can be found here: http://pastebin.com/4nM34d1R.
>
> I have removed all chars that would seem to cause an EOL and I still cannot
> see an issue. Any help is greatly appreciated.
>
> Thanks,
> Chris
>
>
>
> _______________________________________________
> Wekalist mailing list
> Send posts to: Wekalist <at> list.scms.waikato.ac.nz
> List info and subscription status:
> https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist
> List etiquette:
> http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html
>

--

-- 
---------------------------------------------------------------------
Bernhard Pfahringer, Dept. of Computer Science, University of Waikato
http://www.cs.waikato.ac.nz/~bernhard                  +64 7 838 4041

_______________________________________________
Wekalist mailing list
Send posts to: Wekalist <at> list.scms.waikato.ac.nz
List info and subscription status: https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html

Encima | 14 Aug 2012 11:02
Picon
Gravatar

Re: Yet Another Premature End of Line Question

Thanks, a foolish mistake to make. Seems my script ignored the empty attribute when creating the file from the csv and instead added nothing. I am slapping myself for not seeing it.


Thank you.

On 14 August 2012 09:59, Bernhard Pfahringer <bernhard.pfahringer <at> gmail.com> wrote:
Hi,

that one is easy: you define 28 attributes, but your examples only
have 27 values/fields,
i.e. they are one field short.
If that should be an unknown target value, use "?" to indicate this.

hth, Bernhard

On Tue, Aug 14, 2012 at 4:32 AM, Encima <encima <at> gmail.com> wrote:
> Hello All,
>
> I have scoured your archives today but I have written a python script that
> turns the contents of a csv into an arff file but I am getting that
> ridiculous 'readToken[EOL]' for a premature end of line.
>
> I am only dealing with one nominal field and all others are numbers. I have
> pasted the first entry of the file, as well as the headers here but the
> whole file can be found here: http://pastebin.com/4nM34d1R.
>
> I have removed all chars that would seem to cause an EOL and I still cannot
> see an issue. Any help is greatly appreciated.
>
> Thanks,
> Chris
>
>
>
> _______________________________________________
> Wekalist mailing list
> Send posts to: Wekalist <at> list.scms.waikato.ac.nz
> List info and subscription status:
> https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist
> List etiquette:
> http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html
>



--
---------------------------------------------------------------------
Bernhard Pfahringer, Dept. of Computer Science, University of Waikato
http://www.cs.waikato.ac.nz/~bernhard                  +64 7 838 4041

_______________________________________________
Wekalist mailing list
Send posts to: Wekalist <at> list.scms.waikato.ac.nz
List info and subscription status: https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html

_______________________________________________
Wekalist mailing list
Send posts to: Wekalist <at> list.scms.waikato.ac.nz
List info and subscription status: https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html

Gmane