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

com.as.text_understanding.representation.pasta.Argument Maven / Gradle / Ivy

The newest version!
package com.as.text_understanding.representation.pasta;

import java.util.List;

import com.as.text_understanding.tree_travel.TreeTravelNode;

/**
 * Represents a subtree in a constituency-tree that represents an argument.
 *
 * Date: Feb 24, 2016
 * @author Asher Stern
 *
 */
public class Argument
{
	public Argument(ArgumentType type, boolean clause, TreeTravelNode subtree)
	{
		this(type,clause,null,subtree);
	}
	
	public Argument(ArgumentType type, boolean clause, List preposition, TreeTravelNode subtree)
	{
		super();
		this.type = type;
		this.clause = clause;
		this.preposition = preposition;
		this.subtree = subtree;
	}
	
	
	public ArgumentType getType()
	{
		return type;
	}
	public boolean isClause()
	{
		return clause;
	}
	public List getPreposition()
	{
		return preposition;
	}

	public TreeTravelNode getSubtree()
	{
		return subtree;
	}



	private final ArgumentType type;
	private final boolean clause;
	
	/**
	 * List of tree-nodes that hold prepositions that connect the argument to the predicate.
	 */
	private final List preposition;
	private final TreeTravelNode subtree;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy