laito / cleartk

Automatically exported from code.google.com/p/cleartk
0 stars 0 forks source link

tksvmlight module does not write newlines #345

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
For any classification task, using the tksvmlight wrappers using flag "-t 0" 
and then the same using svmlight will result in different outputs. (Found by 
following in debugger).  A more easy way to replicate this output is to look at 
a tkclassify* file created in the temp directory.  Run tk_svm_classify on this 
file, then edit the file to add a newline to the end of the vector.  Doing this 
results in different classification results (as seen in whatever output file 
you specify to tk_svm_classify)

What is the expected output?
Temp vectors output by the data writer should have a newline.

What do you see instead?
Temp vectors output by the data writer do not have a newline (vi for instance 
reports the file has incomplete line.  If you cat the file your command prompt 
will not start at the beginning of the line. etc.)

What version of the product are you using? On what operating system?
cleartk-ml-tksvmlight version 0.4.0
Ubuntu linux 12.04 64-bit

Original issue reported on code.google.com by tim.mil...@gmail.com on 13 Dec 2012 at 10:45

Attachments:

GoogleCodeExporter commented 9 years ago
This issue was closed by revision ad8f6abd6482.

Original comment by lee.becker on 15 Jan 2013 at 12:01