<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN” “www.w3.org/TR/html4/loose.dtd”> <!–NewPage–> <HTML> <HEAD> <!– Generated by javadoc (build 1.6.0_65) on Tue Feb 18 19:45:41 CST 2014 –> <META http-equiv=“Content-Type” content=“text/html; charset=UTF-8”> <TITLE> Annotator </TITLE>

<META NAME=“date” CONTENT=“2014-02-18”>

<LINK REL =“stylesheet” TYPE=“text/css” HREF=“../../stylesheet.css” TITLE=“Style”>

<SCRIPT type=“text/javascript”> function windowTitle() {

if (location.href.indexOf('is-external=true') == -1) {
    parent.document.title="Annotator";
}

} </SCRIPT> <NOSCRIPT> </NOSCRIPT>

</HEAD>

<BODY BGCOLOR=“white” onload=“windowTitle();”> <HR>

<!– ========= START OF TOP NAVBAR ======= –> <A NAME=“navbar_top”><!– –></A> <A HREF=“#skip-navbar_top” title=“Skip navigation links”></A> <TABLE BORDER=“0” WIDTH=“100%” CELLPADDING=“1” CELLSPACING=“0” SUMMARY=“”> <TR> <TD COLSPAN=2 BGCOLOR=“#EEEEFF” CLASS=“NavBarCell1”> <A NAME=“navbar_top_firstrow”><!– –></A> <TABLE BORDER=“0” CELLPADDING=“0” CELLSPACING=“3” SUMMARY=“”>

<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/Annotator.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
</TR>

</TABLE> </TD> <TD ALIGN=“right” VALIGN=“top” ROWSPAN=3> </TD> </TR>

<TR> <TD BGCOLOR=“white” CLASS=“NavBarCell2”><FONT SIZE=“-2”> &nbsp;<A HREF=“../../lingscope/algorithms/AnnotationComparer.html” title=“class in lingscope.algorithms”>PREV CLASS</A>&nbsp; &nbsp;<A HREF=“../../lingscope/algorithms/BaselineAnnotator.html” title=“class in lingscope.algorithms”>NEXT CLASS</A></FONT></TD> <TD BGCOLOR=“white” CLASS=“NavBarCell2”><FONT SIZE=“-2”>

<A HREF="../../index.html?lingscope/algorithms/Annotator.html" target="_top"><B>FRAMES</B></A>  &nbsp;

&nbsp;<A HREF=“Annotator.html” target=“_top”>NO FRAMES</A> &nbsp; &nbsp;<SCRIPT type=“text/javascript”>

<!--
if(window==top) {
  document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->

</SCRIPT> <NOSCRIPT>

<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>

</NOSCRIPT>

</FONT></TD> </TR> <TR> <TD VALIGN=“top” CLASS=“NavBarCell3”><FONT SIZE=“-2”>

SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>

<TD VALIGN=“top” CLASS=“NavBarCell3”><FONT SIZE=“-2”> DETAIL:&nbsp;<A HREF=“#field_detail”>FIELD</A>&nbsp;|&nbsp;<A HREF=“#constructor_detail”>CONSTR</A>&nbsp;|&nbsp;<A HREF=“#method_detail”>METHOD</A></FONT></TD> </TR> </TABLE> <A NAME=“skip-navbar_top”></A> <!– ========= END OF TOP NAVBAR ========= –>

<HR> <!– ======== START OF CLASS DATA ======== –> <H2> <FONT SIZE=“-1”> lingscope.algorithms</FONT> <BR> Class Annotator</H2> <PRE> java.lang.Object

<IMG SRC="../../resources/inherit.gif" ALT="extended by "><B>lingscope.algorithms.Annotator</B>

</PRE> <DL> <DT>Direct Known Subclasses: <DD><A HREF=“../../lingscope/algorithms/BaselineAnnotator.html” title=“class in lingscope.algorithms”>BaselineAnnotator</A>, <A HREF=“../../lingscope/algorithms/CrfAnnotator.html” title=“class in lingscope.algorithms”>CrfAnnotator</A>, <A HREF=“../../lingscope/algorithms/NegexAnnotator.html” title=“class in lingscope.algorithms”>NegexAnnotator</A></DD> </DL> <HR> <DL> <DT><PRE>public abstract class Annotator<DT>extends java.lang.Object</DL> </PRE>

<P> <HR>

<P> <!– =========== FIELD SUMMARY =========== –>

<A NAME=“field_summary”><!– –></A> <TABLE BORDER=“1” WIDTH=“100%” CELLPADDING=“3” CELLSPACING=“0” SUMMARY=“”> <TR BGCOLOR=“#CCCCFF” CLASS=“TableHeadingColor”> <TH ALIGN=“left” COLSPAN=“2”><FONT SIZE=“+2”> Field Summary</FONT></TH> </TR> <TR BGCOLOR=“white” CLASS=“TableRowColor”> <TD ALIGN=“right” VALIGN=“top” WIDTH=“1%”><FONT SIZE=“-1”> protected &nbsp;java.lang.String</FONT></TD> <TD><A HREF="../../lingscope/algorithms/Annotator.html#beginTag">beginTag</A>

<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD> </TR> <TR BGCOLOR=“white” CLASS=“TableRowColor”> <TD ALIGN=“right” VALIGN=“top” WIDTH=“1%”><FONT SIZE=“-1”> protected &nbsp;java.lang.String</FONT></TD> <TD><A HREF="../../lingscope/algorithms/Annotator.html#interTag">interTag</A>

<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD> </TR> <TR BGCOLOR=“white” CLASS=“TableRowColor”> <TD ALIGN=“right” VALIGN=“top” WIDTH=“1%”><FONT SIZE=“-1”> protected &nbsp;java.lang.String</FONT></TD> <TD><A HREF="../../lingscope/algorithms/Annotator.html#otherTag">otherTag</A>

<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD> </TR> </TABLE> &nbsp; <!– ======== CONSTRUCTOR SUMMARY ======== –>

<A NAME=“constructor_summary”><!– –></A> <TABLE BORDER=“1” WIDTH=“100%” CELLPADDING=“3” CELLSPACING=“0” SUMMARY=“”> <TR BGCOLOR=“#CCCCFF” CLASS=“TableHeadingColor”> <TH ALIGN=“left” COLSPAN=“2”><FONT SIZE=“+2”> Constructor Summary</FONT></TH> </TR> <TR BGCOLOR=“white” CLASS=“TableRowColor”> <TD><CODE><A HREF=“../../lingscope/algorithms/Annotator.html#Annotator(java.lang.String, java.lang.String, java.lang.String)”>Annotator</A>(java.lang.String&nbsp;beginTag,

java.lang.String&nbsp;interTag,
java.lang.String&nbsp;otherTag)</CODE>

<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD> </TR> </TABLE> &nbsp; <!– ========== METHOD SUMMARY =========== –>

<A NAME=“method_summary”><!– –></A> <TABLE BORDER=“1” WIDTH=“100%” CELLPADDING=“3” CELLSPACING=“0” SUMMARY=“”> <TR BGCOLOR=“#CCCCFF” CLASS=“TableHeadingColor”> <TH ALIGN=“left” COLSPAN=“2”><FONT SIZE=“+2”> Method Summary</FONT></TH> </TR> <TR BGCOLOR=“white” CLASS=“TableRowColor”> <TD ALIGN=“right” VALIGN=“top” WIDTH=“1%”><FONT SIZE=“-1”> abstract &nbsp;<A HREF="../../lingscope/structures/AnnotatedSentence.html" title="class in lingscope.structures">AnnotatedSentence</A></FONT></TD> <TD><CODE><A HREF=“../../lingscope/algorithms/Annotator.html#annotateSentence(java.lang.String, boolean)”>annotateSentence</A>(java.lang.String&nbsp;sentence,

boolean&nbsp;isTokenized)</CODE>

<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD> </TR> <TR BGCOLOR=“white” CLASS=“TableRowColor”> <TD ALIGN=“right” VALIGN=“top” WIDTH=“1%”><FONT SIZE=“-1”> &nbsp;boolean</FONT></TD> <TD><CODE><A HREF=“../../lingscope/algorithms/Annotator.html#isTargetNegated(java.lang.String, boolean, java.lang.String)”>isTargetNegated</A>(java.lang.String&nbsp;sentence,

boolean&nbsp;isTokenized,
java.lang.String&nbsp;targetPhrase)</CODE>

<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Checks if the given target phrase is negated in the given sentence.</TD> </TR> <TR BGCOLOR=“white” CLASS=“TableRowColor”> <TD ALIGN=“right” VALIGN=“top” WIDTH=“1%”><FONT SIZE=“-1”> abstract &nbsp;void</FONT></TD> <TD><A HREF="../../lingscope/algorithms/Annotator.html#loadAnnotator(java.lang.String)">loadAnnotator</A>(java.lang.String&nbsp;modelFile)

<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD> </TR> <TR BGCOLOR=“white” CLASS=“TableRowColor”> <TD ALIGN=“right” VALIGN=“top” WIDTH=“1%”><FONT SIZE=“-1”> abstract &nbsp;void</FONT></TD> <TD><CODE><A HREF=“../../lingscope/algorithms/Annotator.html#serializeAnnotator(java.lang.String, java.lang.String)”>serializeAnnotator</A>(java.lang.String&nbsp;trainingFile,

java.lang.String&nbsp;modelFile)</CODE>

<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD> </TR> </TABLE> &nbsp;<A NAME=“methods_inherited_from_class_java.lang.Object”><!– –></A> <TABLE BORDER=“1” WIDTH=“100%” CELLPADDING=“3” CELLSPACING=“0” SUMMARY=“”> <TR BGCOLOR=“#EEEEFF” CLASS=“TableSubHeadingColor”> <TH ALIGN=“left”>Methods inherited from class java.lang.Object</TH> </TR> <TR BGCOLOR=“white” CLASS=“TableRowColor”> <TD>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</TD> </TR> </TABLE> &nbsp; <P>

<!– ============ FIELD DETAIL =========== –>

<A NAME=“field_detail”><!– –></A> <TABLE BORDER=“1” WIDTH=“100%” CELLPADDING=“3” CELLSPACING=“0” SUMMARY=“”> <TR BGCOLOR=“#CCCCFF” CLASS=“TableHeadingColor”> <TH ALIGN=“left” COLSPAN=“1”><FONT SIZE=“+2”> Field Detail</FONT></TH> </TR> </TABLE>

<A NAME=“beginTag”><!– –></A><H3> beginTag</H3> <PRE> protected java.lang.String beginTag</PRE> <DL> <DL> </DL> </DL> <HR>

<A NAME=“interTag”><!– –></A><H3> interTag</H3> <PRE> protected java.lang.String interTag</PRE> <DL> <DL> </DL> </DL> <HR>

<A NAME=“otherTag”><!– –></A><H3> otherTag</H3> <PRE> protected java.lang.String otherTag</PRE> <DL> <DL> </DL> </DL>

<!– ========= CONSTRUCTOR DETAIL ======== –>

<A NAME=“constructor_detail”><!– –></A> <TABLE BORDER=“1” WIDTH=“100%” CELLPADDING=“3” CELLSPACING=“0” SUMMARY=“”> <TR BGCOLOR=“#CCCCFF” CLASS=“TableHeadingColor”> <TH ALIGN=“left” COLSPAN=“1”><FONT SIZE=“+2”> Constructor Detail</FONT></TH> </TR> </TABLE>

<A NAME=“Annotator(java.lang.String, java.lang.String, java.lang.String)”><!– –></A><H3> Annotator</H3> <PRE> public Annotator(java.lang.String&nbsp;beginTag,

java.lang.String&nbsp;interTag,
java.lang.String&nbsp;otherTag)</PRE>

<DL> </DL>

<!– ============ METHOD DETAIL ========== –>

<A NAME=“method_detail”><!– –></A> <TABLE BORDER=“1” WIDTH=“100%” CELLPADDING=“3” CELLSPACING=“0” SUMMARY=“”> <TR BGCOLOR=“#CCCCFF” CLASS=“TableHeadingColor”> <TH ALIGN=“left” COLSPAN=“1”><FONT SIZE=“+2”> Method Detail</FONT></TH> </TR> </TABLE>

<A NAME=“serializeAnnotator(java.lang.String, java.lang.String)”><!– –></A><H3> serializeAnnotator</H3> <PRE> public abstract void serializeAnnotator(java.lang.String&nbsp;trainingFile,

java.lang.String&nbsp;modelFile)</PRE>

<DL> <DD><DL> </DL> </DD> </DL> <HR>

<A NAME=“annotateSentence(java.lang.String, boolean)”><!– –></A><H3> annotateSentence</H3> <PRE> public abstract <A HREF=“../../lingscope/structures/AnnotatedSentence.html” title=“class in lingscope.structures”>AnnotatedSentence</A> annotateSentence(java.lang.String&nbsp;sentence,

boolean&nbsp;isTokenized)</PRE>

<DL> <DD><DL> </DL> </DD> </DL> <HR>

<A NAME=“loadAnnotator(java.lang.String)”><!– –></A><H3> loadAnnotator</H3> <PRE> public abstract void loadAnnotator(java.lang.String&nbsp;modelFile)</PRE> <DL> <DD><DL> </DL> </DD> </DL> <HR>

<A NAME=“isTargetNegated(java.lang.String, boolean, java.lang.String)”><!– –></A><H3> isTargetNegated</H3> <PRE> public boolean isTargetNegated(java.lang.String&nbsp;sentence,

boolean&nbsp;isTokenized,
java.lang.String&nbsp;targetPhrase)</PRE>

<DL> <DD>Checks if the given target phrase is negated in the given sentence. Only

the first word of the target phrase is used

<P> <DD><DL> <DT>Parameters:<DD>sentence - <DD>isTokenized - <DD>targetPhrase - <DT>Returns:<DD></DL> </DD> </DL> <!– ========= END OF CLASS DATA ========= –> <HR>

<!– ======= START OF BOTTOM NAVBAR ====== –> <A NAME=“navbar_bottom”><!– –></A> <A HREF=“#skip-navbar_bottom” title=“Skip navigation links”></A> <TABLE BORDER=“0” WIDTH=“100%” CELLPADDING=“1” CELLSPACING=“0” SUMMARY=“”> <TR> <TD COLSPAN=2 BGCOLOR=“#EEEEFF” CLASS=“NavBarCell1”> <A NAME=“navbar_bottom_firstrow”><!– –></A> <TABLE BORDER=“0” CELLPADDING=“0” CELLSPACING=“3” SUMMARY=“”>

<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/Annotator.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
</TR>

</TABLE> </TD> <TD ALIGN=“right” VALIGN=“top” ROWSPAN=3> </TD> </TR>

<TR> <TD BGCOLOR=“white” CLASS=“NavBarCell2”><FONT SIZE=“-2”> &nbsp;<A HREF=“../../lingscope/algorithms/AnnotationComparer.html” title=“class in lingscope.algorithms”>PREV CLASS</A>&nbsp; &nbsp;<A HREF=“../../lingscope/algorithms/BaselineAnnotator.html” title=“class in lingscope.algorithms”>NEXT CLASS</A></FONT></TD> <TD BGCOLOR=“white” CLASS=“NavBarCell2”><FONT SIZE=“-2”>

<A HREF="../../index.html?lingscope/algorithms/Annotator.html" target="_top"><B>FRAMES</B></A>  &nbsp;

&nbsp;<A HREF=“Annotator.html” target=“_top”>NO FRAMES</A> &nbsp; &nbsp;<SCRIPT type=“text/javascript”>

<!--
if(window==top) {
  document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->

</SCRIPT> <NOSCRIPT>

<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>

</NOSCRIPT>

</FONT></TD> </TR> <TR> <TD VALIGN=“top” CLASS=“NavBarCell3”><FONT SIZE=“-2”>

SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>

<TD VALIGN=“top” CLASS=“NavBarCell3”><FONT SIZE=“-2”> DETAIL:&nbsp;<A HREF=“#field_detail”>FIELD</A>&nbsp;|&nbsp;<A HREF=“#constructor_detail”>CONSTR</A>&nbsp;|&nbsp;<A HREF=“#method_detail”>METHOD</A></FONT></TD> </TR> </TABLE> <A NAME=“skip-navbar_bottom”></A> <!– ======== END OF BOTTOM NAVBAR ======= –>

<HR>

</BODY> </HTML>