@@ -0,0 +1,393 @@
+import sys%0Aimport random%0A%0Adef gen_one_record(num_feas):%0A    feas = %5B%5D%0A    target = random.random()%0A    for i in xrange(random.randint(6, num_feas)):%0A        id = random.randint(0, 300)%0A        feas.append(%22%25d%22 %25 id)%0A    return %22 %22.join(feas)%0A    %0A%0Adef gen_data(num):%0A    for i in xrange(num):%0A        line = gen_one_record(15)%0A        print line%0A%0Aif __name__ == '__main__':%0A    gen_data(1000)%0A

add gen-word2vec-data.py