org.cleartk.clearnlp.SemanticRoleOps Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cleartk-clearnlp Show documentation
Show all versions of cleartk-clearnlp Show documentation
Wrappers for the ClearNLP components that integrate with ClearTK's type system.
package org.cleartk.clearnlp;
import java.util.List;
import org.apache.uima.jcas.JCas;
import org.apache.uima.jcas.cas.TOP;
import org.apache.uima.jcas.tcas.Annotation;
import com.google.common.annotations.Beta;
/**
* Defines common set of SRL data type operations used to convert output from semantic role labelers into
* the target type system
*
* @author Lee Becker
*
*/
@Beta
public interface SemanticRoleOps<
ARGUMENT_TYPE extends TOP,
ARGUMENT_SPAN_TYPE extends Annotation,
PREDICATE_TYPE extends TOP,
PREDICATE_SPAN_TYPE extends Annotation> {
ARGUMENT_TYPE createArgument(JCas jCas, ARGUMENT_SPAN_TYPE span, String label);
PREDICATE_TYPE createPredicate(JCas jCas, PREDICATE_SPAN_TYPE span, String rolesetId);
void setPredicateArguments(JCas jCas, PREDICATE_TYPE predicate, List arguments);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy