com.as.text_understanding.representation.pasta.Argument Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of text-understanding Show documentation
Show all versions of text-understanding Show documentation
Analyzing natural-language text, in particular predicate-argument structure.
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;
}