Skip to content

Commit

Permalink
word2vec适配IOAdapter与集群 fix #903
Browse files Browse the repository at this point in the history
  • Loading branch information
hankcs committed Jul 31, 2018
1 parent 96a7c2e commit 4310ee2
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.hankcs.hanlp.mining.word2vec;

import com.hankcs.hanlp.corpus.io.IOUtil;

import java.io.*;
import java.nio.charset.Charset;
import static com.hankcs.hanlp.utility.Predefine.logger;
Expand Down Expand Up @@ -27,7 +29,7 @@ public void readVectorFile() throws IOException
BufferedReader br = null;
try
{
is = new FileInputStream(file);
is = IOUtil.newInputStream(file);
r = new InputStreamReader(is, ENCODING);
br = new BufferedReader(r);

Expand Down

0 comments on commit 4310ee2

Please sign in to comment.