]> gitweb.factorcode.org Git - factor.git/blobdiff - extra/machine-learning/data-sets/data-sets.factor
factor: words -> split-words, lines -> split-lines, fix errors
[factor.git] / extra / machine-learning / data-sets / data-sets.factor
index 0770d1a0b10ff01e30d137218b6659582c01aec5..87b8f9ed248b9ff7f036f8d41a3f866922c5f954 100644 (file)
@@ -23,7 +23,7 @@ C: <data-set> data-set
     utf8 file-contents ;
 
 : load-tabular-file ( name -- lines )
-    load-file [ blank? ] trim lines
+    load-file [ blank? ] trim split-lines
     [ [ blank? ] split-when harvest ] map harvest ;
 
 : numerify ( table -- data names )