org.knowceans.corpus.parsers.reuters
Class ReutersCategories
java.lang.Object
org.knowceans.corpus.parsers.reuters.ReutersCategories
- All Implemented Interfaces:
- ICategories
public class ReutersCategories
- extends java.lang.Object
- implements ICategories
ReutersCategories represent the reuters topics meta-information.
- Author:
- heinrich
Field Summary |
private static java.lang.String[] |
ids
|
private static java.lang.String[] |
topics
|
Method Summary |
java.lang.String |
decode(java.util.Vector<java.lang.Integer> a)
return a string description of the category ids in the argument. |
java.util.Vector<java.lang.Integer> |
subjects(java.lang.String sub)
get category ids (encoding) of the descriptors in the argument
(space-separated). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ids
private static final java.lang.String[] ids
topics
private static final java.lang.String[] topics
ReutersCategories
public ReutersCategories()
subjects
public java.util.Vector<java.lang.Integer> subjects(java.lang.String sub)
- Description copied from interface:
ICategories
- get category ids (encoding) of the descriptors in the argument
(space-separated).
- Specified by:
subjects
in interface ICategories
- Returns:
decode
public java.lang.String decode(java.util.Vector<java.lang.Integer> a)
- Description copied from interface:
ICategories
- return a string description of the category ids in the argument.
- Specified by:
decode
in interface ICategories
- Returns: