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

edu.berkeley.nlp.syntax.NamedTree 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.List;

public class NamedTree extends Tree


{
	/**
	 * 
	 */
	private static final long serialVersionUID = 8841212195373673057L;
	private final String name;

	/**
	 * @param label
	 * @param children
	 */
	public NamedTree(L label, List> children, String name)
	{
		
		super(label, children);
		this.name = name;
		// TODO Auto-generated constructor stub
	}

	/**
	 * @param label
	 */
	public NamedTree(L label, String name)
	{
		
		super(label);
		this.name = name;
		// TODO Auto-generated constructor stub
	}

	public String getName()
	{
		return name;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy