Skip to content

Commit de656bf

Browse files
authored
Merge pull request hankcs#1428 from tiandiweizun/patch-1
support getting all tags
2 parents 33f2973 + 90b0c15 commit de656bf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/com/hankcs/hanlp/model/crf/CRFModel.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,4 +444,8 @@ public Integer getTagId(String tag)
444444
{
445445
return tag2id.get(tag);
446446
}
447+
448+
public Map<String, Integer> getTag2id() {
449+
return tag2id;
450+
}
447451
}

0 commit comments

Comments
 (0)