Skip to content

Commit

Permalink
自定义词典支持.tsv格式 fix: #1785
Browse files Browse the repository at this point in the history
  • Loading branch information
hankcs committed Sep 15, 2022
1 parent b216b24 commit b165273
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,10 @@ public static boolean load(String path, Nature defaultNature, TreeMap<String, Co
{
splitter = ",";
}
else if (path.endsWith(".tsv"))
{
splitter = "\t";
}
BufferedReader br = new BufferedReader(new InputStreamReader(IOUtil.newInputStream(path), "UTF-8"));
String line;
boolean firstLine = true;
Expand Down

0 comments on commit b165273

Please sign in to comment.