Skip to content

Commit e1020b0

Browse files
committed
修复word2vec文件流关闭问题 fix: #1806
1 parent 94b41c5 commit e1020b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/hankcs/hanlp/mining/word2vec/VectorsReader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public void readVectorFile() throws IOException
7171
matrix = Utility.shrink(matrix, new float[words][]);
7272
}
7373
}
74-
catch (IOException e)
74+
finally
7575
{
7676
Utility.closeQuietly(br);
7777
Utility.closeQuietly(r);

0 commit comments

Comments
 (0)