vectorization - Vectorizing text file in java for kmeans clustering java encog -


i using java encog machine learning library running kmeans clustering. problem is possible on numeric data. there way vectorize text file(data) can directly feed kmeans clustering algorithm.

i new space. appreciated.

try using object out put stream follow

bytearrayoutputstream baos = new bytearrayoutputstream(); objectoutputstream oos = new objectoutputstream(baos); oos.writeobject("your_text"); oos.close(); 

Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - How can I echo out this array? -

javascript - IE11 incompatibility with jQuery's 'readonly'? -