package org.xm.word2vec.vec;

import org.junit.Test;

import java.io.File;

/**
 * @author xuming
 */
public class LearnTest {
    @Test
    public void learnFile() throws Exception {
        Learn learn = new Learn();
        long start = System.currentTimeMillis();
        learn.learnFile(new File("data/seg_result.txt"));
        System.out.println("use time " + (System.currentTimeMillis() - start));
        learn.saveModel(new File("data/seg_result_model"));
    }

}
@@ -23,16 +23,41 @@
 c.vec;%0A%0A
+import org.junit.Assert;%0A
 import o
@@ -480,20 +480,62 @@
 t_model%22));%0A
+        Assert.assertTrue(learn != null);%0A
     %7D%0A%0A%7D

update word2vec learn test。xuming 20161123