diff --git a/src/main/java/com/hankcs/hanlp/classification/corpus/Catalog.java b/src/main/java/com/hankcs/hanlp/classification/corpus/Catalog.java index 6a0115ca5..dcab05b71 100644 --- a/src/main/java/com/hankcs/hanlp/classification/corpus/Catalog.java +++ b/src/main/java/com/hankcs/hanlp/classification/corpus/Catalog.java @@ -69,6 +69,11 @@ public String getCategory(int id) return idCategory.get(id); } + public List getCategories() + { + return idCategory; + } + public int size() { return idCategory.size(); @@ -81,4 +86,10 @@ public String[] toArray() return catalog; } + + @Override + public String toString() + { + return idCategory.toString(); + } }