idx
int64
0
41.2k
question
stringlengths
74
4.04k
target
stringlengths
7
750
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 ( ...
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 ) . casF...
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 ) . casF...
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 ) . casF...
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 ) . casF...
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 ) . casFeatCod...
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 ) . casFeatCod...
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 ...
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...
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...
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 ) . casFe...
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 ) . casFe...
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_getR...
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 ...
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 ( li...
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 ( par...
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 ) i...
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 ...
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 . ou...
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 ...
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...
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_get...
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...
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 ) . casF...
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 ) . ca...
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_ca...
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_Typ...
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 ....
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 )...
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 ....
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 , ( ( OntRelationMe...
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...
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...
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...
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 , ( ( OntRelationMenti...
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_ge...
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_ca...
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 , ( ( On...
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 , ( ( On...
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 , ( (...
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 , ( (...
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 ( byt...
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 ) . casF...
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 ) . casF...
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 ) . casFeatCod...
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 ) . casFeatCod...
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 ) . c...
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 ) . c...
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_ge...
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 )...
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 ) . casFea...
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 ) . casFea...
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 . su...
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 cand...
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 )...
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" ) ; l...
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 =...
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...
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...
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_getRef...
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 ) . casFea...
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 , ( ( GOMen...
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 , ...
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 ( l...
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 ...
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_...
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_...
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_captio...
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_captio...
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 (...
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_h...
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_Ty...
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 , ( ( Dat...
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 , ( ( ...
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 , jcasTy...
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 ) jcasTyp...
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 ...
indexed setter for body - sets an indexed value - the body of the table that contains data