src/main/java/weka/core/stemmers/PTStemmer.java
public void setOptions(String[] options) throws Exception {
    String	tmpStr;

    tmpStr = Utils.getOption('S', options);
    if (tmpStr.length() != 0)
      setStemmer(new SelectedTag(tmpStr, TAGS_STEMMERS));
    else
      setStemmer(new SelectedTag(STEMMER_ORENGO, TAGS_STEMMERS));

    tmpStr = Utils.getOption('N', options);
    if (tmpStr.length() != 0)
      setNamedEntities(new File(tmpStr));
    else
      setNamedEntities(new File("."));

    tmpStr = Utils.getOption('W', options);
    if (tmpStr.length() != 0)
      setStopwords(new File(tmpStr));
    else
      setStopwords(new File("."));

    tmpStr = Utils.getOption('C', options);
    if (tmpStr.length() != 0)
      setCache(Integer.parseInt(tmpStr));
    else
      setCache(1000);
  }
public void setOptions(String[] options) throws Exception {
    String	tmpStr;

    tmpStr = Utils.getOption('S', options);
    if (tmpStr.length() != 0)
      setStemmer(new SelectedTag(tmpStr, TAGS_STEMMERS));
    else
      setStemmer(new SelectedTag(STEMMER_ORENGO, TAGS_STEMMERS));

    tmpStr = Utils.getOption('N', options);
    if (tmpStr.length() != 0)
      setNamedEntities(new File(tmpStr));
    else
      setNamedEntities(new File("."));

    tmpStr = Utils.getOption('W', options);
    if (tmpStr.length() != 0)
      setStopwords(new File(tmpStr));
    else
      setStopwords(new File("."));

    tmpStr = Utils.getOption('C', options);
    if (tmpStr.length() != 0)
      setCache(Integer.parseInt(tmpStr));
    else
      setCache(1000);
  }
Parses the options. <p/>

<!-- options-start -->
Valid options are: <p/>

<pre> -S &lt;ORENGO|PORTER|SAVOY&gt;
The type of stemmer algorithm to use:
ORENGO = Orengo
PORTER = Porter
SAVOY = Savoy
(default: ORENGO)</pre>

<pre> -N &lt;file&gt;
The file with the named entities to ignore (optional).
File format: simple text file with one entity per line.
(default: none)
</pre>

<pre> -W &lt;file&gt;
The file with the stopwords (optional).
File format: simple text file with one stopword per line.
(default: none)
</pre>

<pre> -C &lt;int&gt;
The size of the cache. Disable with 0.
(default: 1000)
</pre>

<!-- options-end -->

@param options	the options to parse
@throws Exception 	if parsing fails