idx int64 0 165k | question stringlengths 73 5.81k | target stringlengths 5 918 |
|---|---|---|
20,800 | public static Collection < BioEntityMention > getProteins ( Collection < BioEntityMention > mentions ) { ArrayList < BioEntityMention > ret = new ArrayList < BioEntityMention > ( ) ; for ( BioEntityMention mention : mentions ) { if ( mention . getSpecificType ( ) != null && mention . getSpecificType ( ) . startsWith ( "G#protein" ) ) ret . add ( mention ) ; } return ret ; } | Filters mentions that are proteins |
20,801 | public float getNormalizedValue ( ) { if ( Measure_Type . featOkTst && ( ( Measure_Type ) jcasType ) . casFeat_normalizedValue == null ) jcasType . jcas . throwFeatMissing ( "normalizedValue" , "ch.epfl.bbp.uima.types.Measure" ) ; return jcasType . ll_cas . ll_getFloatValue ( addr , ( ( Measure_Type ) jcasType ) . casFeatCode_normalizedValue ) ; } | getter for normalizedValue - gets |
20,802 | public void setNormalizedValue ( float v ) { if ( Measure_Type . featOkTst && ( ( Measure_Type ) jcasType ) . casFeat_normalizedValue == null ) jcasType . jcas . throwFeatMissing ( "normalizedValue" , "ch.epfl.bbp.uima.types.Measure" ) ; jcasType . ll_cas . ll_setFloatValue ( addr , ( ( Measure_Type ) jcasType ) . casFeatCode_normalizedValue , v ) ; } | setter for normalizedValue - sets |
20,803 | public float getRangeStartValue ( ) { if ( Measure_Type . featOkTst && ( ( Measure_Type ) jcasType ) . casFeat_rangeStartValue == null ) jcasType . jcas . throwFeatMissing ( "rangeStartValue" , "ch.epfl.bbp.uima.types.Measure" ) ; return jcasType . ll_cas . ll_getFloatValue ( addr , ( ( Measure_Type ) jcasType ) . casFeatCode_rangeStartValue ) ; } | getter for rangeStartValue - gets |
20,804 | public void setRangeStartValue ( float v ) { if ( Measure_Type . featOkTst && ( ( Measure_Type ) jcasType ) . casFeat_rangeStartValue == null ) jcasType . jcas . throwFeatMissing ( "rangeStartValue" , "ch.epfl.bbp.uima.types.Measure" ) ; jcasType . ll_cas . ll_setFloatValue ( addr , ( ( Measure_Type ) jcasType ) . casFeatCode_rangeStartValue , v ) ; } | setter for rangeStartValue - sets |
20,805 | public float getRangeEndValue ( ) { if ( Measure_Type . featOkTst && ( ( Measure_Type ) jcasType ) . casFeat_rangeEndValue == null ) jcasType . jcas . throwFeatMissing ( "rangeEndValue" , "ch.epfl.bbp.uima.types.Measure" ) ; return jcasType . ll_cas . ll_getFloatValue ( addr , ( ( Measure_Type ) jcasType ) . casFeatCode_rangeEndValue ) ; } | getter for rangeEndValue - gets |
20,806 | public void setRangeEndValue ( float v ) { if ( Measure_Type . featOkTst && ( ( Measure_Type ) jcasType ) . casFeat_rangeEndValue == null ) jcasType . jcas . throwFeatMissing ( "rangeEndValue" , "ch.epfl.bbp.uima.types.Measure" ) ; jcasType . ll_cas . ll_setFloatValue ( addr , ( ( Measure_Type ) jcasType ) . casFeatCode_rangeEndValue , v ) ; } | setter for rangeEndValue - sets |
20,807 | public float getMeanValue ( ) { if ( Measure_Type . featOkTst && ( ( Measure_Type ) jcasType ) . casFeat_meanValue == null ) jcasType . jcas . throwFeatMissing ( "meanValue" , "ch.epfl.bbp.uima.types.Measure" ) ; return jcasType . ll_cas . ll_getFloatValue ( addr , ( ( Measure_Type ) jcasType ) . casFeatCode_meanValue ) ; } | getter for meanValue - gets |
20,808 | public void setMeanValue ( float v ) { if ( Measure_Type . featOkTst && ( ( Measure_Type ) jcasType ) . casFeat_meanValue == null ) jcasType . jcas . throwFeatMissing ( "meanValue" , "ch.epfl.bbp.uima.types.Measure" ) ; jcasType . ll_cas . ll_setFloatValue ( addr , ( ( Measure_Type ) jcasType ) . casFeatCode_meanValue , v ) ; } | setter for meanValue - sets |
20,809 | public float getStandardErrorValue ( ) { if ( Measure_Type . featOkTst && ( ( Measure_Type ) jcasType ) . casFeat_standardErrorValue == null ) jcasType . jcas . throwFeatMissing ( "standardErrorValue" , "ch.epfl.bbp.uima.types.Measure" ) ; return jcasType . ll_cas . ll_getFloatValue ( addr , ( ( Measure_Type ) jcasType ) . casFeatCode_standardErrorValue ) ; } | getter for standardErrorValue - gets |
20,810 | public void setStandardErrorValue ( float v ) { if ( Measure_Type . featOkTst && ( ( Measure_Type ) jcasType ) . casFeat_standardErrorValue == null ) jcasType . jcas . throwFeatMissing ( "standardErrorValue" , "ch.epfl.bbp.uima.types.Measure" ) ; jcasType . ll_cas . ll_setFloatValue ( addr , ( ( Measure_Type ) jcasType ) . casFeatCode_standardErrorValue , v ) ; } | setter for standardErrorValue - sets |
20,811 | public String getUnit ( ) { if ( Measure_Type . featOkTst && ( ( Measure_Type ) jcasType ) . casFeat_unit == null ) jcasType . jcas . throwFeatMissing ( "unit" , "ch.epfl.bbp.uima.types.Measure" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( Measure_Type ) jcasType ) . casFeatCode_unit ) ; } | getter for unit - gets iso |
20,812 | public void setUnit ( String v ) { if ( Measure_Type . featOkTst && ( ( Measure_Type ) jcasType ) . casFeat_unit == null ) jcasType . jcas . throwFeatMissing ( "unit" , "ch.epfl.bbp.uima.types.Measure" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( Measure_Type ) jcasType ) . casFeatCode_unit , v ) ; } | setter for unit - sets iso |
20,813 | public String getNormalizedUnit ( ) { if ( Measure_Type . featOkTst && ( ( Measure_Type ) jcasType ) . casFeat_normalizedUnit == null ) jcasType . jcas . throwFeatMissing ( "normalizedUnit" , "ch.epfl.bbp.uima.types.Measure" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( Measure_Type ) jcasType ) . casFeatCode_normalizedUnit ) ; } | getter for normalizedUnit - gets iso |
20,814 | public void setNormalizedUnit ( String v ) { if ( Measure_Type . featOkTst && ( ( Measure_Type ) jcasType ) . casFeat_normalizedUnit == null ) jcasType . jcas . throwFeatMissing ( "normalizedUnit" , "ch.epfl.bbp.uima.types.Measure" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( Measure_Type ) jcasType ) . casFeatCode_normalizedUnit , v ) ; } | setter for normalizedUnit - sets iso |
20,815 | public double getProbability ( int i ) { if ( TopicDistribution_Type . featOkTst && ( ( TopicDistribution_Type ) jcasType ) . casFeat_probability == null ) jcasType . jcas . throwFeatMissing ( "probability" , "ch.epfl.bbp.uima.types.TopicDistribution" ) ; jcasType . jcas . checkArrayBounds ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( TopicDistribution_Type ) jcasType ) . casFeatCode_probability ) , i ) ; return jcasType . ll_cas . ll_getDoubleArrayValue ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( TopicDistribution_Type ) jcasType ) . casFeatCode_probability ) , i ) ; } | indexed getter for probability - gets an indexed value - |
20,816 | public void setProbability ( int i , double v ) { if ( TopicDistribution_Type . featOkTst && ( ( TopicDistribution_Type ) jcasType ) . casFeat_probability == null ) jcasType . jcas . throwFeatMissing ( "probability" , "ch.epfl.bbp.uima.types.TopicDistribution" ) ; jcasType . jcas . checkArrayBounds ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( TopicDistribution_Type ) jcasType ) . casFeatCode_probability ) , i ) ; jcasType . ll_cas . ll_setDoubleArrayValue ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( TopicDistribution_Type ) jcasType ) . casFeatCode_probability ) , i , v ) ; } | indexed setter for probability - sets an indexed value - |
20,817 | public void load ( File file , boolean ids ) throws IOException , FileNotFoundException { LineNumberReader in = new LineNumberReader ( new FileReader ( file ) ) ; String line ; while ( ( line = in . readLine ( ) ) != null ) { if ( ids ) put ( Integer . toString ( in . getLineNumber ( ) ) , line , line ) ; else put ( line , line ) ; } in . close ( ) ; } | Insert all lines in a file as items mapping to themselves . If ids is true then make the line number of an item its id . |
20,818 | public void loadAliases ( File file ) throws IOException , FileNotFoundException { LineNumberReader in = new LineNumberReader ( new FileReader ( file ) ) ; String line ; while ( ( line = in . readLine ( ) ) != null ) { String [ ] parts = line . split ( "\\t" ) ; for ( int j = 1 ; j < parts . length ; j ++ ) { put ( parts [ j ] , parts [ j ] , parts [ 0 ] ) ; } } in . close ( ) ; } | Load a file of identifiers each of which has multiple aliases . Each line is a list of tab - separated strings the first of which is the identifier the remainder of which are aliases . |
20,819 | public void put ( String id , StringWrapper toInsert , Object value ) { MyWrapper wrapper = asMyWrapper ( toInsert ) ; Token [ ] tokens = wrapper . getTokens ( ) ; for ( int i = 0 ; i < tokens . length ; i ++ ) { ArrayList stringsWithToken = ( ArrayList ) index . get ( tokens [ i ] ) ; if ( stringsWithToken == null ) index . put ( tokens [ i ] , ( stringsWithToken = new ArrayList ( ) ) ) ; stringsWithToken . add ( wrapper ) ; } map . put ( wrapper , value ) ; if ( id != null ) idMap . put ( wrapper , id ) ; distance = null ; totalEntries ++ ; } | Insert a prepared string into the dictionary . |
20,820 | private void doLookup ( String id , StringWrapper toFind ) { if ( distance == null ) { distance = new MyTeacher ( ) . train ( distanceLearner ) ; } if ( lastLookup == toFind ) return ; closeMatches = new HashSet ( ) ; closestMatch = null ; distanceToClosestMatch = - Double . MAX_VALUE ; MyWrapper wrapper = asMyWrapper ( toFind ) ; Token [ ] tokens = wrapper . getTokens ( ) ; for ( int i = 0 ; i < tokens . length ; i ++ ) { ArrayList stringsWithToken = ( ArrayList ) index . get ( tokens [ i ] ) ; if ( stringsWithToken != null && ( ( double ) stringsWithToken . size ( ) / totalEntries ) < maxFraction ) { for ( Iterator j = stringsWithToken . iterator ( ) ; j . hasNext ( ) ; ) { MyWrapper wj = ( MyWrapper ) j . next ( ) ; String wjId = ( String ) idMap . get ( wj ) ; if ( ! closeMatches . contains ( wj ) && ( wjId == null || ! wjId . equals ( id ) ) ) { double score = distance . score ( wrapper . getDistanceWrapper ( ) , wj . getDistanceWrapper ( ) ) ; if ( DEBUG ) System . out . println ( "score for " + wj + ": " + score ) ; closeMatches . add ( wj ) ; if ( score >= distanceToClosestMatch ) { distanceToClosestMatch = score ; closestMatch = wj ; } } } } } lastLookup = toFind ; } | Lookup a string in the dictionary cache result in closeMatches . |
20,821 | public Object lookup ( String id , String toFind ) { return lookup ( id , new MyWrapper ( toFind ) ) ; } | Lookup a string in the dictionary . |
20,822 | public Object lookup ( String id , StringWrapper toFind ) { doLookup ( id , toFind ) ; return closestMatch ; } | Lookup a prepared string in the dictionary . |
20,823 | private MyWrapper asMyWrapper ( StringWrapper w ) { if ( w instanceof MyWrapper ) return ( MyWrapper ) w ; else return new MyWrapper ( w . unwrap ( ) ) ; } | lazily convert to a MyWrapper |
20,824 | static public void main ( String [ ] argv ) throws IOException , FileNotFoundException { SoftDictionary m = new SoftDictionary ( ) ; System . out . println ( "loading..." ) ; m . loadAliases ( new File ( argv [ 0 ] ) ) ; System . out . println ( "loaded..." ) ; for ( int i = 1 ; i < argv . length ; i ++ ) { System . out . println ( "lookup: " + argv [ i ] ) ; String [ ] f = argv [ i ] . split ( ":" ) ; if ( f . length == 1 ) { System . out . println ( argv [ i ] + " => " + m . lookup ( argv [ i ] ) + " at " + m . lookupDistance ( argv [ i ] ) ) ; } else { System . out . println ( f [ 1 ] + " => " + m . lookup ( f [ 0 ] , f [ 1 ] ) + " at " + m . lookupDistance ( f [ 0 ] , f [ 1 ] ) ) ; } } } | Simple main for testing . |
20,825 | public int getId ( ) { if ( Coref_Type . featOkTst && ( ( Coref_Type ) jcasType ) . casFeat_id == null ) jcasType . jcas . throwFeatMissing ( "id" , "de.julielab.jules.types.muc7.Coref" ) ; return jcasType . ll_cas . ll_getIntValue ( addr , ( ( Coref_Type ) jcasType ) . casFeatCode_id ) ; } | getter for id - gets |
20,826 | public void setId ( int v ) { if ( Coref_Type . featOkTst && ( ( Coref_Type ) jcasType ) . casFeat_id == null ) jcasType . jcas . throwFeatMissing ( "id" , "de.julielab.jules.types.muc7.Coref" ) ; jcasType . ll_cas . ll_setIntValue ( addr , ( ( Coref_Type ) jcasType ) . casFeatCode_id , v ) ; } | setter for id - sets |
20,827 | public String getCorefType ( ) { if ( Coref_Type . featOkTst && ( ( Coref_Type ) jcasType ) . casFeat_corefType == null ) jcasType . jcas . throwFeatMissing ( "corefType" , "de.julielab.jules.types.muc7.Coref" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( Coref_Type ) jcasType ) . casFeatCode_corefType ) ; } | getter for corefType - gets |
20,828 | public void setCorefType ( String v ) { if ( Coref_Type . featOkTst && ( ( Coref_Type ) jcasType ) . casFeat_corefType == null ) jcasType . jcas . throwFeatMissing ( "corefType" , "de.julielab.jules.types.muc7.Coref" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( Coref_Type ) jcasType ) . casFeatCode_corefType , v ) ; } | setter for corefType - sets |
20,829 | public Coref getRef ( ) { if ( Coref_Type . featOkTst && ( ( Coref_Type ) jcasType ) . casFeat_ref == null ) jcasType . jcas . throwFeatMissing ( "ref" , "de.julielab.jules.types.muc7.Coref" ) ; return ( Coref ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( Coref_Type ) jcasType ) . casFeatCode_ref ) ) ) ; } | getter for ref - gets |
20,830 | public void setRef ( Coref v ) { if ( Coref_Type . featOkTst && ( ( Coref_Type ) jcasType ) . casFeat_ref == null ) jcasType . jcas . throwFeatMissing ( "ref" , "de.julielab.jules.types.muc7.Coref" ) ; jcasType . ll_cas . ll_setRefValue ( addr , ( ( Coref_Type ) jcasType ) . casFeatCode_ref , jcasType . ll_cas . ll_getFSRef ( v ) ) ; } | setter for ref - sets |
20,831 | public Annotation getRef ( ) { if ( ArgumentMention_Type . featOkTst && ( ( ArgumentMention_Type ) jcasType ) . casFeat_ref == null ) jcasType . jcas . throwFeatMissing ( "ref" , "de.julielab.jules.types.ArgumentMention" ) ; return ( Annotation ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( ArgumentMention_Type ) jcasType ) . casFeatCode_ref ) ) ) ; } | getter for ref - gets Reference to the Annotation Object that acts as a argument here |
20,832 | public void setRef ( Annotation v ) { if ( ArgumentMention_Type . featOkTst && ( ( ArgumentMention_Type ) jcasType ) . casFeat_ref == null ) jcasType . jcas . throwFeatMissing ( "ref" , "de.julielab.jules.types.ArgumentMention" ) ; jcasType . ll_cas . ll_setRefValue ( addr , ( ( ArgumentMention_Type ) jcasType ) . casFeatCode_ref , jcasType . ll_cas . ll_getFSRef ( v ) ) ; } | setter for ref - sets Reference to the Annotation Object that acts as a argument here |
20,833 | public void setRole ( String v ) { if ( ArgumentMention_Type . featOkTst && ( ( ArgumentMention_Type ) jcasType ) . casFeat_role == null ) jcasType . jcas . throwFeatMissing ( "role" , "de.julielab.jules.types.ArgumentMention" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( ArgumentMention_Type ) jcasType ) . casFeatCode_role , v ) ; } | setter for role - sets the role of the argument |
20,834 | public String [ ] getTags ( String word ) { if ( caseSensitive ) { return ( String [ ] ) dictionary . get ( word ) ; } else { return ( String [ ] ) dictionary . get ( word . toLowerCase ( ) ) ; } } | Returns a list of valid tags for the specified word . |
20,835 | public Annotation getDomain ( ) { if ( OntRelationMention_Type . featOkTst && ( ( OntRelationMention_Type ) jcasType ) . casFeat_domain == null ) jcasType . jcas . throwFeatMissing ( "domain" , "de.julielab.jules.types.OntRelationMention" ) ; return ( Annotation ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( OntRelationMention_Type ) jcasType ) . casFeatCode_domain ) ) ) ; } | getter for domain - gets |
20,836 | public void setDomain ( Annotation v ) { if ( OntRelationMention_Type . featOkTst && ( ( OntRelationMention_Type ) jcasType ) . casFeat_domain == null ) jcasType . jcas . throwFeatMissing ( "domain" , "de.julielab.jules.types.OntRelationMention" ) ; jcasType . ll_cas . ll_setRefValue ( addr , ( ( OntRelationMention_Type ) jcasType ) . casFeatCode_domain , jcasType . ll_cas . ll_getFSRef ( v ) ) ; } | setter for domain - sets |
20,837 | public Annotation getRange ( ) { if ( OntRelationMention_Type . featOkTst && ( ( OntRelationMention_Type ) jcasType ) . casFeat_range == null ) jcasType . jcas . throwFeatMissing ( "range" , "de.julielab.jules.types.OntRelationMention" ) ; return ( Annotation ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( OntRelationMention_Type ) jcasType ) . casFeatCode_range ) ) ) ; } | getter for range - gets |
20,838 | public void setRange ( Annotation v ) { if ( OntRelationMention_Type . featOkTst && ( ( OntRelationMention_Type ) jcasType ) . casFeat_range == null ) jcasType . jcas . throwFeatMissing ( "range" , "de.julielab.jules.types.OntRelationMention" ) ; jcasType . ll_cas . ll_setRefValue ( addr , ( ( OntRelationMention_Type ) jcasType ) . casFeatCode_range , jcasType . ll_cas . ll_getFSRef ( v ) ) ; } | setter for range - sets |
20,839 | public FSArray getDomainList ( ) { if ( OntRelationMention_Type . featOkTst && ( ( OntRelationMention_Type ) jcasType ) . casFeat_domainList == null ) jcasType . jcas . throwFeatMissing ( "domainList" , "de.julielab.jules.types.OntRelationMention" ) ; return ( FSArray ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( OntRelationMention_Type ) jcasType ) . casFeatCode_domainList ) ) ) ; } | getter for domainList - gets |
20,840 | public void setDomainList ( FSArray v ) { if ( OntRelationMention_Type . featOkTst && ( ( OntRelationMention_Type ) jcasType ) . casFeat_domainList == null ) jcasType . jcas . throwFeatMissing ( "domainList" , "de.julielab.jules.types.OntRelationMention" ) ; jcasType . ll_cas . ll_setRefValue ( addr , ( ( OntRelationMention_Type ) jcasType ) . casFeatCode_domainList , jcasType . ll_cas . ll_getFSRef ( v ) ) ; } | setter for domainList - sets |
20,841 | public Annotation getDomainList ( int i ) { if ( OntRelationMention_Type . featOkTst && ( ( OntRelationMention_Type ) jcasType ) . casFeat_domainList == null ) jcasType . jcas . throwFeatMissing ( "domainList" , "de.julielab.jules.types.OntRelationMention" ) ; jcasType . jcas . checkArrayBounds ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( OntRelationMention_Type ) jcasType ) . casFeatCode_domainList ) , i ) ; return ( Annotation ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getRefArrayValue ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( OntRelationMention_Type ) jcasType ) . casFeatCode_domainList ) , i ) ) ) ; } | indexed getter for domainList - gets an indexed value - |
20,842 | public void setDomainList ( int i , Annotation v ) { if ( OntRelationMention_Type . featOkTst && ( ( OntRelationMention_Type ) jcasType ) . casFeat_domainList == null ) jcasType . jcas . throwFeatMissing ( "domainList" , "de.julielab.jules.types.OntRelationMention" ) ; jcasType . jcas . checkArrayBounds ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( OntRelationMention_Type ) jcasType ) . casFeatCode_domainList ) , i ) ; jcasType . ll_cas . ll_setRefArrayValue ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( OntRelationMention_Type ) jcasType ) . casFeatCode_domainList ) , i , jcasType . ll_cas . ll_getFSRef ( v ) ) ; } | indexed setter for domainList - sets an indexed value - |
20,843 | public FSArray getRangeList ( ) { if ( OntRelationMention_Type . featOkTst && ( ( OntRelationMention_Type ) jcasType ) . casFeat_rangeList == null ) jcasType . jcas . throwFeatMissing ( "rangeList" , "de.julielab.jules.types.OntRelationMention" ) ; return ( FSArray ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( OntRelationMention_Type ) jcasType ) . casFeatCode_rangeList ) ) ) ; } | getter for rangeList - gets |
20,844 | public void setRangeList ( FSArray v ) { if ( OntRelationMention_Type . featOkTst && ( ( OntRelationMention_Type ) jcasType ) . casFeat_rangeList == null ) jcasType . jcas . throwFeatMissing ( "rangeList" , "de.julielab.jules.types.OntRelationMention" ) ; jcasType . ll_cas . ll_setRefValue ( addr , ( ( OntRelationMention_Type ) jcasType ) . casFeatCode_rangeList , jcasType . ll_cas . ll_getFSRef ( v ) ) ; } | setter for rangeList - sets |
20,845 | public Annotation getRangeList ( int i ) { if ( OntRelationMention_Type . featOkTst && ( ( OntRelationMention_Type ) jcasType ) . casFeat_rangeList == null ) jcasType . jcas . throwFeatMissing ( "rangeList" , "de.julielab.jules.types.OntRelationMention" ) ; jcasType . jcas . checkArrayBounds ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( OntRelationMention_Type ) jcasType ) . casFeatCode_rangeList ) , i ) ; return ( Annotation ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getRefArrayValue ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( OntRelationMention_Type ) jcasType ) . casFeatCode_rangeList ) , i ) ) ) ; } | indexed getter for rangeList - gets an indexed value - |
20,846 | public void setRangeList ( int i , Annotation v ) { if ( OntRelationMention_Type . featOkTst && ( ( OntRelationMention_Type ) jcasType ) . casFeat_rangeList == null ) jcasType . jcas . throwFeatMissing ( "rangeList" , "de.julielab.jules.types.OntRelationMention" ) ; jcasType . jcas . checkArrayBounds ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( OntRelationMention_Type ) jcasType ) . casFeatCode_rangeList ) , i ) ; jcasType . ll_cas . ll_setRefArrayValue ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( OntRelationMention_Type ) jcasType ) . casFeatCode_rangeList ) , i , jcasType . ll_cas . ll_getFSRef ( v ) ) ; } | indexed setter for rangeList - sets an indexed value - |
20,847 | public String getOntRelationId ( ) { if ( OntRelationMention_Type . featOkTst && ( ( OntRelationMention_Type ) jcasType ) . casFeat_ontRelationId == null ) jcasType . jcas . throwFeatMissing ( "ontRelationId" , "de.julielab.jules.types.OntRelationMention" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( OntRelationMention_Type ) jcasType ) . casFeatCode_ontRelationId ) ; } | getter for ontRelationId - gets ID of the ontology relation the relation mention refers to . |
20,848 | public void setOntRelationId ( String v ) { if ( OntRelationMention_Type . featOkTst && ( ( OntRelationMention_Type ) jcasType ) . casFeat_ontRelationId == null ) jcasType . jcas . throwFeatMissing ( "ontRelationId" , "de.julielab.jules.types.OntRelationMention" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( OntRelationMention_Type ) jcasType ) . casFeatCode_ontRelationId , v ) ; } | setter for ontRelationId - sets ID of the ontology relation the relation mention refers to . |
20,849 | public String getSourceOntology ( ) { if ( OntRelationMention_Type . featOkTst && ( ( OntRelationMention_Type ) jcasType ) . casFeat_sourceOntology == null ) jcasType . jcas . throwFeatMissing ( "sourceOntology" , "de.julielab.jules.types.OntRelationMention" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( OntRelationMention_Type ) jcasType ) . casFeatCode_sourceOntology ) ; } | getter for sourceOntology - gets Ontology defining the relation to which the relation mention refers to . |
20,850 | public void setSourceOntology ( String v ) { if ( OntRelationMention_Type . featOkTst && ( ( OntRelationMention_Type ) jcasType ) . casFeat_sourceOntology == null ) jcasType . jcas . throwFeatMissing ( "sourceOntology" , "de.julielab.jules.types.OntRelationMention" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( OntRelationMention_Type ) jcasType ) . casFeatCode_sourceOntology , v ) ; } | setter for sourceOntology - sets Ontology defining the relation to which the relation mention refers to . |
20,851 | protected static String sniffContentType ( InputStream inputStream ) throws IOException { if ( inputStream == null ) return null ; byte [ ] bytes = new byte [ 8 ] ; inputStream . read ( bytes ) ; String [ ] hex = new String [ 8 ] ; String hexString = "" ; for ( int i = 0 ; i < 8 ; i ++ ) { hex [ i ] = getHexValue ( bytes [ i ] ) ; hexString += hex [ i ] + " " ; } String prefix = new String ( bytes ) ; if ( prefix . startsWith ( "GIF87" ) || prefix . startsWith ( "GIF89" ) ) return "image/gif" ; if ( hex [ 0 ] . equals ( "ff" ) && hex [ 1 ] . equals ( "d8" ) ) return "image/jpeg" ; if ( hex [ 0 ] . equals ( "42" ) && hex [ 1 ] . equals ( "4d" ) ) return "image/bmp" ; if ( hex [ 0 ] . equals ( "00" ) && hex [ 1 ] . equals ( "00" ) && hex [ 2 ] . equals ( "01" ) && hex [ 3 ] . equals ( "00" ) ) return "image/vnd.microsoft.icon" ; if ( hexString . trim ( ) . equals ( "89 50 4e 47 0d 0a 1a 0a" ) ) return "image/png" ; return null ; } | Sniffs the content type for images and other common types |
20,852 | public java . util . List < Object > getDefListOrListOrNotes ( ) { if ( defListOrListOrNotes == null ) { defListOrListOrNotes = new ArrayList < Object > ( ) ; } return this . defListOrListOrNotes ; } | Gets the value of the defListOrListOrNotes property . |
20,853 | public List < java . lang . Object > getMonthOrDayOrSeason ( ) { if ( monthOrDayOrSeason == null ) { monthOrDayOrSeason = new ArrayList < java . lang . Object > ( ) ; } return this . monthOrDayOrSeason ; } | Gets the value of the monthOrDayOrSeason property . |
20,854 | public String getObjectType ( ) { if ( TextObject_Type . featOkTst && ( ( TextObject_Type ) jcasType ) . casFeat_objectType == null ) jcasType . jcas . throwFeatMissing ( "objectType" , "de.julielab.jules.types.TextObject" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( TextObject_Type ) jcasType ) . casFeatCode_objectType ) ; } | getter for objectType - gets such as figure table boxed - text etc . |
20,855 | public void setObjectType ( String v ) { if ( TextObject_Type . featOkTst && ( ( TextObject_Type ) jcasType ) . casFeat_objectType == null ) jcasType . jcas . throwFeatMissing ( "objectType" , "de.julielab.jules.types.TextObject" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( TextObject_Type ) jcasType ) . casFeatCode_objectType , v ) ; } | setter for objectType - sets such as figure table boxed - text etc . |
20,856 | public String getObjectId ( ) { if ( TextObject_Type . featOkTst && ( ( TextObject_Type ) jcasType ) . casFeat_objectId == null ) jcasType . jcas . throwFeatMissing ( "objectId" , "de.julielab.jules.types.TextObject" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( TextObject_Type ) jcasType ) . casFeatCode_objectId ) ; } | getter for objectId - gets the id of the object as found in the text |
20,857 | public void setObjectId ( String v ) { if ( TextObject_Type . featOkTst && ( ( TextObject_Type ) jcasType ) . casFeat_objectId == null ) jcasType . jcas . throwFeatMissing ( "objectId" , "de.julielab.jules.types.TextObject" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( TextObject_Type ) jcasType ) . casFeatCode_objectId , v ) ; } | setter for objectId - sets the id of the object as found in the text |
20,858 | public String getObjectLabel ( ) { if ( TextObject_Type . featOkTst && ( ( TextObject_Type ) jcasType ) . casFeat_objectLabel == null ) jcasType . jcas . throwFeatMissing ( "objectLabel" , "de.julielab.jules.types.TextObject" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( TextObject_Type ) jcasType ) . casFeatCode_objectLabel ) ; } | getter for objectLabel - gets the label of an object |
20,859 | public void setObjectLabel ( String v ) { if ( TextObject_Type . featOkTst && ( ( TextObject_Type ) jcasType ) . casFeat_objectLabel == null ) jcasType . jcas . throwFeatMissing ( "objectLabel" , "de.julielab.jules.types.TextObject" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( TextObject_Type ) jcasType ) . casFeatCode_objectLabel , v ) ; } | setter for objectLabel - sets the label of an object |
20,860 | public Caption getObjectCaption ( ) { if ( TextObject_Type . featOkTst && ( ( TextObject_Type ) jcasType ) . casFeat_objectCaption == null ) jcasType . jcas . throwFeatMissing ( "objectCaption" , "de.julielab.jules.types.TextObject" ) ; return ( Caption ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( TextObject_Type ) jcasType ) . casFeatCode_objectCaption ) ) ) ; } | getter for objectCaption - gets the caption that comes with the object |
20,861 | public void setObjectCaption ( Caption v ) { if ( TextObject_Type . featOkTst && ( ( TextObject_Type ) jcasType ) . casFeat_objectCaption == null ) jcasType . jcas . throwFeatMissing ( "objectCaption" , "de.julielab.jules.types.TextObject" ) ; jcasType . ll_cas . ll_setRefValue ( addr , ( ( TextObject_Type ) jcasType ) . casFeatCode_objectCaption , jcasType . ll_cas . ll_getFSRef ( v ) ) ; } | setter for objectCaption - sets the caption that comes with the object |
20,862 | public String getAce_role ( ) { if ( Annotation_Type . featOkTst && ( ( Annotation_Type ) jcasType ) . casFeat_ace_role == null ) jcasType . jcas . throwFeatMissing ( "ace_role" , "de.julielab.jules.types.ace.Annotation" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( Annotation_Type ) jcasType ) . casFeatCode_ace_role ) ; } | getter for ace_role - gets |
20,863 | public void setAce_role ( String v ) { if ( Annotation_Type . featOkTst && ( ( Annotation_Type ) jcasType ) . casFeat_ace_role == null ) jcasType . jcas . throwFeatMissing ( "ace_role" , "de.julielab.jules.types.ace.Annotation" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( Annotation_Type ) jcasType ) . casFeatCode_ace_role , v ) ; } | setter for ace_role - sets |
20,864 | public String [ ] sentDetect ( String s ) { int [ ] starts = sentPosDetect ( s ) ; if ( starts . length == 0 ) { return new String [ ] { s } ; } boolean leftover = starts [ starts . length - 1 ] != s . length ( ) ; String [ ] sents = new String [ leftover ? starts . length + 1 : starts . length ] ; sents [ 0 ] = s . substring ( 0 , starts [ 0 ] ) ; for ( int si = 1 ; si < starts . length ; si ++ ) { sents [ si ] = s . substring ( starts [ si - 1 ] , starts [ si ] ) ; } if ( leftover ) { sents [ sents . length - 1 ] = s . substring ( starts [ starts . length - 1 ] ) ; } return ( sents ) ; } | Detect sentences in a String . |
20,865 | public int [ ] sentPosDetect ( String s ) { double sentProb = 1 ; sentProbs . clear ( ) ; StringBuffer sb = new StringBuffer ( s ) ; List enders = scanner . getPositions ( s ) ; List positions = new ArrayList ( enders . size ( ) ) ; for ( int i = 0 , end = enders . size ( ) , index = 0 ; i < end ; i ++ ) { Integer candidate = ( Integer ) enders . get ( i ) ; int cint = candidate . intValue ( ) ; int fws = getFirstWS ( s , cint + 1 ) ; if ( ( ( i + 1 ) < end ) && ( ( ( Integer ) enders . get ( i + 1 ) ) . intValue ( ) < fws ) ) { continue ; } Pair pair = new Pair ( sb , candidate ) ; double [ ] probs = model . eval ( cgen . getContext ( pair ) ) ; String bestOutcome = model . getBestOutcome ( probs ) ; sentProb *= probs [ model . getIndex ( bestOutcome ) ] ; if ( bestOutcome . equals ( "T" ) && isAcceptableBreak ( s , index , cint ) ) { if ( index != cint ) { positions . add ( INT_POOL . get ( getFirstNonWS ( s , getFirstWS ( s , cint + 1 ) ) ) ) ; sentProbs . add ( new Double ( probs [ model . getIndex ( bestOutcome ) ] ) ) ; } index = cint + 1 ; } } int [ ] sentPositions = new int [ positions . size ( ) ] ; for ( int i = 0 ; i < sentPositions . length ; i ++ ) { sentPositions [ i ] = ( ( Integer ) positions . get ( i ) ) . intValue ( ) ; } return sentPositions ; } | Detect the position of the first words of sentences in a String . |
20,866 | public static GISModel train ( File inFile , int iterations , int cut , EndOfSentenceScanner scanner ) throws IOException { EventStream es ; DataStream ds ; Reader reader ; reader = new BufferedReader ( new FileReader ( inFile ) ) ; ds = new PlainTextByLineDataStream ( reader ) ; es = new SDEventStream ( ds , scanner ) ; return GIS . trainModel ( es , iterations , cut ) ; } | Use this training method if you wish to supply an end of sentence scanner which provides a different set of ending chars other than the default ones . They are \\ . |!| \\ ?| \\\ | \\ ) . |
20,867 | private void calculateKernelMatrix ( ExampleSet set , ZipModel model ) throws Exception { File matrixFile = File . createTempFile ( "kernel-matrix" , null ) ; matrixFile . deleteOnExit ( ) ; PrintWriter pw = new PrintWriter ( new FileWriter ( matrixFile ) ) ; DecimalFormat decFormatter = new DecimalFormat ( "0.0" ) ; logger . info ( "calculate kernel matrix" ) ; logger . debug ( "data set size " + set . size ( ) ) ; int size = set . size ( ) ; pw . println ( size + " " + size ) ; for ( int i = 0 ; i < size ; i ++ ) { Vector v1 = ( Vector ) set . x ( i ) ; for ( int j = 0 ; j < size ; j ++ ) { Vector v2 = ( Vector ) set . x ( j ) ; double dot = v1 . dotProduct ( v2 ) ; pw . print ( dot + " " ) ; } pw . print ( "\n" ) ; pw . flush ( ) ; } pw . close ( ) ; model . add ( matrixFile , "kernel-matrix" ) ; } | calculate kernel matrix |
20,868 | public List < java . lang . Object > getPaginationOrELocationID ( ) { if ( paginationOrELocationID == null ) { paginationOrELocationID = new ArrayList < java . lang . Object > ( ) ; } return this . paginationOrELocationID ; } | Gets the value of the paginationOrELocationID property . |
20,869 | public static float subsumes ( String haystack , final String needle ) { if ( needle == null || needle . length ( ) < 0 || haystack == null || haystack . length ( ) < 0 ) return 0f ; try { RAMDirectory idx = new RAMDirectory ( ) ; IndexWriterConfig iwc = new IndexWriterConfig ( LUCENE_41 , anal ) ; IndexWriter writer = new IndexWriter ( idx , iwc ) ; Document doc = new Document ( ) ; doc . add ( new TextField ( CONTENT_FIELD , haystack , Store . YES ) ) ; writer . addDocument ( doc ) ; writer . close ( ) ; IndexReader reader = open ( idx ) ; Query query = parser . parse ( getNGram ( needle , 3 ) ) ; TopDocs results = new IndexSearcher ( reader ) . search ( query , 1 ) ; float score = 0 ; for ( ScoreDoc hit : results . scoreDocs ) { score += hit . score ; } reader . close ( ) ; idx . close ( ) ; return score ; } catch ( Exception e ) { LOG . warn ( "could not computeSimilarity for " + needle , e ) ; } return 0f ; } | depends on document size but > 0 . 01 should be a good threshold |
20,870 | public String getPhysicalContact ( ) { if ( RegulationOfGeneExpression_Type . featOkTst && ( ( RegulationOfGeneExpression_Type ) jcasType ) . casFeat_physicalContact == null ) jcasType . jcas . throwFeatMissing ( "physicalContact" , "de.julielab.jules.types.bootstrep.RegulationOfGeneExpression" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( RegulationOfGeneExpression_Type ) jcasType ) . casFeatCode_physicalContact ) ; } | getter for physicalContact - gets yes no unknown |
20,871 | public void setPhysicalContact ( String v ) { if ( RegulationOfGeneExpression_Type . featOkTst && ( ( RegulationOfGeneExpression_Type ) jcasType ) . casFeat_physicalContact == null ) jcasType . jcas . throwFeatMissing ( "physicalContact" , "de.julielab.jules.types.bootstrep.RegulationOfGeneExpression" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( RegulationOfGeneExpression_Type ) jcasType ) . casFeatCode_physicalContact , v ) ; } | setter for physicalContact - sets yes no unknown |
20,872 | public java . util . List < Object > getDispQuoteOrSpeechOrStatement ( ) { if ( dispQuoteOrSpeechOrStatement == null ) { dispQuoteOrSpeechOrStatement = new ArrayList < Object > ( ) ; } return this . dispQuoteOrSpeechOrStatement ; } | Gets the value of the dispQuoteOrSpeechOrStatement property . |
20,873 | public java . util . List < Object > getTableWrapFootOrAttribOrPermissions ( ) { if ( tableWrapFootOrAttribOrPermissions == null ) { tableWrapFootOrAttribOrPermissions = new ArrayList < Object > ( ) ; } return this . tableWrapFootOrAttribOrPermissions ; } | Gets the value of the tableWrapFootOrAttribOrPermissions property . |
20,874 | public StringArray getCategories ( ) { if ( GOMention_Type . featOkTst && ( ( GOMention_Type ) jcasType ) . casFeat_categories == null ) jcasType . jcas . throwFeatMissing ( "categories" , "de.julielab.jules.types.GOMention" ) ; return ( StringArray ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( GOMention_Type ) jcasType ) . casFeatCode_categories ) ) ) ; } | getter for categories - gets created for the shared task here we add the group |
20,875 | public void setCategories ( StringArray v ) { if ( GOMention_Type . featOkTst && ( ( GOMention_Type ) jcasType ) . casFeat_categories == null ) jcasType . jcas . throwFeatMissing ( "categories" , "de.julielab.jules.types.GOMention" ) ; jcasType . ll_cas . ll_setRefValue ( addr , ( ( GOMention_Type ) jcasType ) . casFeatCode_categories , jcasType . ll_cas . ll_getFSRef ( v ) ) ; } | setter for categories - sets created for the shared task here we add the group |
20,876 | public String getCategories ( int i ) { if ( GOMention_Type . featOkTst && ( ( GOMention_Type ) jcasType ) . casFeat_categories == null ) jcasType . jcas . throwFeatMissing ( "categories" , "de.julielab.jules.types.GOMention" ) ; jcasType . jcas . checkArrayBounds ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( GOMention_Type ) jcasType ) . casFeatCode_categories ) , i ) ; return jcasType . ll_cas . ll_getStringArrayValue ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( GOMention_Type ) jcasType ) . casFeatCode_categories ) , i ) ; } | indexed getter for categories - gets an indexed value - created for the shared task here we add the group |
20,877 | public void setCategories ( int i , String v ) { if ( GOMention_Type . featOkTst && ( ( GOMention_Type ) jcasType ) . casFeat_categories == null ) jcasType . jcas . throwFeatMissing ( "categories" , "de.julielab.jules.types.GOMention" ) ; jcasType . jcas . checkArrayBounds ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( GOMention_Type ) jcasType ) . casFeatCode_categories ) , i ) ; jcasType . ll_cas . ll_setStringArrayValue ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( GOMention_Type ) jcasType ) . casFeatCode_categories ) , i , v ) ; } | indexed setter for categories - sets an indexed value - created for the shared task here we add the group |
20,878 | public String getGoID ( ) { if ( GOMention_Type . featOkTst && ( ( GOMention_Type ) jcasType ) . casFeat_goID == null ) jcasType . jcas . throwFeatMissing ( "goID" , "de.julielab.jules.types.GOMention" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( GOMention_Type ) jcasType ) . casFeatCode_goID ) ; } | getter for goID - gets |
20,879 | public void setGoID ( String v ) { if ( GOMention_Type . featOkTst && ( ( GOMention_Type ) jcasType ) . casFeat_goID == null ) jcasType . jcas . throwFeatMissing ( "goID" , "de.julielab.jules.types.GOMention" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( GOMention_Type ) jcasType ) . casFeatCode_goID , v ) ; } | setter for goID - sets |
20,880 | public java . util . List < Object > getPOrDefListOrList ( ) { if ( pOrDefListOrList == null ) { pOrDefListOrList = new ArrayList < Object > ( ) ; } return this . pOrDefListOrList ; } | Gets the value of the pOrDefListOrList property . |
20,881 | public Parse parse ( Parse tokens ) { Parse p = parse ( tokens , 1 ) [ 0 ] ; setParents ( p ) ; return p ; } | Returns a parse for the specified parse of tokens . |
20,882 | private int mapParseIndex ( int index , Parse [ ] nonPunctParses , Parse [ ] parses ) { int parseIndex = index ; while ( parses [ parseIndex ] != nonPunctParses [ index ] ) { parseIndex ++ ; } return parseIndex ; } | Determines the mapping between the specified index into the specified parses without punctuation to the coresponding index into the specified parses . |
20,883 | public static Parse [ ] collapsePunctuation ( Parse [ ] chunks , Set punctSet ) { List collapsedParses = new ArrayList ( chunks . length ) ; int lastNonPunct = - 1 ; int nextNonPunct = - 1 ; for ( int ci = 0 , cn = chunks . length ; ci < cn ; ci ++ ) { if ( punctSet . contains ( chunks [ ci ] . getType ( ) ) ) { if ( lastNonPunct >= 0 ) { chunks [ lastNonPunct ] . addNextPunctuation ( chunks [ ci ] ) ; } for ( nextNonPunct = ci + 1 ; nextNonPunct < cn ; nextNonPunct ++ ) { if ( ! punctSet . contains ( chunks [ nextNonPunct ] . getType ( ) ) ) { break ; } } if ( nextNonPunct < cn ) { chunks [ nextNonPunct ] . addPreviousPunctuation ( chunks [ ci ] ) ; } } else { collapsedParses . add ( chunks [ ci ] ) ; lastNonPunct = ci ; } } if ( collapsedParses . size ( ) == chunks . length ) { return chunks ; } return ( Parse [ ] ) collapsedParses . toArray ( new Parse [ collapsedParses . size ( ) ] ) ; } | Removes the punctuation from the specified set of chunks adds it to the parses adjacent to the punctuation is specified and returns a new array of parses with the punctuation removed . |
20,884 | public int getTableId ( ) { if ( DataTable_Type . featOkTst && ( ( DataTable_Type ) jcasType ) . casFeat_tableId == null ) jcasType . jcas . throwFeatMissing ( "tableId" , "ch.epfl.bbp.uima.types.DataTable" ) ; return jcasType . ll_cas . ll_getIntValue ( addr , ( ( DataTable_Type ) jcasType ) . casFeatCode_tableId ) ; } | getter for tableId - gets the id of this table in the document |
20,885 | public void setTableId ( int v ) { if ( DataTable_Type . featOkTst && ( ( DataTable_Type ) jcasType ) . casFeat_tableId == null ) jcasType . jcas . throwFeatMissing ( "tableId" , "ch.epfl.bbp.uima.types.DataTable" ) ; jcasType . ll_cas . ll_setIntValue ( addr , ( ( DataTable_Type ) jcasType ) . casFeatCode_tableId , v ) ; } | setter for tableId - sets the id of this table in the document |
20,886 | public int getRowCount ( ) { if ( DataTable_Type . featOkTst && ( ( DataTable_Type ) jcasType ) . casFeat_rowCount == null ) jcasType . jcas . throwFeatMissing ( "rowCount" , "ch.epfl.bbp.uima.types.DataTable" ) ; return jcasType . ll_cas . ll_getIntValue ( addr , ( ( DataTable_Type ) jcasType ) . casFeatCode_rowCount ) ; } | getter for rowCount - gets the nr of rows |
20,887 | public void setRowCount ( int v ) { if ( DataTable_Type . featOkTst && ( ( DataTable_Type ) jcasType ) . casFeat_rowCount == null ) jcasType . jcas . throwFeatMissing ( "rowCount" , "ch.epfl.bbp.uima.types.DataTable" ) ; jcasType . ll_cas . ll_setIntValue ( addr , ( ( DataTable_Type ) jcasType ) . casFeatCode_rowCount , v ) ; } | setter for rowCount - sets the nr of rows |
20,888 | public int getColumnCount ( ) { if ( DataTable_Type . featOkTst && ( ( DataTable_Type ) jcasType ) . casFeat_columnCount == null ) jcasType . jcas . throwFeatMissing ( "columnCount" , "ch.epfl.bbp.uima.types.DataTable" ) ; return jcasType . ll_cas . ll_getIntValue ( addr , ( ( DataTable_Type ) jcasType ) . casFeatCode_columnCount ) ; } | getter for columnCount - gets |
20,889 | public void setColumnCount ( int v ) { if ( DataTable_Type . featOkTst && ( ( DataTable_Type ) jcasType ) . casFeat_columnCount == null ) jcasType . jcas . throwFeatMissing ( "columnCount" , "ch.epfl.bbp.uima.types.DataTable" ) ; jcasType . ll_cas . ll_setIntValue ( addr , ( ( DataTable_Type ) jcasType ) . casFeatCode_columnCount , v ) ; } | setter for columnCount - sets |
20,890 | public String getCaption ( ) { if ( DataTable_Type . featOkTst && ( ( DataTable_Type ) jcasType ) . casFeat_caption == null ) jcasType . jcas . throwFeatMissing ( "caption" , "ch.epfl.bbp.uima.types.DataTable" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( DataTable_Type ) jcasType ) . casFeatCode_caption ) ; } | getter for caption - gets |
20,891 | public void setCaption ( String v ) { if ( DataTable_Type . featOkTst && ( ( DataTable_Type ) jcasType ) . casFeat_caption == null ) jcasType . jcas . throwFeatMissing ( "caption" , "ch.epfl.bbp.uima.types.DataTable" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( DataTable_Type ) jcasType ) . casFeatCode_caption , v ) ; } | setter for caption - sets |
20,892 | public StringArray getHeadings ( ) { if ( DataTable_Type . featOkTst && ( ( DataTable_Type ) jcasType ) . casFeat_headings == null ) jcasType . jcas . throwFeatMissing ( "headings" , "ch.epfl.bbp.uima.types.DataTable" ) ; return ( StringArray ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( DataTable_Type ) jcasType ) . casFeatCode_headings ) ) ) ; } | getter for headings - gets |
20,893 | public void setHeadings ( StringArray v ) { if ( DataTable_Type . featOkTst && ( ( DataTable_Type ) jcasType ) . casFeat_headings == null ) jcasType . jcas . throwFeatMissing ( "headings" , "ch.epfl.bbp.uima.types.DataTable" ) ; jcasType . ll_cas . ll_setRefValue ( addr , ( ( DataTable_Type ) jcasType ) . casFeatCode_headings , jcasType . ll_cas . ll_getFSRef ( v ) ) ; } | setter for headings - sets |
20,894 | public String getHeadings ( int i ) { if ( DataTable_Type . featOkTst && ( ( DataTable_Type ) jcasType ) . casFeat_headings == null ) jcasType . jcas . throwFeatMissing ( "headings" , "ch.epfl.bbp.uima.types.DataTable" ) ; jcasType . jcas . checkArrayBounds ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( DataTable_Type ) jcasType ) . casFeatCode_headings ) , i ) ; return jcasType . ll_cas . ll_getStringArrayValue ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( DataTable_Type ) jcasType ) . casFeatCode_headings ) , i ) ; } | indexed getter for headings - gets an indexed value - |
20,895 | public void setHeadings ( int i , String v ) { if ( DataTable_Type . featOkTst && ( ( DataTable_Type ) jcasType ) . casFeat_headings == null ) jcasType . jcas . throwFeatMissing ( "headings" , "ch.epfl.bbp.uima.types.DataTable" ) ; jcasType . jcas . checkArrayBounds ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( DataTable_Type ) jcasType ) . casFeatCode_headings ) , i ) ; jcasType . ll_cas . ll_setStringArrayValue ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( DataTable_Type ) jcasType ) . casFeatCode_headings ) , i , v ) ; } | indexed setter for headings - sets an indexed value - |
20,896 | public StringArray getBody ( ) { if ( DataTable_Type . featOkTst && ( ( DataTable_Type ) jcasType ) . casFeat_body == null ) jcasType . jcas . throwFeatMissing ( "body" , "ch.epfl.bbp.uima.types.DataTable" ) ; return ( StringArray ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( DataTable_Type ) jcasType ) . casFeatCode_body ) ) ) ; } | getter for body - gets the body of the table that contains data |
20,897 | public void setBody ( StringArray v ) { if ( DataTable_Type . featOkTst && ( ( DataTable_Type ) jcasType ) . casFeat_body == null ) jcasType . jcas . throwFeatMissing ( "body" , "ch.epfl.bbp.uima.types.DataTable" ) ; jcasType . ll_cas . ll_setRefValue ( addr , ( ( DataTable_Type ) jcasType ) . casFeatCode_body , jcasType . ll_cas . ll_getFSRef ( v ) ) ; } | setter for body - sets the body of the table that contains data |
20,898 | public String getBody ( int i ) { if ( DataTable_Type . featOkTst && ( ( DataTable_Type ) jcasType ) . casFeat_body == null ) jcasType . jcas . throwFeatMissing ( "body" , "ch.epfl.bbp.uima.types.DataTable" ) ; jcasType . jcas . checkArrayBounds ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( DataTable_Type ) jcasType ) . casFeatCode_body ) , i ) ; return jcasType . ll_cas . ll_getStringArrayValue ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( DataTable_Type ) jcasType ) . casFeatCode_body ) , i ) ; } | indexed getter for body - gets an indexed value - the body of the table that contains data |
20,899 | public void setBody ( int i , String v ) { if ( DataTable_Type . featOkTst && ( ( DataTable_Type ) jcasType ) . casFeat_body == null ) jcasType . jcas . throwFeatMissing ( "body" , "ch.epfl.bbp.uima.types.DataTable" ) ; jcasType . jcas . checkArrayBounds ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( DataTable_Type ) jcasType ) . casFeatCode_body ) , i ) ; jcasType . ll_cas . ll_setStringArrayValue ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( DataTable_Type ) jcasType ) . casFeatCode_body ) , i , v ) ; } | indexed setter for body - sets an indexed value - the body of the table that contains data |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.