All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edu.berkeley.nlp.syntax.StateSetWithFeatures Maven / Gradle / Ivy

Go to download

The Berkeley parser analyzes the grammatical structure of natural language using probabilistic context-free grammars (PCFGs).

The newest version!
/**
 * 
 */
package edu.berkeley.nlp.syntax;

import java.util.ArrayList;
import java.util.List;

/**
 * @author petrov
 *
 */
public class StateSetWithFeatures extends StateSet {

	public List features;
	public StateSetWithFeatures(short state, short nSubStates) {
		super(state, nSubStates);
		// TODO Auto-generated constructor stub
	}
	/**
	 * @param stateSet
	 */
	public StateSetWithFeatures(StateSet stateSet) {
		super(stateSet.state, stateSet.numSubStates);
		this.from = stateSet.from;
		this.to = stateSet.to;
		this.word = stateSet.word;
		this.wordIndex = stateSet.wordIndex;
		this.features = new ArrayList();
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy