Open noskill opened 4 years ago
also, the comment is misleading, the negative number doesn't mean reading all lines
I would suggest introducing yet another user option to set maxline
, as well as supporting negative numbers.
I don't mind if the default is negative (reading all lines) but I do recall that systematically reading all lines was incurring too much setup overhead, which is why I suggest adding a user option.
I guess valid fix would be reading all the data or providing data types in separate csv file. @ngeiswei what do you think?
https://github.com/singnet/asmoses/blob/2d7fe0c65a3d00138e864ef8ee848e266eb6b7b2/opencog/data/table/table_io.cc#L916-L918