public Enumeration listOptions ( ) { Vector < Option > result ; String desc ; SelectedTag tag ; int i ; result = new Vector < Option > ( ) ; desc = "" ; for ( i = 0 ; i < TAGS_STEMMERS . length ; i ++ ) { tag = new SelectedTag ( TAGS_STEMMERS [ i ] . getID ( ) , TAGS_STEMMERS ) ; desc += "\t" + tag . getSelectedTag ( ) . getIDStr ( ) + " = " + tag . getSelectedTag ( ) . getReadable ( ) + "\n" ; } result . addElement ( new Option ( "\tThe type of stemmer algorithm to use:\n" + desc + "\t(default: " + new SelectedTag ( STEMMER_ORENGO , TAGS_STEMMERS ) + ")" , "S" , 1 , "-S " + Tag . toOptionList ( TAGS_STEMMERS ) ) ) ; result . addElement ( new Option ( "\tThe file with the named entities to ignore (optional).\n" + "\tFile format: simple text file with one entity per line.\n" + "\t(default: none)\n" , "N" , 1 , "-N <file>" ) ) ; result . addElement ( new Option ( "\tThe file with the stopwords (optional).\n" + "\tFile format: simple text file with one stopword per line.\n" + "\t(default: none)\n" , "W" , 1 , "-W <file>" ) ) ; result . addElement ( new Option ( "\tThe size of the cache. Disable with 0.\n" + "\t(default: 1000)\n" , "C" , 1 , "-C <int>" ) ) ; return result . elements ( ) ; }
Returns an enumeration describing the available options .