2 * Portions Copyright 2001 Sun Microsystems, Inc.
3 * Portions Copyright 1999-2001 Language Technologies Institute,
4 * Carnegie Mellon University.
5 * All Rights Reserved. Use is subject to license terms.
7 * See the file "license.terms" for information on usage and
8 * redistribution of this file, and for a DISCLAIMER OF ALL
11 package com.sun.speech.freetts.cart;
13 import com.sun.speech.freetts.Item;
15 import java.io.DataOutputStream;
16 import java.io.IOException;
19 * Generic interface for Classification and Regression Trees (CARTs) based
20 * on the Breiman, Friedman, Olshen, and Stone document "Classification and
21 * Regression Trees." Wadsworth, Belmont, CA, 1984.
23 public interface CART {
25 * Passes the given item through this CART and returns the
28 * @param item the item to analyze
30 * @return the interpretation
32 public Object interpret(Item item);
35 * Dumps this CART to the output stream.
37 * @param os the output stream
39 * @throws IOException if an error occurs during output
41 public void dumpBinary(DataOutputStream os) throws IOException ;