/** * Returns a new, emtpy learner into which all of the parameters that control the behavior of * the algorithm have been copied. Here, "emtpy" means no learning has taken place. **/ public Learner emptyClone() { return new MikheevLearner(); }
/** * Writes the algorithm's internal representation as text. * * @param out The output stream. **/ public void write(PrintStream out) { out.println("# if capitalized and first word in sentence:"); write(out, firstCapitalized); out.println("\n# if capitalized and not first word in sentence:"); write(out, notFirstCapitalized); out.println("\n# main table:"); write(out, table); }
Set<String> result = allowableTags(word.form); if (result.size() > 0) return result;
Set<String> result = allowableTags(word.form); if (result.size() > 0) return result;
/** * Returns a new, emtpy learner into which all of the parameters that control the behavior of * the algorithm have been copied. Here, "emtpy" means no learning has taken place. **/ public Learner emptyClone() { return new MikheevLearner(); }
/** * Writes the algorithm's internal representation as text. * * @param out The output stream. **/ public void write(PrintStream out) { out.println("# if capitalized and first word in sentence:"); write(out, firstCapitalized); out.println("\n# if capitalized and not first word in sentence:"); write(out, notFirstCapitalized); out.println("\n# main table:"); write(out, table); }