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 - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -