idx int64 0 41.2k | question stringlengths 74 4.04k | target stringlengths 7 750 |
|---|---|---|
20,600 | public String getPages ( ) { if ( Journal_Type . featOkTst && ( ( Journal_Type ) jcasType ) . casFeat_pages == null ) jcasType . jcas . throwFeatMissing ( "pages" , "de.julielab.jules.types.Journal" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( Journal_Type ) jcasType ) . casFeatCode_pages ) ; } | getter for pages - gets Pages of Journal |
20,601 | public void setPages ( String v ) { if ( Journal_Type . featOkTst && ( ( Journal_Type ) jcasType ) . casFeat_pages == null ) jcasType . jcas . throwFeatMissing ( "pages" , "de.julielab.jules.types.Journal" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( Journal_Type ) jcasType ) . casFeatCode_pages , v ) ; } | setter for pages - sets Pages of Journal |
20,602 | private static boolean isOk ( String txt ) { if ( UPPER_THEN_LOWER . matcher ( txt ) . matches ( ) ) return true ; int ints = 0 ; for ( char c : txt . toCharArray ( ) ) { if ( isDigit ( c ) ) { ints ++ ; } } if ( ints * 2 > txt . length ( ) ) return true ; return false ; } | Whitelisting . Ok if Uppercase - then - lowercases or 2x - more - digits - than - letters . |
20,603 | public String getOperator ( ) { if ( VariableAssignment_Type . featOkTst && ( ( VariableAssignment_Type ) jcasType ) . casFeat_operator == null ) jcasType . jcas . throwFeatMissing ( "operator" , "ch.epfl.bbp.uima.types.VariableAssignment" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( VariableAssignment... | getter for operator - gets math operator like equal lt gt ... |
20,604 | public void setOperator ( String v ) { if ( VariableAssignment_Type . featOkTst && ( ( VariableAssignment_Type ) jcasType ) . casFeat_operator == null ) jcasType . jcas . throwFeatMissing ( "operator" , "ch.epfl.bbp.uima.types.VariableAssignment" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( VariableAssignment... | setter for operator - sets math operator like equal lt gt ... |
20,605 | public float getValue ( ) { if ( VariableAssignment_Type . featOkTst && ( ( VariableAssignment_Type ) jcasType ) . casFeat_value == null ) jcasType . jcas . throwFeatMissing ( "value" , "ch.epfl.bbp.uima.types.VariableAssignment" ) ; return jcasType . ll_cas . ll_getFloatValue ( addr , ( ( VariableAssignment_Type ) jca... | getter for value - gets |
20,606 | public void setValue ( float v ) { if ( VariableAssignment_Type . featOkTst && ( ( VariableAssignment_Type ) jcasType ) . casFeat_value == null ) jcasType . jcas . throwFeatMissing ( "value" , "ch.epfl.bbp.uima.types.VariableAssignment" ) ; jcasType . ll_cas . ll_setFloatValue ( addr , ( ( VariableAssignment_Type ) jca... | setter for value - sets |
20,607 | public String getVariableName ( ) { if ( VariableAssignment_Type . featOkTst && ( ( VariableAssignment_Type ) jcasType ) . casFeat_variableName == null ) jcasType . jcas . throwFeatMissing ( "variableName" , "ch.epfl.bbp.uima.types.VariableAssignment" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( Variab... | getter for variableName - gets |
20,608 | public void setVariableName ( String v ) { if ( VariableAssignment_Type . featOkTst && ( ( VariableAssignment_Type ) jcasType ) . casFeat_variableName == null ) jcasType . jcas . throwFeatMissing ( "variableName" , "ch.epfl.bbp.uima.types.VariableAssignment" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( Variab... | setter for variableName - sets |
20,609 | public int getElementId ( ) { if ( DocumentElement_Type . featOkTst && ( ( DocumentElement_Type ) jcasType ) . casFeat_ElementId == null ) jcasType . jcas . throwFeatMissing ( "ElementId" , "ch.epfl.bbp.uima.types.DocumentElement" ) ; return jcasType . ll_cas . ll_getIntValue ( addr , ( ( DocumentElement_Type ) jcasTyp... | getter for ElementId - gets |
20,610 | public void setElementId ( int v ) { if ( DocumentElement_Type . featOkTst && ( ( DocumentElement_Type ) jcasType ) . casFeat_ElementId == null ) jcasType . jcas . throwFeatMissing ( "ElementId" , "ch.epfl.bbp.uima.types.DocumentElement" ) ; jcasType . ll_cas . ll_setIntValue ( addr , ( ( DocumentElement_Type ) jcasTyp... | setter for ElementId - sets |
20,611 | public boolean getIsBold ( ) { if ( DocumentElement_Type . featOkTst && ( ( DocumentElement_Type ) jcasType ) . casFeat_isBold == null ) jcasType . jcas . throwFeatMissing ( "isBold" , "ch.epfl.bbp.uima.types.DocumentElement" ) ; return jcasType . ll_cas . ll_getBooleanValue ( addr , ( ( DocumentElement_Type ) jcasType... | getter for isBold - gets |
20,612 | public void setIsBold ( boolean v ) { if ( DocumentElement_Type . featOkTst && ( ( DocumentElement_Type ) jcasType ) . casFeat_isBold == null ) jcasType . jcas . throwFeatMissing ( "isBold" , "ch.epfl.bbp.uima.types.DocumentElement" ) ; jcasType . ll_cas . ll_setBooleanValue ( addr , ( ( DocumentElement_Type ) jcasType... | setter for isBold - sets |
20,613 | public float getHeight ( ) { if ( DocumentElement_Type . featOkTst && ( ( DocumentElement_Type ) jcasType ) . casFeat_height == null ) jcasType . jcas . throwFeatMissing ( "height" , "ch.epfl.bbp.uima.types.DocumentElement" ) ; return jcasType . ll_cas . ll_getFloatValue ( addr , ( ( DocumentElement_Type ) jcasType ) .... | getter for height - gets |
20,614 | public void setHeight ( float v ) { if ( DocumentElement_Type . featOkTst && ( ( DocumentElement_Type ) jcasType ) . casFeat_height == null ) jcasType . jcas . throwFeatMissing ( "height" , "ch.epfl.bbp.uima.types.DocumentElement" ) ; jcasType . ll_cas . ll_setFloatValue ( addr , ( ( DocumentElement_Type ) jcasType ) .... | setter for height - sets |
20,615 | public float getWidth ( ) { if ( DocumentElement_Type . featOkTst && ( ( DocumentElement_Type ) jcasType ) . casFeat_width == null ) jcasType . jcas . throwFeatMissing ( "width" , "ch.epfl.bbp.uima.types.DocumentElement" ) ; return jcasType . ll_cas . ll_getFloatValue ( addr , ( ( DocumentElement_Type ) jcasType ) . ca... | getter for width - gets |
20,616 | public void setWidth ( float v ) { if ( DocumentElement_Type . featOkTst && ( ( DocumentElement_Type ) jcasType ) . casFeat_width == null ) jcasType . jcas . throwFeatMissing ( "width" , "ch.epfl.bbp.uima.types.DocumentElement" ) ; jcasType . ll_cas . ll_setFloatValue ( addr , ( ( DocumentElement_Type ) jcasType ) . ca... | setter for width - sets |
20,617 | public float getX ( ) { if ( DocumentElement_Type . featOkTst && ( ( DocumentElement_Type ) jcasType ) . casFeat_x == null ) jcasType . jcas . throwFeatMissing ( "x" , "ch.epfl.bbp.uima.types.DocumentElement" ) ; return jcasType . ll_cas . ll_getFloatValue ( addr , ( ( DocumentElement_Type ) jcasType ) . casFeatCode_x ... | getter for x - gets |
20,618 | public void setX ( float v ) { if ( DocumentElement_Type . featOkTst && ( ( DocumentElement_Type ) jcasType ) . casFeat_x == null ) jcasType . jcas . throwFeatMissing ( "x" , "ch.epfl.bbp.uima.types.DocumentElement" ) ; jcasType . ll_cas . ll_setFloatValue ( addr , ( ( DocumentElement_Type ) jcasType ) . casFeatCode_x ... | setter for x - sets |
20,619 | public float getY ( ) { if ( DocumentElement_Type . featOkTst && ( ( DocumentElement_Type ) jcasType ) . casFeat_y == null ) jcasType . jcas . throwFeatMissing ( "y" , "ch.epfl.bbp.uima.types.DocumentElement" ) ; return jcasType . ll_cas . ll_getFloatValue ( addr , ( ( DocumentElement_Type ) jcasType ) . casFeatCode_y ... | getter for y - gets |
20,620 | public void setY ( float v ) { if ( DocumentElement_Type . featOkTst && ( ( DocumentElement_Type ) jcasType ) . casFeat_y == null ) jcasType . jcas . throwFeatMissing ( "y" , "ch.epfl.bbp.uima.types.DocumentElement" ) ; jcasType . ll_cas . ll_setFloatValue ( addr , ( ( DocumentElement_Type ) jcasType ) . casFeatCode_y ... | setter for y - sets |
20,621 | public int getPageId ( ) { if ( DocumentElement_Type . featOkTst && ( ( DocumentElement_Type ) jcasType ) . casFeat_pageId == null ) jcasType . jcas . throwFeatMissing ( "pageId" , "ch.epfl.bbp.uima.types.DocumentElement" ) ; return jcasType . ll_cas . ll_getIntValue ( addr , ( ( DocumentElement_Type ) jcasType ) . cas... | getter for pageId - gets |
20,622 | public void setPageId ( int v ) { if ( DocumentElement_Type . featOkTst && ( ( DocumentElement_Type ) jcasType ) . casFeat_pageId == null ) jcasType . jcas . throwFeatMissing ( "pageId" , "ch.epfl.bbp.uima.types.DocumentElement" ) ; jcasType . ll_cas . ll_setIntValue ( addr , ( ( DocumentElement_Type ) jcasType ) . cas... | setter for pageId - sets |
20,623 | public double getMedianFontsize ( ) { if ( DocumentElement_Type . featOkTst && ( ( DocumentElement_Type ) jcasType ) . casFeat_medianFontsize == null ) jcasType . jcas . throwFeatMissing ( "medianFontsize" , "ch.epfl.bbp.uima.types.DocumentElement" ) ; return jcasType . ll_cas . ll_getDoubleValue ( addr , ( ( DocumentE... | getter for medianFontsize - gets |
20,624 | public void setMedianFontsize ( double v ) { if ( DocumentElement_Type . featOkTst && ( ( DocumentElement_Type ) jcasType ) . casFeat_medianFontsize == null ) jcasType . jcas . throwFeatMissing ( "medianFontsize" , "ch.epfl.bbp.uima.types.DocumentElement" ) ; jcasType . ll_cas . ll_setDoubleValue ( addr , ( ( DocumentE... | setter for medianFontsize - sets |
20,625 | protected boolean validOutcome ( String outcome , Sequence sequence ) { if ( outcome . equals ( CONTINUE ) ) { List tags = sequence . getOutcomes ( ) ; int li = tags . size ( ) - 1 ; if ( li == - 1 ) { return false ; } else if ( ( ( String ) tags . get ( li ) ) . equals ( OTHER ) ) { return false ; } } return true ; } | This method determines wheter the outcome is valid for the preceeding sequence . This can be used to implement constraints on what sequences are valid . |
20,626 | public String getRegistryNumber ( ) { if ( Chemical_Type . featOkTst && ( ( Chemical_Type ) jcasType ) . casFeat_registryNumber == null ) jcasType . jcas . throwFeatMissing ( "registryNumber" , "de.julielab.jules.types.Chemical" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( Chemical_Type ) jcasType ) . ... | getter for registryNumber - gets A unique 5 to 9 digit number in hyphenated format assigned by the Chemical Abstract Service to specify chemical substances a zero is a valid number when an actual number cannot be located or is not yet available . C |
20,627 | public void setRegistryNumber ( String v ) { if ( Chemical_Type . featOkTst && ( ( Chemical_Type ) jcasType ) . casFeat_registryNumber == null ) jcasType . jcas . throwFeatMissing ( "registryNumber" , "de.julielab.jules.types.Chemical" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( Chemical_Type ) jcasType ) . ... | setter for registryNumber - sets A unique 5 to 9 digit number in hyphenated format assigned by the Chemical Abstract Service to specify chemical substances a zero is a valid number when an actual number cannot be located or is not yet available . C |
20,628 | public String getNameOfSubstance ( ) { if ( Chemical_Type . featOkTst && ( ( Chemical_Type ) jcasType ) . casFeat_nameOfSubstance == null ) jcasType . jcas . throwFeatMissing ( "nameOfSubstance" , "de.julielab.jules.types.Chemical" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( Chemical_Type ) jcasType )... | getter for nameOfSubstance - gets The name of the substance that the registry number or the E . C . number identifies C |
20,629 | public void setNameOfSubstance ( String v ) { if ( Chemical_Type . featOkTst && ( ( Chemical_Type ) jcasType ) . casFeat_nameOfSubstance == null ) jcasType . jcas . throwFeatMissing ( "nameOfSubstance" , "de.julielab.jules.types.Chemical" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( Chemical_Type ) jcasType )... | setter for nameOfSubstance - sets The name of the substance that the registry number or the E . C . number identifies C |
20,630 | public static List < String > splitSentence2 ( String text , SentenceDetector sd ) { List < String > sentences = new ArrayList < String > ( ) ; try { int sentenceOffsets [ ] = sd . sentPosDetect ( text ) ; int begin = 0 ; int end = 0 ; for ( int i = 0 ; i < sentenceOffsets . length ; i ++ ) { end = begin + ( text . sub... | Conv . method to use the SentenceDetector directly ; create it with the method below |
20,631 | public String getPolarity ( ) { if ( EventMention_Type . featOkTst && ( ( EventMention_Type ) jcasType ) . casFeat_polarity == null ) jcasType . jcas . throwFeatMissing ( "polarity" , "de.julielab.jules.types.EventMention" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( EventMention_Type ) jcasType ) . ca... | getter for polarity - gets |
20,632 | public EventTrigger getTrigger ( ) { if ( EventMention_Type . featOkTst && ( ( EventMention_Type ) jcasType ) . casFeat_trigger == null ) jcasType . jcas . throwFeatMissing ( "trigger" , "de.julielab.jules.types.EventMention" ) ; return ( EventTrigger ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getR... | getter for trigger - gets |
20,633 | public void setTrigger ( EventTrigger v ) { if ( EventMention_Type . featOkTst && ( ( EventMention_Type ) jcasType ) . casFeat_trigger == null ) jcasType . jcas . throwFeatMissing ( "trigger" , "de.julielab.jules.types.EventMention" ) ; jcasType . ll_cas . ll_setRefValue ( addr , ( ( EventMention_Type ) jcasType ) . ca... | setter for trigger - sets |
20,634 | public String getRefid ( ) { if ( EventArgument_Type . featOkTst && ( ( EventArgument_Type ) jcasType ) . casFeat_refid == null ) jcasType . jcas . throwFeatMissing ( "refid" , "de.julielab.jules.types.ace.EventArgument" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( EventArgument_Type ) jcasType ) . cas... | getter for refid - gets |
20,635 | public void setRefid ( String v ) { if ( EventArgument_Type . featOkTst && ( ( EventArgument_Type ) jcasType ) . casFeat_refid == null ) jcasType . jcas . throwFeatMissing ( "refid" , "de.julielab.jules.types.ace.EventArgument" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( EventArgument_Type ) jcasType ) . cas... | setter for refid - sets |
20,636 | public Set < WordEntry > distanceMax ( String word ) { float [ ] wordVector = getWordVector ( word ) ; if ( wordVector == null ) { return null ; } Set < Entry < String , float [ ] > > entrySet = vocabulary . entrySet ( ) ; float [ ] tempVector = null ; List < WordEntry > wordEntrys = new ArrayList < WordEntry > ( topNS... | FAIL only counting min + max distance |
20,637 | protected boolean overlap ( Pair < Integer , Integer > expected , Pair < Integer , Integer > actual ) { if ( actual . getKey ( ) >= expected . getKey ( ) && actual . getValue ( ) <= expected . getValue ( ) ) { return true ; } return false ; } | Here we do a lenient comparison |
20,638 | private static final int previousSpaceIndex ( StringBuffer sb , int seek ) { seek -- ; while ( seek > 0 ) { if ( sb . charAt ( seek ) == ' ' ) { while ( seek > 0 && sb . charAt ( seek - 1 ) == ' ' ) seek -- ; return seek ; } seek -- ; } return 0 ; } | Finds the index of the nearest space before a specified index . |
20,639 | public FSArray getTargetList ( ) { if ( MMAXPointer_Type . featOkTst && ( ( MMAXPointer_Type ) jcasType ) . casFeat_targetList == null ) jcasType . jcas . throwFeatMissing ( "targetList" , "de.julielab.jules.types.mmax.MMAXPointer" ) ; return ( FSArray ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_get... | getter for targetList - gets The MMAX annotations the pointer points at . |
20,640 | public void setTargetList ( FSArray v ) { if ( MMAXPointer_Type . featOkTst && ( ( MMAXPointer_Type ) jcasType ) . casFeat_targetList == null ) jcasType . jcas . throwFeatMissing ( "targetList" , "de.julielab.jules.types.mmax.MMAXPointer" ) ; jcasType . ll_cas . ll_setRefValue ( addr , ( ( MMAXPointer_Type ) jcasType )... | setter for targetList - sets The MMAX annotations the pointer points at . |
20,641 | public MMAXAnnotation getTargetList ( int i ) { if ( MMAXPointer_Type . featOkTst && ( ( MMAXPointer_Type ) jcasType ) . casFeat_targetList == null ) jcasType . jcas . throwFeatMissing ( "targetList" , "de.julielab.jules.types.mmax.MMAXPointer" ) ; jcasType . jcas . checkArrayBounds ( jcasType . ll_cas . ll_getRefValue... | indexed getter for targetList - gets an indexed value - The MMAX annotations the pointer points at . |
20,642 | public void setTargetList ( int i , MMAXAnnotation v ) { if ( MMAXPointer_Type . featOkTst && ( ( MMAXPointer_Type ) jcasType ) . casFeat_targetList == null ) jcasType . jcas . throwFeatMissing ( "targetList" , "de.julielab.jules.types.mmax.MMAXPointer" ) ; jcasType . jcas . checkArrayBounds ( jcasType . ll_cas . ll_ge... | indexed setter for targetList - sets an indexed value - The MMAX annotations the pointer points at . |
20,643 | public Annotation getEnclosedAnnot ( ) { if ( Keep_Type . featOkTst && ( ( Keep_Type ) jcasType ) . casFeat_enclosedAnnot == null ) jcasType . jcas . throwFeatMissing ( "enclosedAnnot" , "ch.epfl.bbp.uima.types.Keep" ) ; return ( Annotation ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getRefValue ( a... | getter for enclosedAnnot - gets |
20,644 | public void setEnclosedAnnot ( Annotation v ) { if ( Keep_Type . featOkTst && ( ( Keep_Type ) jcasType ) . casFeat_enclosedAnnot == null ) jcasType . jcas . throwFeatMissing ( "enclosedAnnot" , "ch.epfl.bbp.uima.types.Keep" ) ; jcasType . ll_cas . ll_setRefValue ( addr , ( ( Keep_Type ) jcasType ) . casFeatCode_enclose... | setter for enclosedAnnot - sets |
20,645 | public String getNormalizedText ( ) { if ( Keep_Type . featOkTst && ( ( Keep_Type ) jcasType ) . casFeat_normalizedText == null ) jcasType . jcas . throwFeatMissing ( "normalizedText" , "ch.epfl.bbp.uima.types.Keep" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( Keep_Type ) jcasType ) . casFeatCode_norma... | getter for normalizedText - gets |
20,646 | public void setNormalizedText ( String v ) { if ( Keep_Type . featOkTst && ( ( Keep_Type ) jcasType ) . casFeat_normalizedText == null ) jcasType . jcas . throwFeatMissing ( "normalizedText" , "ch.epfl.bbp.uima.types.Keep" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( Keep_Type ) jcasType ) . casFeatCode_norma... | setter for normalizedText - sets |
20,647 | public Date getPubDate ( ) { if ( PubType_Type . featOkTst && ( ( PubType_Type ) jcasType ) . casFeat_pubDate == null ) jcasType . jcas . throwFeatMissing ( "pubDate" , "de.julielab.jules.types.PubType" ) ; return ( Date ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( PubType_Ty... | getter for pubDate - gets The date on which the document was published O |
20,648 | public void setPubDate ( Date v ) { if ( PubType_Type . featOkTst && ( ( PubType_Type ) jcasType ) . casFeat_pubDate == null ) jcasType . jcas . throwFeatMissing ( "pubDate" , "de.julielab.jules.types.PubType" ) ; jcasType . ll_cas . ll_setRefValue ( addr , ( ( PubType_Type ) jcasType ) . casFeatCode_pubDate , jcasType... | setter for pubDate - sets The date on which the document was published O |
20,649 | public String getGramRole ( ) { if ( PTBConstituent_Type . featOkTst && ( ( PTBConstituent_Type ) jcasType ) . casFeat_gramRole == null ) jcasType . jcas . throwFeatMissing ( "gramRole" , "de.julielab.jules.types.PTBConstituent" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( PTBConstituent_Type ) jcasTyp... | getter for gramRole - gets Grammatical role O |
20,650 | public void setGramRole ( String v ) { if ( PTBConstituent_Type . featOkTst && ( ( PTBConstituent_Type ) jcasType ) . casFeat_gramRole == null ) jcasType . jcas . throwFeatMissing ( "gramRole" , "de.julielab.jules.types.PTBConstituent" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( PTBConstituent_Type ) jcasTyp... | setter for gramRole - sets Grammatical role O |
20,651 | public String getAdv ( ) { if ( PTBConstituent_Type . featOkTst && ( ( PTBConstituent_Type ) jcasType ) . casFeat_adv == null ) jcasType . jcas . throwFeatMissing ( "adv" , "de.julielab.jules.types.PTBConstituent" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( PTBConstituent_Type ) jcasType ) . casFeatCo... | getter for adv - gets Adverbials are generally VP adjuncts . |
20,652 | public void setAdv ( String v ) { if ( PTBConstituent_Type . featOkTst && ( ( PTBConstituent_Type ) jcasType ) . casFeat_adv == null ) jcasType . jcas . throwFeatMissing ( "adv" , "de.julielab.jules.types.PTBConstituent" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( PTBConstituent_Type ) jcasType ) . casFeatCo... | setter for adv - sets Adverbials are generally VP adjuncts . |
20,653 | public String getMisc ( ) { if ( PTBConstituent_Type . featOkTst && ( ( PTBConstituent_Type ) jcasType ) . casFeat_misc == null ) jcasType . jcas . throwFeatMissing ( "misc" , "de.julielab.jules.types.PTBConstituent" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( PTBConstituent_Type ) jcasType ) . casFea... | getter for misc - gets Miscellaneous |
20,654 | public void setMisc ( String v ) { if ( PTBConstituent_Type . featOkTst && ( ( PTBConstituent_Type ) jcasType ) . casFeat_misc == null ) jcasType . jcas . throwFeatMissing ( "misc" , "de.julielab.jules.types.PTBConstituent" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( PTBConstituent_Type ) jcasType ) . casFea... | setter for misc - sets Miscellaneous |
20,655 | public String getNullElement ( ) { if ( PTBConstituent_Type . featOkTst && ( ( PTBConstituent_Type ) jcasType ) . casFeat_nullElement == null ) jcasType . jcas . throwFeatMissing ( "nullElement" , "de.julielab.jules.types.PTBConstituent" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( PTBConstituent_Type ... | getter for nullElement - gets |
20,656 | public void setNullElement ( String v ) { if ( PTBConstituent_Type . featOkTst && ( ( PTBConstituent_Type ) jcasType ) . casFeat_nullElement == null ) jcasType . jcas . throwFeatMissing ( "nullElement" , "de.julielab.jules.types.PTBConstituent" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( PTBConstituent_Type ... | setter for nullElement - sets |
20,657 | public Constituent getRef ( ) { if ( PTBConstituent_Type . featOkTst && ( ( PTBConstituent_Type ) jcasType ) . casFeat_ref == null ) jcasType . jcas . throwFeatMissing ( "ref" , "de.julielab.jules.types.PTBConstituent" ) ; return ( Constituent ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getRefValue ... | getter for ref - gets Th reference from the null constituent to the corresponding lexicalized constituent O |
20,658 | public void setRef ( Constituent v ) { if ( PTBConstituent_Type . featOkTst && ( ( PTBConstituent_Type ) jcasType ) . casFeat_ref == null ) jcasType . jcas . throwFeatMissing ( "ref" , "de.julielab.jules.types.PTBConstituent" ) ; jcasType . ll_cas . ll_setRefValue ( addr , ( ( PTBConstituent_Type ) jcasType ) . casFeat... | setter for ref - sets Th reference from the null constituent to the corresponding lexicalized constituent O |
20,659 | public Constituent getMap ( ) { if ( PTBConstituent_Type . featOkTst && ( ( PTBConstituent_Type ) jcasType ) . casFeat_map == null ) jcasType . jcas . throwFeatMissing ( "map" , "de.julielab.jules.types.PTBConstituent" ) ; return ( Constituent ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getRefValue ... | getter for map - gets In the case of gapping the reference to the corresponding constituent O |
20,660 | public void setMap ( Constituent v ) { if ( PTBConstituent_Type . featOkTst && ( ( PTBConstituent_Type ) jcasType ) . casFeat_map == null ) jcasType . jcas . throwFeatMissing ( "map" , "de.julielab.jules.types.PTBConstituent" ) ; jcasType . ll_cas . ll_setRefValue ( addr , ( ( PTBConstituent_Type ) jcasType ) . casFeat... | setter for map - sets In the case of gapping the reference to the corresponding constituent O |
20,661 | public boolean getTpc ( ) { if ( PTBConstituent_Type . featOkTst && ( ( PTBConstituent_Type ) jcasType ) . casFeat_tpc == null ) jcasType . jcas . throwFeatMissing ( "tpc" , "de.julielab.jules.types.PTBConstituent" ) ; return jcasType . ll_cas . ll_getBooleanValue ( addr , ( ( PTBConstituent_Type ) jcasType ) . casFeat... | getter for tpc - gets Marks elements that appear before the subject in a declarative sentence O |
20,662 | public void setTpc ( boolean v ) { if ( PTBConstituent_Type . featOkTst && ( ( PTBConstituent_Type ) jcasType ) . casFeat_tpc == null ) jcasType . jcas . throwFeatMissing ( "tpc" , "de.julielab.jules.types.PTBConstituent" ) ; jcasType . ll_cas . ll_setBooleanValue ( addr , ( ( PTBConstituent_Type ) jcasType ) . casFeat... | setter for tpc - sets Marks elements that appear before the subject in a declarative sentence O |
20,663 | public List < java . lang . Object > getStartPageOrEndPageOrMedlinePgn ( ) { if ( startPageOrEndPageOrMedlinePgn == null ) { startPageOrEndPageOrMedlinePgn = new ArrayList < java . lang . Object > ( ) ; } return this . startPageOrEndPageOrMedlinePgn ; } | Gets the value of the startPageOrEndPageOrMedlinePgn property . |
20,664 | private boolean matchRuleExceptions ( RuleException [ ] exceptions , CAS aCAS , AnnotationFS annot ) { if ( this . lastRuleExceptionAnnotation == annot ) { return this . lastRuleExceptionMatch ; } for ( int i = 0 ; i < exceptions . length ; i ++ ) { this . lastRuleExceptionAnnotation = annot ; AnnotationFS coverFs = fi... | Check if the rule exception match for the current match type annotation . |
20,665 | private AnnotationFS findCoverFS ( CAS aCAS , AnnotationFS annot , Type coverFsType ) { AnnotationFS coverFs = null ; FeatureStructure searchFs = aCAS . createAnnotation ( coverFsType , annot . getBegin ( ) , aCAS . getDocumentText ( ) . length ( ) ) ; FSIterator < ? > iterator = aCAS . getAnnotationIndex ( coverFsType... | Finds the covering annotation of the specified coverFSType for the given annotation . |
20,666 | private String replaceMatchGroupValues ( String featureValue , Matcher matcher , Rule rule ) throws RegexAnnotatorProcessException { StringBuffer replaced = new StringBuffer ( ) ; int pos = 0 ; int end = featureValue . length ( ) ; char c ; while ( pos < end ) { c = featureValue . charAt ( pos ) ; if ( c == '\\' ) { ++... | replace the string containing match group syntax with the current match group values . |
20,667 | public String getDocid ( ) { if ( Document_Type . featOkTst && ( ( Document_Type ) jcasType ) . casFeat_docid == null ) jcasType . jcas . throwFeatMissing ( "docid" , "de.julielab.jules.types.ace.Document" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( Document_Type ) jcasType ) . casFeatCode_docid ) ; } | getter for docid - gets |
20,668 | public void setDocid ( String v ) { if ( Document_Type . featOkTst && ( ( Document_Type ) jcasType ) . casFeat_docid == null ) jcasType . jcas . throwFeatMissing ( "docid" , "de.julielab.jules.types.ace.Document" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( Document_Type ) jcasType ) . casFeatCode_docid , v )... | setter for docid - sets |
20,669 | public FSArray getEntities ( ) { if ( Document_Type . featOkTst && ( ( Document_Type ) jcasType ) . casFeat_entities == null ) jcasType . jcas . throwFeatMissing ( "entities" , "de.julielab.jules.types.ace.Document" ) ; return ( FSArray ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getRefValue ( addr ... | getter for entities - gets |
20,670 | public void setEntities ( FSArray v ) { if ( Document_Type . featOkTst && ( ( Document_Type ) jcasType ) . casFeat_entities == null ) jcasType . jcas . throwFeatMissing ( "entities" , "de.julielab.jules.types.ace.Document" ) ; jcasType . ll_cas . ll_setRefValue ( addr , ( ( Document_Type ) jcasType ) . casFeatCode_enti... | setter for entities - sets |
20,671 | public Entity getEntities ( int i ) { if ( Document_Type . featOkTst && ( ( Document_Type ) jcasType ) . casFeat_entities == null ) jcasType . jcas . throwFeatMissing ( "entities" , "de.julielab.jules.types.ace.Document" ) ; jcasType . jcas . checkArrayBounds ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( Document_T... | indexed getter for entities - gets an indexed value - |
20,672 | public void setEntities ( int i , Entity v ) { if ( Document_Type . featOkTst && ( ( Document_Type ) jcasType ) . casFeat_entities == null ) jcasType . jcas . throwFeatMissing ( "entities" , "de.julielab.jules.types.ace.Document" ) ; jcasType . jcas . checkArrayBounds ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( D... | indexed setter for entities - sets an indexed value - |
20,673 | public FSArray getValues ( ) { if ( Document_Type . featOkTst && ( ( Document_Type ) jcasType ) . casFeat_values == null ) jcasType . jcas . throwFeatMissing ( "values" , "de.julielab.jules.types.ace.Document" ) ; return ( FSArray ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( ... | getter for values - gets |
20,674 | public void setValues ( FSArray v ) { if ( Document_Type . featOkTst && ( ( Document_Type ) jcasType ) . casFeat_values == null ) jcasType . jcas . throwFeatMissing ( "values" , "de.julielab.jules.types.ace.Document" ) ; jcasType . ll_cas . ll_setRefValue ( addr , ( ( Document_Type ) jcasType ) . casFeatCode_values , j... | setter for values - sets |
20,675 | public Entity getValues ( int i ) { if ( Document_Type . featOkTst && ( ( Document_Type ) jcasType ) . casFeat_values == null ) jcasType . jcas . throwFeatMissing ( "values" , "de.julielab.jules.types.ace.Document" ) ; jcasType . jcas . checkArrayBounds ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( Document_Type ) ... | indexed getter for values - gets an indexed value - |
20,676 | public void setValues ( int i , Entity v ) { if ( Document_Type . featOkTst && ( ( Document_Type ) jcasType ) . casFeat_values == null ) jcasType . jcas . throwFeatMissing ( "values" , "de.julielab.jules.types.ace.Document" ) ; jcasType . jcas . checkArrayBounds ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( Documen... | indexed setter for values - sets an indexed value - |
20,677 | public FSArray getTimex2 ( ) { if ( Document_Type . featOkTst && ( ( Document_Type ) jcasType ) . casFeat_timex2 == null ) jcasType . jcas . throwFeatMissing ( "timex2" , "de.julielab.jules.types.ace.Document" ) ; return ( FSArray ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( ... | getter for timex2 - gets |
20,678 | public void setTimex2 ( FSArray v ) { if ( Document_Type . featOkTst && ( ( Document_Type ) jcasType ) . casFeat_timex2 == null ) jcasType . jcas . throwFeatMissing ( "timex2" , "de.julielab.jules.types.ace.Document" ) ; jcasType . ll_cas . ll_setRefValue ( addr , ( ( Document_Type ) jcasType ) . casFeatCode_timex2 , j... | setter for timex2 - sets |
20,679 | public Timex2 getTimex2 ( int i ) { if ( Document_Type . featOkTst && ( ( Document_Type ) jcasType ) . casFeat_timex2 == null ) jcasType . jcas . throwFeatMissing ( "timex2" , "de.julielab.jules.types.ace.Document" ) ; jcasType . jcas . checkArrayBounds ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( Document_Type ) ... | indexed getter for timex2 - gets an indexed value - |
20,680 | public void setTimex2 ( int i , Timex2 v ) { if ( Document_Type . featOkTst && ( ( Document_Type ) jcasType ) . casFeat_timex2 == null ) jcasType . jcas . throwFeatMissing ( "timex2" , "de.julielab.jules.types.ace.Document" ) ; jcasType . jcas . checkArrayBounds ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( Documen... | indexed setter for timex2 - sets an indexed value - |
20,681 | public FSArray getRelations ( ) { if ( Document_Type . featOkTst && ( ( Document_Type ) jcasType ) . casFeat_relations == null ) jcasType . jcas . throwFeatMissing ( "relations" , "de.julielab.jules.types.ace.Document" ) ; return ( FSArray ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getRefValue ( ad... | getter for relations - gets |
20,682 | public void setRelations ( FSArray v ) { if ( Document_Type . featOkTst && ( ( Document_Type ) jcasType ) . casFeat_relations == null ) jcasType . jcas . throwFeatMissing ( "relations" , "de.julielab.jules.types.ace.Document" ) ; jcasType . ll_cas . ll_setRefValue ( addr , ( ( Document_Type ) jcasType ) . casFeatCode_r... | setter for relations - sets |
20,683 | public Relation getRelations ( int i ) { if ( Document_Type . featOkTst && ( ( Document_Type ) jcasType ) . casFeat_relations == null ) jcasType . jcas . throwFeatMissing ( "relations" , "de.julielab.jules.types.ace.Document" ) ; jcasType . jcas . checkArrayBounds ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( Docum... | indexed getter for relations - gets an indexed value - |
20,684 | public void setRelations ( int i , Relation v ) { if ( Document_Type . featOkTst && ( ( Document_Type ) jcasType ) . casFeat_relations == null ) jcasType . jcas . throwFeatMissing ( "relations" , "de.julielab.jules.types.ace.Document" ) ; jcasType . jcas . checkArrayBounds ( jcasType . ll_cas . ll_getRefValue ( addr , ... | indexed setter for relations - sets an indexed value - |
20,685 | public FSArray getEvents ( ) { if ( Document_Type . featOkTst && ( ( Document_Type ) jcasType ) . casFeat_events == null ) jcasType . jcas . throwFeatMissing ( "events" , "de.julielab.jules.types.ace.Document" ) ; return ( FSArray ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( ... | getter for events - gets |
20,686 | public void setEvents ( FSArray v ) { if ( Document_Type . featOkTst && ( ( Document_Type ) jcasType ) . casFeat_events == null ) jcasType . jcas . throwFeatMissing ( "events" , "de.julielab.jules.types.ace.Document" ) ; jcasType . ll_cas . ll_setRefValue ( addr , ( ( Document_Type ) jcasType ) . casFeatCode_events , j... | setter for events - sets |
20,687 | public Event getEvents ( int i ) { if ( Document_Type . featOkTst && ( ( Document_Type ) jcasType ) . casFeat_events == null ) jcasType . jcas . throwFeatMissing ( "events" , "de.julielab.jules.types.ace.Document" ) ; jcasType . jcas . checkArrayBounds ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( Document_Type ) j... | indexed getter for events - gets an indexed value - |
20,688 | public void setEvents ( int i , Event v ) { if ( Document_Type . featOkTst && ( ( Document_Type ) jcasType ) . casFeat_events == null ) jcasType . jcas . throwFeatMissing ( "events" , "de.julielab.jules.types.ace.Document" ) ; jcasType . jcas . checkArrayBounds ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( Document... | indexed setter for events - sets an indexed value - |
20,689 | public String sprintf ( double x ) throws IllegalArgumentException { Enumeration e = vFmt . elements ( ) ; ConversionSpecification cs = null ; char c = 0 ; StringBuffer sb = new StringBuffer ( ) ; while ( e . hasMoreElements ( ) ) { cs = ( ConversionSpecification ) e . nextElement ( ) ; c = cs . getConversionCharacter ... | Format a double . |
20,690 | public InstanceList [ ] split ( java . util . Random r , int _nfolds ) { List < Integer > articleIds = newArrayList ( instanceArticles . keySet ( ) ) ; Collections . shuffle ( articleIds , r ) ; final int nrSentences = instanceArticles . size ( ) ; final int nrSentencesPerSplit = ( int ) ( nrSentences / ( double ) _nfo... | Shuffles the elements of this list among several smaller lists . |
20,691 | public InstanceList [ ] nextSplit ( int numTrainFolds ) { InstanceList [ ] ret = new InstanceList [ 2 ] ; ret [ 0 ] = new InstanceList ( pipe ) ; ret [ 1 ] = new InstanceList ( pipe ) ; for ( int i = 0 ; i < folds . length ; i ++ ) { int foldno = ( index + i ) % folds . length ; InstanceList addTo ; if ( i < numTrainFo... | Returns the next split given the number of folds you want in the training data . |
20,692 | public int getBlock ( ) { if ( DocumentLine_Type . featOkTst && ( ( DocumentLine_Type ) jcasType ) . casFeat_block == null ) jcasType . jcas . throwFeatMissing ( "block" , "ch.epfl.bbp.uima.types.DocumentLine" ) ; return jcasType . ll_cas . ll_getIntValue ( addr , ( ( DocumentLine_Type ) jcasType ) . casFeatCode_block ... | getter for block - gets |
20,693 | public void setBlock ( int v ) { if ( DocumentLine_Type . featOkTst && ( ( DocumentLine_Type ) jcasType ) . casFeat_block == null ) jcasType . jcas . throwFeatMissing ( "block" , "ch.epfl.bbp.uima.types.DocumentLine" ) ; jcasType . ll_cas . ll_setIntValue ( addr , ( ( DocumentLine_Type ) jcasType ) . casFeatCode_block ... | setter for block - sets |
20,694 | public String getLineText ( ) { if ( DocumentLine_Type . featOkTst && ( ( DocumentLine_Type ) jcasType ) . casFeat_lineText == null ) jcasType . jcas . throwFeatMissing ( "lineText" , "ch.epfl.bbp.uima.types.DocumentLine" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( DocumentLine_Type ) jcasType ) . cas... | getter for lineText - gets workaround to get the line text |
20,695 | public void setLineText ( String v ) { if ( DocumentLine_Type . featOkTst && ( ( DocumentLine_Type ) jcasType ) . casFeat_lineText == null ) jcasType . jcas . throwFeatMissing ( "lineText" , "ch.epfl.bbp.uima.types.DocumentLine" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( DocumentLine_Type ) jcasType ) . cas... | setter for lineText - sets workaround to get the line text |
20,696 | public String getTypeS ( ) { if ( Gold_Type . featOkTst && ( ( Gold_Type ) jcasType ) . casFeat_typeS == null ) jcasType . jcas . throwFeatMissing ( "typeS" , "ch.epfl.bbp.uima.types.Gold" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( Gold_Type ) jcasType ) . casFeatCode_typeS ) ; } | getter for typeS - gets |
20,697 | public void setTypeS ( String v ) { if ( Gold_Type . featOkTst && ( ( Gold_Type ) jcasType ) . casFeat_typeS == null ) jcasType . jcas . throwFeatMissing ( "typeS" , "ch.epfl.bbp.uima.types.Gold" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( Gold_Type ) jcasType ) . casFeatCode_typeS , v ) ; } | setter for typeS - sets |
20,698 | public DoubleArray getScores ( ) { if ( Topic_Type . featOkTst && ( ( Topic_Type ) jcasType ) . casFeat_scores == null ) jcasType . jcas . throwFeatMissing ( "scores" , "ch.epfl.bbp.uima.types.Topic" ) ; return ( DoubleArray ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( Topic_... | getter for scores - gets |
20,699 | public void setScores ( DoubleArray v ) { if ( Topic_Type . featOkTst && ( ( Topic_Type ) jcasType ) . casFeat_scores == null ) jcasType . jcas . throwFeatMissing ( "scores" , "ch.epfl.bbp.uima.types.Topic" ) ; jcasType . ll_cas . ll_setRefValue ( addr , ( ( Topic_Type ) jcasType ) . casFeatCode_scores , jcasType . ll_... | setter for scores - sets |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.