idx
int64
0
165k
question
stringlengths
73
4.15k
target
stringlengths
5
918
len_question
int64
21
890
len_target
int64
3
255
20,100
public int getSnippetBegin ( ) { if ( Cooccurrence_Type . featOkTst && ( ( Cooccurrence_Type ) jcasType ) . casFeat_snippetBegin == null ) jcasType . jcas . throwFeatMissing ( "snippetBegin" , "ch.epfl.bbp.uima.types.Cooccurrence" ) ; return jcasType . ll_cas . ll_getIntValue ( addr , ( ( Cooccurrence_Type ) jcasType ) . casFeatCode_snippetBegin ) ; }
getter for snippetBegin - gets
128
7
20,101
public void setSnippetBegin ( int v ) { if ( Cooccurrence_Type . featOkTst && ( ( Cooccurrence_Type ) jcasType ) . casFeat_snippetBegin == null ) jcasType . jcas . throwFeatMissing ( "snippetBegin" , "ch.epfl.bbp.uima.types.Cooccurrence" ) ; jcasType . ll_cas . ll_setIntValue ( addr , ( ( Cooccurrence_Type ) jcasType ) . casFeatCode_snippetBegin , v ) ; }
setter for snippetBegin - sets
131
7
20,102
public int getSnippetEnd ( ) { if ( Cooccurrence_Type . featOkTst && ( ( Cooccurrence_Type ) jcasType ) . casFeat_snippetEnd == null ) jcasType . jcas . throwFeatMissing ( "snippetEnd" , "ch.epfl.bbp.uima.types.Cooccurrence" ) ; return jcasType . ll_cas . ll_getIntValue ( addr , ( ( Cooccurrence_Type ) jcasType ) . casFeatCode_snippetEnd ) ; }
getter for snippetEnd - gets
128
7
20,103
public void setSnippetEnd ( int v ) { if ( Cooccurrence_Type . featOkTst && ( ( Cooccurrence_Type ) jcasType ) . casFeat_snippetEnd == null ) jcasType . jcas . throwFeatMissing ( "snippetEnd" , "ch.epfl.bbp.uima.types.Cooccurrence" ) ; jcasType . ll_cas . ll_setIntValue ( addr , ( ( Cooccurrence_Type ) jcasType ) . casFeatCode_snippetEnd , v ) ; }
setter for snippetEnd - sets
131
7
20,104
public StringArray getFirstIds ( ) { if ( Cooccurrence_Type . featOkTst && ( ( Cooccurrence_Type ) jcasType ) . casFeat_firstIds == null ) jcasType . jcas . throwFeatMissing ( "firstIds" , "ch.epfl.bbp.uima.types.Cooccurrence" ) ; return ( StringArray ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( Cooccurrence_Type ) jcasType ) . casFeatCode_firstIds ) ) ) ; }
getter for firstIds - gets A list of string ids to identify the first occurrence
147
19
20,105
public void setFirstIds ( StringArray v ) { if ( Cooccurrence_Type . featOkTst && ( ( Cooccurrence_Type ) jcasType ) . casFeat_firstIds == null ) jcasType . jcas . throwFeatMissing ( "firstIds" , "ch.epfl.bbp.uima.types.Cooccurrence" ) ; jcasType . ll_cas . ll_setRefValue ( addr , ( ( Cooccurrence_Type ) jcasType ) . casFeatCode_firstIds , jcasType . ll_cas . ll_getFSRef ( v ) ) ; }
setter for firstIds - sets A list of string ids to identify the first occurrence
143
19
20,106
public String getFirstIds ( int i ) { if ( Cooccurrence_Type . featOkTst && ( ( Cooccurrence_Type ) jcasType ) . casFeat_firstIds == null ) jcasType . jcas . throwFeatMissing ( "firstIds" , "ch.epfl.bbp.uima.types.Cooccurrence" ) ; jcasType . jcas . checkArrayBounds ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( Cooccurrence_Type ) jcasType ) . casFeatCode_firstIds ) , i ) ; return jcasType . ll_cas . ll_getStringArrayValue ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( Cooccurrence_Type ) jcasType ) . casFeatCode_firstIds ) , i ) ; }
indexed getter for firstIds - gets an indexed value - A list of string ids to identify the first occurrence
198
25
20,107
public void setFirstIds ( int i , String v ) { if ( Cooccurrence_Type . featOkTst && ( ( Cooccurrence_Type ) jcasType ) . casFeat_firstIds == null ) jcasType . jcas . throwFeatMissing ( "firstIds" , "ch.epfl.bbp.uima.types.Cooccurrence" ) ; jcasType . jcas . checkArrayBounds ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( Cooccurrence_Type ) jcasType ) . casFeatCode_firstIds ) , i ) ; jcasType . ll_cas . ll_setStringArrayValue ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( Cooccurrence_Type ) jcasType ) . casFeatCode_firstIds ) , i , v ) ; }
indexed setter for firstIds - sets an indexed value - A list of string ids to identify the first occurrence
202
25
20,108
public StringArray getSecondIds ( ) { if ( Cooccurrence_Type . featOkTst && ( ( Cooccurrence_Type ) jcasType ) . casFeat_secondIds == null ) jcasType . jcas . throwFeatMissing ( "secondIds" , "ch.epfl.bbp.uima.types.Cooccurrence" ) ; return ( StringArray ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( Cooccurrence_Type ) jcasType ) . casFeatCode_secondIds ) ) ) ; }
getter for secondIds - gets a list of string ids to identify the second occurrence
147
19
20,109
public void setSecondIds ( StringArray v ) { if ( Cooccurrence_Type . featOkTst && ( ( Cooccurrence_Type ) jcasType ) . casFeat_secondIds == null ) jcasType . jcas . throwFeatMissing ( "secondIds" , "ch.epfl.bbp.uima.types.Cooccurrence" ) ; jcasType . ll_cas . ll_setRefValue ( addr , ( ( Cooccurrence_Type ) jcasType ) . casFeatCode_secondIds , jcasType . ll_cas . ll_getFSRef ( v ) ) ; }
setter for secondIds - sets a list of string ids to identify the second occurrence
143
19
20,110
public String getSecondIds ( int i ) { if ( Cooccurrence_Type . featOkTst && ( ( Cooccurrence_Type ) jcasType ) . casFeat_secondIds == null ) jcasType . jcas . throwFeatMissing ( "secondIds" , "ch.epfl.bbp.uima.types.Cooccurrence" ) ; jcasType . jcas . checkArrayBounds ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( Cooccurrence_Type ) jcasType ) . casFeatCode_secondIds ) , i ) ; return jcasType . ll_cas . ll_getStringArrayValue ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( Cooccurrence_Type ) jcasType ) . casFeatCode_secondIds ) , i ) ; }
indexed getter for secondIds - gets an indexed value - a list of string ids to identify the second occurrence
198
25
20,111
public void setSecondIds ( int i , String v ) { if ( Cooccurrence_Type . featOkTst && ( ( Cooccurrence_Type ) jcasType ) . casFeat_secondIds == null ) jcasType . jcas . throwFeatMissing ( "secondIds" , "ch.epfl.bbp.uima.types.Cooccurrence" ) ; jcasType . jcas . checkArrayBounds ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( Cooccurrence_Type ) jcasType ) . casFeatCode_secondIds ) , i ) ; jcasType . ll_cas . ll_setStringArrayValue ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( Cooccurrence_Type ) jcasType ) . casFeatCode_secondIds ) , i , v ) ; }
indexed setter for secondIds - sets an indexed value - a list of string ids to identify the second occurrence
202
25
20,112
public String getCooccurrenceType ( ) { if ( Cooccurrence_Type . featOkTst && ( ( Cooccurrence_Type ) jcasType ) . casFeat_cooccurrenceType == null ) jcasType . jcas . throwFeatMissing ( "cooccurrenceType" , "ch.epfl.bbp.uima.types.Cooccurrence" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( Cooccurrence_Type ) jcasType ) . casFeatCode_cooccurrenceType ) ; }
getter for cooccurrenceType - gets
128
9
20,113
public void setCooccurrenceType ( String v ) { if ( Cooccurrence_Type . featOkTst && ( ( Cooccurrence_Type ) jcasType ) . casFeat_cooccurrenceType == null ) jcasType . jcas . throwFeatMissing ( "cooccurrenceType" , "ch.epfl.bbp.uima.types.Cooccurrence" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( Cooccurrence_Type ) jcasType ) . casFeatCode_cooccurrenceType , v ) ; }
setter for cooccurrenceType - sets
131
9
20,114
public float getConfidence ( ) { if ( Cooccurrence_Type . featOkTst && ( ( Cooccurrence_Type ) jcasType ) . casFeat_confidence == null ) jcasType . jcas . throwFeatMissing ( "confidence" , "ch.epfl.bbp.uima.types.Cooccurrence" ) ; return jcasType . ll_cas . ll_getFloatValue ( addr , ( ( Cooccurrence_Type ) jcasType ) . casFeatCode_confidence ) ; }
getter for confidence - gets To which degree we are confident about this being a true co - occurrence
117
20
20,115
public void setConfidence ( float v ) { if ( Cooccurrence_Type . featOkTst && ( ( Cooccurrence_Type ) jcasType ) . casFeat_confidence == null ) jcasType . jcas . throwFeatMissing ( "confidence" , "ch.epfl.bbp.uima.types.Cooccurrence" ) ; jcasType . ll_cas . ll_setFloatValue ( addr , ( ( Cooccurrence_Type ) jcasType ) . casFeatCode_confidence , v ) ; }
setter for confidence - sets To which degree we are confident about this being a true co - occurrence
120
20
20,116
public boolean getHasInteraction ( ) { if ( Cooccurrence_Type . featOkTst && ( ( Cooccurrence_Type ) jcasType ) . casFeat_hasInteraction == null ) jcasType . jcas . throwFeatMissing ( "hasInteraction" , "ch.epfl.bbp.uima.types.Cooccurrence" ) ; return jcasType . ll_cas . ll_getBooleanValue ( addr , ( ( Cooccurrence_Type ) jcasType ) . casFeatCode_hasInteraction ) ; }
getter for hasInteraction - gets whether this cooccurrence signals an interaction between the two entities . This is relevant for the Whitetext corpus in particular .
125
33
20,117
public void setHasInteraction ( boolean v ) { if ( Cooccurrence_Type . featOkTst && ( ( Cooccurrence_Type ) jcasType ) . casFeat_hasInteraction == null ) jcasType . jcas . throwFeatMissing ( "hasInteraction" , "ch.epfl.bbp.uima.types.Cooccurrence" ) ; jcasType . ll_cas . ll_setBooleanValue ( addr , ( ( Cooccurrence_Type ) jcasType ) . casFeatCode_hasInteraction , v ) ; }
setter for hasInteraction - sets whether this cooccurrence signals an interaction between the two entities . This is relevant for the Whitetext corpus in particular .
128
33
20,118
public int getPresent ( ) { if ( MultipleProteins_Type . featOkTst && ( ( MultipleProteins_Type ) jcasType ) . casFeat_present == null ) jcasType . jcas . throwFeatMissing ( "present" , "ch.epfl.bbp.uima.types.MultipleProteins" ) ; return jcasType . ll_cas . ll_getIntValue ( addr , ( ( MultipleProteins_Type ) jcasType ) . casFeatCode_present ) ; }
getter for present - gets 1 if present
120
9
20,119
public void setPresent ( int v ) { if ( MultipleProteins_Type . featOkTst && ( ( MultipleProteins_Type ) jcasType ) . casFeat_present == null ) jcasType . jcas . throwFeatMissing ( "present" , "ch.epfl.bbp.uima.types.MultipleProteins" ) ; jcasType . ll_cas . ll_setIntValue ( addr , ( ( MultipleProteins_Type ) jcasType ) . casFeatCode_present , v ) ; }
setter for present - sets 1 if present
123
9
20,120
public void persist ( File file ) throws IOException { //System.err.println("Writting "+wordMap.size()+" words and "+gramSet.size()+" n-grams"); DataOutputStream output = new DataOutputStream ( new GZIPOutputStream ( new FileOutputStream ( file ) ) ) ; output . writeUTF ( FILE_TYPE ) ; System . err . println ( "pruning from " + wordMap . size ( ) ) ; for ( Iterator ki = wordMap . iterator ( ) ; ki . hasNext ( ) ; ) { String key = ( String ) ki . next ( ) ; if ( ( ( CountedNumberedSet ) wordMap ) . getCount ( key ) < cutoff ) { ki . remove ( ) ; } } System . err . println ( "pruning to " + wordMap . size ( ) ) ; output . writeInt ( wordMap . size ( ) ) ; for ( Iterator ki = wordMap . iterator ( ) ; ki . hasNext ( ) ; ) { String key = ( String ) ki . next ( ) ; output . writeUTF ( key ) ; output . writeInt ( wordMap . getIndex ( key ) ) ; } CountedSet cset = ( CountedSet ) gramSet ; int gramCount = 0 ; for ( Iterator gi = gramSet . iterator ( ) ; gi . hasNext ( ) ; ) { NGram ngram = ( NGram ) gi . next ( ) ; if ( cset . getCount ( ngram ) >= cutoff ) { int [ ] words = ngram . getWords ( ) ; output . writeInt ( words . length ) ; for ( int wi = 0 ; wi < words . length ; wi ++ ) { output . writeInt ( words [ wi ] ) ; } gramCount ++ ; } else { //System.err.println("ngram "+cset.getCount(ngram)); } } System . err . println ( "Wrote out " + gramCount + " n-grams" ) ; output . close ( ) ; }
Save this n - gram dictionary to the specified file .
441
11
20,121
public String getAce_subtype ( ) { if ( Value_Type . featOkTst && ( ( Value_Type ) jcasType ) . casFeat_ace_subtype == null ) jcasType . jcas . throwFeatMissing ( "ace_subtype" , "de.julielab.jules.types.ace.Value" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( Value_Type ) jcasType ) . casFeatCode_ace_subtype ) ; }
getter for ace_subtype - gets
122
9
20,122
public static < T > T deserialize ( byte [ ] b , Class < T > clazz ) { try ( Pool < Kryo , RuntimeException > . Entry entry = kryoPool . borrow ( ) ; Input input = new Input ( b ) ; ) { T t = entry . getObject ( ) . readObject ( input , clazz ) ; entry . setValid ( true ) ; return t ; } catch ( KryoException e ) { Log . w ( e . getMessage ( ) ) ; return null ; } }
Be sure to do null pointer check on return value !!!
113
12
20,123
public static StringDistance [ ] buildArray ( String classNames ) { String classNamesArray [ ] = split ( classNames ) ; StringDistance learners [ ] = new StringDistance [ classNamesArray . length ] ; for ( int i = 0 ; i < classNamesArray . length ; i ++ ) { learners [ i ] = build ( classNamesArray [ i ] ) . getDistance ( ) ; } return learners ; }
Generate a StringDistanceArray given a sequence of classnames separated by slashes .
88
17
20,124
static public void main ( String [ ] args ) { try { if ( args [ 0 ] . indexOf ( ' ' ) > 0 ) { System . out . println ( build ( args [ 0 ] ) ) ; } else { System . out . println ( build ( args ) ) ; } } catch ( Exception e ) { e . printStackTrace ( ) ; } }
Test routine .
79
3
20,125
public FSArray getRelatedArticles ( ) { if ( RelatedArticleList_Type . featOkTst && ( ( RelatedArticleList_Type ) jcasType ) . casFeat_relatedArticles == null ) jcasType . jcas . throwFeatMissing ( "relatedArticles" , "de.julielab.jules.types.RelatedArticleList" ) ; return ( FSArray ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( RelatedArticleList_Type ) jcasType ) . casFeatCode_relatedArticles ) ) ) ; }
getter for relatedArticles - gets
146
8
20,126
public void setRelatedArticles ( FSArray v ) { if ( RelatedArticleList_Type . featOkTst && ( ( RelatedArticleList_Type ) jcasType ) . casFeat_relatedArticles == null ) jcasType . jcas . throwFeatMissing ( "relatedArticles" , "de.julielab.jules.types.RelatedArticleList" ) ; jcasType . ll_cas . ll_setRefValue ( addr , ( ( RelatedArticleList_Type ) jcasType ) . casFeatCode_relatedArticles , jcasType . ll_cas . ll_getFSRef ( v ) ) ; }
setter for relatedArticles - sets
142
8
20,127
public RelatedArticle getRelatedArticles ( int i ) { if ( RelatedArticleList_Type . featOkTst && ( ( RelatedArticleList_Type ) jcasType ) . casFeat_relatedArticles == null ) jcasType . jcas . throwFeatMissing ( "relatedArticles" , "de.julielab.jules.types.RelatedArticleList" ) ; jcasType . jcas . checkArrayBounds ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( RelatedArticleList_Type ) jcasType ) . casFeatCode_relatedArticles ) , i ) ; return ( RelatedArticle ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getRefArrayValue ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( RelatedArticleList_Type ) jcasType ) . casFeatCode_relatedArticles ) , i ) ) ) ; }
indexed getter for relatedArticles - gets an indexed value -
220
14
20,128
public void setRelatedArticles ( int i , RelatedArticle v ) { if ( RelatedArticleList_Type . featOkTst && ( ( RelatedArticleList_Type ) jcasType ) . casFeat_relatedArticles == null ) jcasType . jcas . throwFeatMissing ( "relatedArticles" , "de.julielab.jules.types.RelatedArticleList" ) ; jcasType . jcas . checkArrayBounds ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( RelatedArticleList_Type ) jcasType ) . casFeatCode_relatedArticles ) , i ) ; jcasType . ll_cas . ll_setRefArrayValue ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( RelatedArticleList_Type ) jcasType ) . casFeatCode_relatedArticles ) , i , jcasType . ll_cas . ll_getFSRef ( v ) ) ; }
indexed setter for relatedArticles - sets an indexed value -
217
14
20,129
public FSArray getItemList ( ) { if ( List_Type . featOkTst && ( ( List_Type ) jcasType ) . casFeat_itemList == null ) jcasType . jcas . throwFeatMissing ( "itemList" , "de.julielab.jules.types.List" ) ; return ( FSArray ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( List_Type ) jcasType ) . casFeatCode_itemList ) ) ) ; }
getter for itemList - gets contains items of the level 1 . The items of the level 1 could contain further items of next level and so on in order to represent an iterative structure of list items .
134
42
20,130
public void setItemList ( FSArray v ) { if ( List_Type . featOkTst && ( ( List_Type ) jcasType ) . casFeat_itemList == null ) jcasType . jcas . throwFeatMissing ( "itemList" , "de.julielab.jules.types.List" ) ; jcasType . ll_cas . ll_setRefValue ( addr , ( ( List_Type ) jcasType ) . casFeatCode_itemList , jcasType . ll_cas . ll_getFSRef ( v ) ) ; }
setter for itemList - sets contains items of the level 1 . The items of the level 1 could contain further items of next level and so on in order to represent an iterative structure of list items .
130
42
20,131
public ListItem getItemList ( int i ) { if ( List_Type . featOkTst && ( ( List_Type ) jcasType ) . casFeat_itemList == null ) jcasType . jcas . throwFeatMissing ( "itemList" , "de.julielab.jules.types.List" ) ; jcasType . jcas . checkArrayBounds ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( List_Type ) jcasType ) . casFeatCode_itemList ) , i ) ; return ( ListItem ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getRefArrayValue ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( List_Type ) jcasType ) . casFeatCode_itemList ) , i ) ) ) ; }
indexed getter for itemList - gets an indexed value - contains items of the level 1 . The items of the level 1 could contain further items of next level and so on in order to represent an iterative structure of list items .
205
48
20,132
public void setItemList ( int i , ListItem v ) { if ( List_Type . featOkTst && ( ( List_Type ) jcasType ) . casFeat_itemList == null ) jcasType . jcas . throwFeatMissing ( "itemList" , "de.julielab.jules.types.List" ) ; jcasType . jcas . checkArrayBounds ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( List_Type ) jcasType ) . casFeatCode_itemList ) , i ) ; jcasType . ll_cas . ll_setRefArrayValue ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( List_Type ) jcasType ) . casFeatCode_itemList ) , i , jcasType . ll_cas . ll_getFSRef ( v ) ) ; }
indexed setter for itemList - sets an indexed value - contains items of the level 1 . The items of the level 1 could contain further items of next level and so on in order to represent an iterative structure of list items .
202
48
20,133
public void setAce_subtype ( String v ) { if ( Entity_Type . featOkTst && ( ( Entity_Type ) jcasType ) . casFeat_ace_subtype == null ) jcasType . jcas . throwFeatMissing ( "ace_subtype" , "de.julielab.jules.types.ace.Entity" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( Entity_Type ) jcasType ) . casFeatCode_ace_subtype , v ) ; }
setter for ace_subtype - sets
125
9
20,134
public String getAce_class ( ) { if ( Entity_Type . featOkTst && ( ( Entity_Type ) jcasType ) . casFeat_ace_class == null ) jcasType . jcas . throwFeatMissing ( "ace_class" , "de.julielab.jules.types.ace.Entity" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( Entity_Type ) jcasType ) . casFeatCode_ace_class ) ; }
getter for ace_class - gets
118
8
20,135
public void setAce_class ( String v ) { if ( Entity_Type . featOkTst && ( ( Entity_Type ) jcasType ) . casFeat_ace_class == null ) jcasType . jcas . throwFeatMissing ( "ace_class" , "de.julielab.jules.types.ace.Entity" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( Entity_Type ) jcasType ) . casFeatCode_ace_class , v ) ; }
setter for ace_class - sets
121
8
20,136
public FSArray getEntity_mentions ( ) { if ( Entity_Type . featOkTst && ( ( Entity_Type ) jcasType ) . casFeat_entity_mentions == null ) jcasType . jcas . throwFeatMissing ( "entity_mentions" , "de.julielab.jules.types.ace.Entity" ) ; return ( FSArray ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( Entity_Type ) jcasType ) . casFeatCode_entity_mentions ) ) ) ; }
getter for entity_mentions - gets
144
9
20,137
public void setEntity_mentions ( FSArray v ) { if ( Entity_Type . featOkTst && ( ( Entity_Type ) jcasType ) . casFeat_entity_mentions == null ) jcasType . jcas . throwFeatMissing ( "entity_mentions" , "de.julielab.jules.types.ace.Entity" ) ; jcasType . ll_cas . ll_setRefValue ( addr , ( ( Entity_Type ) jcasType ) . casFeatCode_entity_mentions , jcasType . ll_cas . ll_getFSRef ( v ) ) ; }
setter for entity_mentions - sets
140
9
20,138
public EntityMention getEntity_mentions ( int i ) { if ( Entity_Type . featOkTst && ( ( Entity_Type ) jcasType ) . casFeat_entity_mentions == null ) jcasType . jcas . throwFeatMissing ( "entity_mentions" , "de.julielab.jules.types.ace.Entity" ) ; jcasType . jcas . checkArrayBounds ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( Entity_Type ) jcasType ) . casFeatCode_entity_mentions ) , i ) ; return ( EntityMention ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getRefArrayValue ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( Entity_Type ) jcasType ) . casFeatCode_entity_mentions ) , i ) ) ) ; }
indexed getter for entity_mentions - gets an indexed value -
219
15
20,139
public void setEntity_mentions ( int i , EntityMention v ) { if ( Entity_Type . featOkTst && ( ( Entity_Type ) jcasType ) . casFeat_entity_mentions == null ) jcasType . jcas . throwFeatMissing ( "entity_mentions" , "de.julielab.jules.types.ace.Entity" ) ; jcasType . jcas . checkArrayBounds ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( Entity_Type ) jcasType ) . casFeatCode_entity_mentions ) , i ) ; jcasType . ll_cas . ll_setRefArrayValue ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( Entity_Type ) jcasType ) . casFeatCode_entity_mentions ) , i , jcasType . ll_cas . ll_getFSRef ( v ) ) ; }
indexed setter for entity_mentions - sets an indexed value -
215
15
20,140
public FSArray getEntity_attributes ( ) { if ( Entity_Type . featOkTst && ( ( Entity_Type ) jcasType ) . casFeat_entity_attributes == null ) jcasType . jcas . throwFeatMissing ( "entity_attributes" , "de.julielab.jules.types.ace.Entity" ) ; return ( FSArray ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( Entity_Type ) jcasType ) . casFeatCode_entity_attributes ) ) ) ; }
getter for entity_attributes - gets
144
9
20,141
public void setEntity_attributes ( FSArray v ) { if ( Entity_Type . featOkTst && ( ( Entity_Type ) jcasType ) . casFeat_entity_attributes == null ) jcasType . jcas . throwFeatMissing ( "entity_attributes" , "de.julielab.jules.types.ace.Entity" ) ; jcasType . ll_cas . ll_setRefValue ( addr , ( ( Entity_Type ) jcasType ) . casFeatCode_entity_attributes , jcasType . ll_cas . ll_getFSRef ( v ) ) ; }
setter for entity_attributes - sets
140
9
20,142
public EntityAttribute getEntity_attributes ( int i ) { if ( Entity_Type . featOkTst && ( ( Entity_Type ) jcasType ) . casFeat_entity_attributes == null ) jcasType . jcas . throwFeatMissing ( "entity_attributes" , "de.julielab.jules.types.ace.Entity" ) ; jcasType . jcas . checkArrayBounds ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( Entity_Type ) jcasType ) . casFeatCode_entity_attributes ) , i ) ; return ( EntityAttribute ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getRefArrayValue ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( Entity_Type ) jcasType ) . casFeatCode_entity_attributes ) , i ) ) ) ; }
indexed getter for entity_attributes - gets an indexed value -
217
15
20,143
public void setEntity_attributes ( int i , EntityAttribute v ) { if ( Entity_Type . featOkTst && ( ( Entity_Type ) jcasType ) . casFeat_entity_attributes == null ) jcasType . jcas . throwFeatMissing ( "entity_attributes" , "de.julielab.jules.types.ace.Entity" ) ; jcasType . jcas . checkArrayBounds ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( Entity_Type ) jcasType ) . casFeatCode_entity_attributes ) , i ) ; jcasType . ll_cas . ll_setRefArrayValue ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( Entity_Type ) jcasType ) . casFeatCode_entity_attributes ) , i , jcasType . ll_cas . ll_getFSRef ( v ) ) ; }
indexed setter for entity_attributes - sets an indexed value -
214
15
20,144
public String getTarget ( ) { if ( Link_Type . featOkTst && ( ( Link_Type ) jcasType ) . casFeat_target == null ) jcasType . jcas . throwFeatMissing ( "target" , "de.julielab.jules.types.wikipedia.Link" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( Link_Type ) jcasType ) . casFeatCode_target ) ; }
getter for target - gets Title of the Wikipedia page to which the link is pointing to .
109
19
20,145
public void setTarget ( String v ) { if ( Link_Type . featOkTst && ( ( Link_Type ) jcasType ) . casFeat_target == null ) jcasType . jcas . throwFeatMissing ( "target" , "de.julielab.jules.types.wikipedia.Link" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( Link_Type ) jcasType ) . casFeatCode_target , v ) ; }
setter for target - sets Title of the Wikipedia page to which the link is pointing to .
112
19
20,146
private String [ ] getLoadline ( Pair < BrainRegionDictTerm , BrainRegionDictTerm > pair , int pmId ) { BrainRegionDictTerm br1 = pair . getKey ( ) ; BrainRegionDictTerm br2 = pair . getValue ( ) ; return new String [ ] { pmId + "" , // br1 . getEntityId ( ) , br1 . getBegin ( ) + "" , br1 . getEnd ( ) + "" , // br2 . getEntityId ( ) , br2 . getBegin ( ) + "" , br2 . getEnd ( ) + "" } ; }
pubmed_id region_1_id region_1_start region_1_end region_2_id region_2_start region_2_end
132
34
20,147
public void setOntologyId ( String v ) { if ( NeurotransmitterProp_Type . featOkTst && ( ( NeurotransmitterProp_Type ) jcasType ) . casFeat_ontologyId == null ) jcasType . jcas . throwFeatMissing ( "ontologyId" , "neuroner.NeuroNER.NeurotransmitterProp" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( NeurotransmitterProp_Type ) jcasType ) . casFeatCode_ontologyId , v ) ; }
setter for ontologyId - sets ontologyId
127
11
20,148
public Span [ ] tokenizePos ( String d ) { Span [ ] tokens = split ( d ) ; newTokens . clear ( ) ; tokProbs . clear ( ) ; for ( int i = 0 , il = tokens . length ; i < il ; i ++ ) { Span s = tokens [ i ] ; String tok = d . substring ( s . getStart ( ) , s . getEnd ( ) ) ; // Can't tokenize single characters if ( tok . length ( ) < 2 ) { newTokens . add ( s ) ; tokProbs . add ( ONE ) ; } else if ( useAlphaNumericOptimization ( ) && alphaNumeric . matcher ( tok ) . matches ( ) ) { newTokens . add ( s ) ; tokProbs . add ( ONE ) ; } else { int start = s . getStart ( ) ; int end = s . getEnd ( ) ; final int origStart = s . getStart ( ) ; double tokenProb = 1.0 ; for ( int j = origStart + 1 ; j < end ; j ++ ) { double [ ] probs = model . eval ( cg . getContext ( new ObjectIntPair ( tok , j - origStart ) ) ) ; String best = model . getBestOutcome ( probs ) ; //System.err.println("TokenizerME: "+tok.substring(0,j-origStart)+"^"+tok.substring(j-origStart)+" "+best+" "+probs[model.getIndex(best)]); tokenProb *= probs [ model . getIndex ( best ) ] ; if ( best . equals ( TokContextGenerator . SPLIT ) ) { newTokens . add ( new Span ( start , j ) ) ; tokProbs . add ( new Double ( tokenProb ) ) ; start = j ; tokenProb = 1.0 ; } } newTokens . add ( new Span ( start , end ) ) ; tokProbs . add ( new Double ( tokenProb ) ) ; } } Span [ ] spans = new Span [ newTokens . size ( ) ] ; newTokens . toArray ( spans ) ; return spans ; }
Tokenizes the string .
480
5
20,149
public String [ ] tokenize ( String s ) { Span [ ] spans = tokenizePos ( s ) ; String [ ] toks = new String [ spans . length ] ; for ( int ti = 0 , tl = toks . length ; ti < tl ; ti ++ ) { toks [ ti ] = s . substring ( spans [ ti ] . getStart ( ) , spans [ ti ] . getEnd ( ) ) ; } return toks ; }
Tokenize a String .
99
5
20,150
private Mention getMention ( int tokenIndex ) { Mention mention = null ; for ( Mention mention2 : mentions ) { if ( mention2 . contains ( tokenIndex ) ) if ( mention == null ) mention = mention2 ; else throw new IllegalArgumentException ( ) ; } return mention ; }
Assumes that each token is tagged either 0 or 1 times
65
12
20,151
public String [ ] getContext ( Object o ) { String sb = ( String ) ( ( ObjectIntPair ) o ) . a ; int id = ( ( ObjectIntPair ) o ) . b ; List preds = new ArrayList ( ) ; preds . add ( "p=" + sb . substring ( 0 , id ) ) ; preds . add ( "s=" + sb . substring ( id ) ) ; if ( id > 0 ) { addCharPreds ( "p1" , sb . charAt ( id - 1 ) , preds ) ; if ( id > 1 ) { addCharPreds ( "p2" , sb . charAt ( id - 2 ) , preds ) ; preds . add ( "p21=" + sb . charAt ( id - 2 ) + sb . charAt ( id - 1 ) ) ; } else { preds . add ( "p2=bok" ) ; } preds . add ( "p1f1=" + sb . charAt ( id - 1 ) + sb . charAt ( id ) ) ; } else { preds . add ( "p1=bok" ) ; } addCharPreds ( "f1" , sb . charAt ( id ) , preds ) ; if ( id + 1 < sb . length ( ) ) { addCharPreds ( "f2" , sb . charAt ( id + 1 ) , preds ) ; preds . add ( "f12=" + sb . charAt ( id ) + sb . charAt ( id + 1 ) ) ; } else { preds . add ( "f2=bok" ) ; } if ( sb . charAt ( 0 ) == ' ' && sb . charAt ( sb . length ( ) - 1 ) == ' ' ) { preds . add ( "cc" ) ; //character code } String [ ] context = new String [ preds . size ( ) ] ; preds . toArray ( context ) ; return context ; }
Builds up the list of features based on the information in the Object which is a pair containing a String and and Integer which indicates the index of the position we are investigating .
449
35
20,152
public String getMin ( ) { if ( TIMEX_Type . featOkTst && ( ( TIMEX_Type ) jcasType ) . casFeat_min == null ) jcasType . jcas . throwFeatMissing ( "min" , "de.julielab.jules.types.muc7.TIMEX" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( TIMEX_Type ) jcasType ) . casFeatCode_min ) ; }
getter for min - gets the minimal head of the named entity
116
13
20,153
public Map < String , String > extractAbbrPairs ( String inputText , boolean isFileName ) { if ( isFileName ) { return extractAbbrPairs ( inputText ) ; } StringReader sr = new StringReader ( inputText ) ; return extractAbbrPairs ( sr ) ; }
Extract abbreviation pairs directly from input text .
65
10
20,154
public List < java . lang . Object > getLastNameOrForeNameOrInitialsOrSuffixOrNameIDOrCollectiveName ( ) { if ( lastNameOrForeNameOrInitialsOrSuffixOrNameIDOrCollectiveName == null ) { lastNameOrForeNameOrInitialsOrSuffixOrNameIDOrCollectiveName = new ArrayList < java . lang . Object > ( ) ; } return this . lastNameOrForeNameOrInitialsOrSuffixOrNameIDOrCollectiveName ; }
Gets the value of the lastNameOrForeNameOrInitialsOrSuffixOrNameIDOrCollectiveName property .
115
27
20,155
public Protein getProtein ( ) { if ( CellTypeProteinConcentration_Type . featOkTst && ( ( CellTypeProteinConcentration_Type ) jcasType ) . casFeat_protein == null ) jcasType . jcas . throwFeatMissing ( "protein" , "ch.epfl.bbp.uima.types.CellTypeProteinConcentration" ) ; return ( Protein ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( CellTypeProteinConcentration_Type ) jcasType ) . casFeatCode_protein ) ) ) ; }
getter for protein - gets
154
6
20,156
public void setProtein ( Protein v ) { if ( CellTypeProteinConcentration_Type . featOkTst && ( ( CellTypeProteinConcentration_Type ) jcasType ) . casFeat_protein == null ) jcasType . jcas . throwFeatMissing ( "protein" , "ch.epfl.bbp.uima.types.CellTypeProteinConcentration" ) ; jcasType . ll_cas . ll_setRefValue ( addr , ( ( CellTypeProteinConcentration_Type ) jcasType ) . casFeatCode_protein , jcasType . ll_cas . ll_getFSRef ( v ) ) ; }
setter for protein - sets
151
6
20,157
public Concentration getConcentration ( ) { if ( CellTypeProteinConcentration_Type . featOkTst && ( ( CellTypeProteinConcentration_Type ) jcasType ) . casFeat_concentration == null ) jcasType . jcas . throwFeatMissing ( "concentration" , "ch.epfl.bbp.uima.types.CellTypeProteinConcentration" ) ; return ( Concentration ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( CellTypeProteinConcentration_Type ) jcasType ) . casFeatCode_concentration ) ) ) ; }
getter for concentration - gets
163
6
20,158
public void setConcentration ( Concentration v ) { if ( CellTypeProteinConcentration_Type . featOkTst && ( ( CellTypeProteinConcentration_Type ) jcasType ) . casFeat_concentration == null ) jcasType . jcas . throwFeatMissing ( "concentration" , "ch.epfl.bbp.uima.types.CellTypeProteinConcentration" ) ; jcasType . ll_cas . ll_setRefValue ( addr , ( ( CellTypeProteinConcentration_Type ) jcasType ) . casFeatCode_concentration , jcasType . ll_cas . ll_getFSRef ( v ) ) ; }
setter for concentration - sets
159
6
20,159
public CellType getCelltype ( ) { if ( CellTypeProteinConcentration_Type . featOkTst && ( ( CellTypeProteinConcentration_Type ) jcasType ) . casFeat_celltype == null ) jcasType . jcas . throwFeatMissing ( "celltype" , "ch.epfl.bbp.uima.types.CellTypeProteinConcentration" ) ; return ( CellType ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( CellTypeProteinConcentration_Type ) jcasType ) . casFeatCode_celltype ) ) ) ; }
getter for celltype - gets
159
7
20,160
public void setCelltype ( CellType v ) { if ( CellTypeProteinConcentration_Type . featOkTst && ( ( CellTypeProteinConcentration_Type ) jcasType ) . casFeat_celltype == null ) jcasType . jcas . throwFeatMissing ( "celltype" , "ch.epfl.bbp.uima.types.CellTypeProteinConcentration" ) ; jcasType . ll_cas . ll_setRefValue ( addr , ( ( CellTypeProteinConcentration_Type ) jcasType ) . casFeatCode_celltype , jcasType . ll_cas . ll_getFSRef ( v ) ) ; }
setter for celltype - sets
155
7
20,161
public boolean getProjective ( ) { if ( DependencyRelation_Type . featOkTst && ( ( DependencyRelation_Type ) jcasType ) . casFeat_projective == null ) jcasType . jcas . throwFeatMissing ( "projective" , "de.julielab.jules.types.DependencyRelation" ) ; return jcasType . ll_cas . ll_getBooleanValue ( addr , ( ( DependencyRelation_Type ) jcasType ) . casFeatCode_projective ) ; }
getter for projective - gets The dependency relations can be projective or not C
125
17
20,162
public void setProjective ( boolean v ) { if ( DependencyRelation_Type . featOkTst && ( ( DependencyRelation_Type ) jcasType ) . casFeat_projective == null ) jcasType . jcas . throwFeatMissing ( "projective" , "de.julielab.jules.types.DependencyRelation" ) ; jcasType . ll_cas . ll_setBooleanValue ( addr , ( ( DependencyRelation_Type ) jcasType ) . casFeatCode_projective , v ) ; }
setter for projective - sets The dependency relations can be projective or not C
128
17
20,163
public java . util . List < Object > getAddressOrAlternativesOrArray ( ) { if ( addressOrAlternativesOrArray == null ) { addressOrAlternativesOrArray = new ArrayList < Object > ( ) ; } return this . addressOrAlternativesOrArray ; }
Gets the value of the addressOrAlternativesOrArray property .
59
14
20,164
public java . util . List < RefList > getRefList ( ) { if ( refList == null ) { refList = new ArrayList < RefList > ( ) ; } return this . refList ; }
Gets the value of the refList property .
45
10
20,165
public String getOntClassId ( ) { if ( OntClassMention_Type . featOkTst && ( ( OntClassMention_Type ) jcasType ) . casFeat_ontClassId == null ) jcasType . jcas . throwFeatMissing ( "ontClassId" , "de.julielab.jules.types.OntClassMention" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( OntClassMention_Type ) jcasType ) . casFeatCode_ontClassId ) ; }
getter for ontClassId - gets ID of the corresponding ontology class
127
15
20,166
public void setOntClassId ( String v ) { if ( OntClassMention_Type . featOkTst && ( ( OntClassMention_Type ) jcasType ) . casFeat_ontClassId == null ) jcasType . jcas . throwFeatMissing ( "ontClassId" , "de.julielab.jules.types.OntClassMention" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( OntClassMention_Type ) jcasType ) . casFeatCode_ontClassId , v ) ; }
setter for ontClassId - sets ID of the corresponding ontology class
130
15
20,167
public StringArray getSemanticTypes ( ) { if ( OntClassMention_Type . featOkTst && ( ( OntClassMention_Type ) jcasType ) . casFeat_semanticTypes == null ) jcasType . jcas . throwFeatMissing ( "semanticTypes" , "de.julielab.jules.types.OntClassMention" ) ; return ( StringArray ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( OntClassMention_Type ) jcasType ) . casFeatCode_semanticTypes ) ) ) ; }
getter for semanticTypes - gets Names or IDs of associated semantic types .
150
15
20,168
public void setSemanticTypes ( StringArray v ) { if ( OntClassMention_Type . featOkTst && ( ( OntClassMention_Type ) jcasType ) . casFeat_semanticTypes == null ) jcasType . jcas . throwFeatMissing ( "semanticTypes" , "de.julielab.jules.types.OntClassMention" ) ; jcasType . ll_cas . ll_setRefValue ( addr , ( ( OntClassMention_Type ) jcasType ) . casFeatCode_semanticTypes , jcasType . ll_cas . ll_getFSRef ( v ) ) ; }
setter for semanticTypes - sets Names or IDs of associated semantic types .
146
15
20,169
public String getSemanticTypes ( int i ) { if ( OntClassMention_Type . featOkTst && ( ( OntClassMention_Type ) jcasType ) . casFeat_semanticTypes == null ) jcasType . jcas . throwFeatMissing ( "semanticTypes" , "de.julielab.jules.types.OntClassMention" ) ; jcasType . jcas . checkArrayBounds ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( OntClassMention_Type ) jcasType ) . casFeatCode_semanticTypes ) , i ) ; return jcasType . ll_cas . ll_getStringArrayValue ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( OntClassMention_Type ) jcasType ) . casFeatCode_semanticTypes ) , i ) ; }
indexed getter for semanticTypes - gets an indexed value - Names or IDs of associated semantic types .
202
21
20,170
public void setSemanticTypes ( int i , String v ) { if ( OntClassMention_Type . featOkTst && ( ( OntClassMention_Type ) jcasType ) . casFeat_semanticTypes == null ) jcasType . jcas . throwFeatMissing ( "semanticTypes" , "de.julielab.jules.types.OntClassMention" ) ; jcasType . jcas . checkArrayBounds ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( OntClassMention_Type ) jcasType ) . casFeatCode_semanticTypes ) , i ) ; jcasType . ll_cas . ll_setStringArrayValue ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( OntClassMention_Type ) jcasType ) . casFeatCode_semanticTypes ) , i , v ) ; }
indexed setter for semanticTypes - sets an indexed value - Names or IDs of associated semantic types .
206
21
20,171
public String getPreferredTerm ( ) { if ( OntClassMention_Type . featOkTst && ( ( OntClassMention_Type ) jcasType ) . casFeat_preferredTerm == null ) jcasType . jcas . throwFeatMissing ( "preferredTerm" , "de.julielab.jules.types.OntClassMention" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( OntClassMention_Type ) jcasType ) . casFeatCode_preferredTerm ) ; }
getter for preferredTerm - gets The preferred term associated with the corresponding ontology class .
127
18
20,172
public void setPreferredTerm ( String v ) { if ( OntClassMention_Type . featOkTst && ( ( OntClassMention_Type ) jcasType ) . casFeat_preferredTerm == null ) jcasType . jcas . throwFeatMissing ( "preferredTerm" , "de.julielab.jules.types.OntClassMention" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( OntClassMention_Type ) jcasType ) . casFeatCode_preferredTerm , v ) ; }
setter for preferredTerm - sets The preferred term associated with the corresponding ontology class .
130
18
20,173
public Token getMatchedTokens ( int i ) { if ( OntClassMention_Type . featOkTst && ( ( OntClassMention_Type ) jcasType ) . casFeat_matchedTokens == null ) jcasType . jcas . throwFeatMissing ( "matchedTokens" , "de.julielab.jules.types.OntClassMention" ) ; jcasType . jcas . checkArrayBounds ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( OntClassMention_Type ) jcasType ) . casFeatCode_matchedTokens ) , i ) ; return ( Token ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getRefArrayValue ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( OntClassMention_Type ) jcasType ) . casFeatCode_matchedTokens ) , i ) ) ) ; }
indexed getter for matchedTokens - gets an indexed value - List of tokens the ontology class mention is comprised of .
219
25
20,174
public void setMatchedTokens ( int i , Token v ) { if ( OntClassMention_Type . featOkTst && ( ( OntClassMention_Type ) jcasType ) . casFeat_matchedTokens == null ) jcasType . jcas . throwFeatMissing ( "matchedTokens" , "de.julielab.jules.types.OntClassMention" ) ; jcasType . jcas . checkArrayBounds ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( OntClassMention_Type ) jcasType ) . casFeatCode_matchedTokens ) , i ) ; jcasType . ll_cas . ll_setRefArrayValue ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( OntClassMention_Type ) jcasType ) . casFeatCode_matchedTokens ) , i , jcasType . ll_cas . ll_getFSRef ( v ) ) ; }
indexed setter for matchedTokens - sets an indexed value - List of tokens the ontology class mention is comprised of .
217
25
20,175
public String generateDrop ( String table ) { StringBuffer result = new StringBuffer ( ) ; result . append ( "DROP TABLE " ) ; result . append ( table ) ; result . append ( ";\n" ) ; return result . toString ( ) ; }
Generate the DROP statement for a table .
57
10
20,176
public Collection < String > listTables ( ) throws SQLException { Collection < String > result = new ArrayList < String > ( ) ; DatabaseMetaData dbm = connection . getMetaData ( ) ; String types [ ] = { "TABLE" } ; ResultSet rs = dbm . getTables ( null , null , "" , types ) ; while ( rs . next ( ) ) { String str = rs . getString ( "TABLE_NAME" ) ; result . add ( str ) ; } return result ; }
Get a list of all tables in the database .
112
10
20,177
public Collection < String > listColumns ( String table ) throws SQLException { Collection < String > result = new ArrayList < String > ( ) ; DatabaseMetaData dbm = connection . getMetaData ( ) ; ResultSet rs = dbm . getColumns ( null , null , table , null ) ; while ( rs . next ( ) ) { result . add ( rs . getString ( "COLUMN_NAME" ) ) ; } return result ; }
Get a list of all of the columns on a table .
100
12
20,178
public void startUsingModel ( ) { if ( replacementThread != null ) { try { replacementThread . join ( ) ; } catch ( InterruptedException e ) { } } replacementCanProceed = false ; users ++ ; }
Inform the manager that a thread is using the model . If a replacement is underway the thread is forced to join the replacement thread and thus wait until it is finished to begin using the model .
47
39
20,179
public synchronized void replaceModel ( MaxentModel model ) { replacementThread = Thread . currentThread ( ) ; while ( ! replacementCanProceed ) Thread . yield ( ) ; setter . setModel ( model ) ; replacementThread = null ; }
Replace the old model with a new one forcing the replacement to wait until all threads using the old model have finished using it .
51
26
20,180
public void toIdFile ( OutputStream os ) throws IOException { BufferedWriter writer = new BufferedWriter ( new OutputStreamWriter ( os ) ) ; for ( TrieNodeData < T > child : root . children . values ( ) ) { child . writeIds ( writer , new char [ 0 ] ) ; // recursive } writer . close ( ) ; }
one entry per line . word first then tab then data
78
11
20,181
public java . util . List < Glossary > getGlossary ( ) { if ( glossary == null ) { glossary = new ArrayList < Glossary > ( ) ; } return this . glossary ; }
Gets the value of the glossary property .
46
10
20,182
public String getDescriptorName ( ) { if ( MeshHeading_Type . featOkTst && ( ( MeshHeading_Type ) jcasType ) . casFeat_descriptorName == null ) jcasType . jcas . throwFeatMissing ( "descriptorName" , "de.julielab.jules.types.MeshHeading" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( MeshHeading_Type ) jcasType ) . casFeatCode_descriptorName ) ; }
getter for descriptorName - gets see MeSH
127
10
20,183
public void setDescriptorName ( String v ) { if ( MeshHeading_Type . featOkTst && ( ( MeshHeading_Type ) jcasType ) . casFeat_descriptorName == null ) jcasType . jcas . throwFeatMissing ( "descriptorName" , "de.julielab.jules.types.MeshHeading" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( MeshHeading_Type ) jcasType ) . casFeatCode_descriptorName , v ) ; }
setter for descriptorName - sets see MeSH
130
10
20,184
public String getQualifierName ( ) { if ( MeshHeading_Type . featOkTst && ( ( MeshHeading_Type ) jcasType ) . casFeat_qualifierName == null ) jcasType . jcas . throwFeatMissing ( "qualifierName" , "de.julielab.jules.types.MeshHeading" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( MeshHeading_Type ) jcasType ) . casFeatCode_qualifierName ) ; }
getter for qualifierName - gets see MeSH
123
10
20,185
public void setQualifierName ( String v ) { if ( MeshHeading_Type . featOkTst && ( ( MeshHeading_Type ) jcasType ) . casFeat_qualifierName == null ) jcasType . jcas . throwFeatMissing ( "qualifierName" , "de.julielab.jules.types.MeshHeading" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( MeshHeading_Type ) jcasType ) . casFeatCode_qualifierName , v ) ; }
setter for qualifierName - sets see MeSH
126
10
20,186
public boolean getDescriptorNameMajorTopic ( ) { if ( MeshHeading_Type . featOkTst && ( ( MeshHeading_Type ) jcasType ) . casFeat_descriptorNameMajorTopic == null ) jcasType . jcas . throwFeatMissing ( "descriptorNameMajorTopic" , "de.julielab.jules.types.MeshHeading" ) ; return jcasType . ll_cas . ll_getBooleanValue ( addr , ( ( MeshHeading_Type ) jcasType ) . casFeatCode_descriptorNameMajorTopic ) ; }
getter for descriptorNameMajorTopic - gets see MeSH
136
12
20,187
public void setDescriptorNameMajorTopic ( boolean v ) { if ( MeshHeading_Type . featOkTst && ( ( MeshHeading_Type ) jcasType ) . casFeat_descriptorNameMajorTopic == null ) jcasType . jcas . throwFeatMissing ( "descriptorNameMajorTopic" , "de.julielab.jules.types.MeshHeading" ) ; jcasType . ll_cas . ll_setBooleanValue ( addr , ( ( MeshHeading_Type ) jcasType ) . casFeatCode_descriptorNameMajorTopic , v ) ; }
setter for descriptorNameMajorTopic - sets see MeSH
139
12
20,188
public boolean getQualifierNameMajorTopic ( ) { if ( MeshHeading_Type . featOkTst && ( ( MeshHeading_Type ) jcasType ) . casFeat_qualifierNameMajorTopic == null ) jcasType . jcas . throwFeatMissing ( "qualifierNameMajorTopic" , "de.julielab.jules.types.MeshHeading" ) ; return jcasType . ll_cas . ll_getBooleanValue ( addr , ( ( MeshHeading_Type ) jcasType ) . casFeatCode_qualifierNameMajorTopic ) ; }
getter for qualifierNameMajorTopic - gets see MeSH
132
12
20,189
public void setQualifierNameMajorTopic ( boolean v ) { if ( MeshHeading_Type . featOkTst && ( ( MeshHeading_Type ) jcasType ) . casFeat_qualifierNameMajorTopic == null ) jcasType . jcas . throwFeatMissing ( "qualifierNameMajorTopic" , "de.julielab.jules.types.MeshHeading" ) ; jcasType . ll_cas . ll_setBooleanValue ( addr , ( ( MeshHeading_Type ) jcasType ) . casFeatCode_qualifierNameMajorTopic , v ) ; }
setter for qualifierNameMajorTopic - sets see MeSH
135
12
20,190
public String getRef_id ( ) { if ( BioVerb_Type . featOkTst && ( ( BioVerb_Type ) jcasType ) . casFeat_ref_id == null ) jcasType . jcas . throwFeatMissing ( "ref_id" , "ch.epfl.bbp.uima.types.BioVerb" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( BioVerb_Type ) jcasType ) . casFeatCode_ref_id ) ; }
getter for ref_id - gets
124
8
20,191
public void setRef_id ( String v ) { if ( BioVerb_Type . featOkTst && ( ( BioVerb_Type ) jcasType ) . casFeat_ref_id == null ) jcasType . jcas . throwFeatMissing ( "ref_id" , "ch.epfl.bbp.uima.types.BioVerb" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( BioVerb_Type ) jcasType ) . casFeatCode_ref_id , v ) ; }
setter for ref_id - sets
127
8
20,192
public String getCanonical ( ) { if ( BioVerb_Type . featOkTst && ( ( BioVerb_Type ) jcasType ) . casFeat_canonical == null ) jcasType . jcas . throwFeatMissing ( "canonical" , "ch.epfl.bbp.uima.types.BioVerb" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( BioVerb_Type ) jcasType ) . casFeatCode_canonical ) ; }
getter for canonical - gets
121
6
20,193
public void setCanonical ( String v ) { if ( BioVerb_Type . featOkTst && ( ( BioVerb_Type ) jcasType ) . casFeat_canonical == null ) jcasType . jcas . throwFeatMissing ( "canonical" , "ch.epfl.bbp.uima.types.BioVerb" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( BioVerb_Type ) jcasType ) . casFeatCode_canonical , v ) ; }
setter for canonical - sets
124
6
20,194
public String getMatchedText ( ) { if ( BioVerb_Type . featOkTst && ( ( BioVerb_Type ) jcasType ) . casFeat_matchedText == null ) jcasType . jcas . throwFeatMissing ( "matchedText" , "ch.epfl.bbp.uima.types.BioVerb" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( BioVerb_Type ) jcasType ) . casFeatCode_matchedText ) ; }
getter for matchedText - gets
121
7
20,195
public void setMatchedText ( String v ) { if ( BioVerb_Type . featOkTst && ( ( BioVerb_Type ) jcasType ) . casFeat_matchedText == null ) jcasType . jcas . throwFeatMissing ( "matchedText" , "ch.epfl.bbp.uima.types.BioVerb" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( BioVerb_Type ) jcasType ) . casFeatCode_matchedText , v ) ; }
setter for matchedText - sets
124
7
20,196
public FSArray getMatchedTokens ( ) { if ( BioVerb_Type . featOkTst && ( ( BioVerb_Type ) jcasType ) . casFeat_matchedTokens == null ) jcasType . jcas . throwFeatMissing ( "matchedTokens" , "ch.epfl.bbp.uima.types.BioVerb" ) ; return ( FSArray ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( BioVerb_Type ) jcasType ) . casFeatCode_matchedTokens ) ) ) ; }
getter for matchedTokens - gets
144
7
20,197
public String getDegree ( ) { if ( AdjectiveFeats_Type . featOkTst && ( ( AdjectiveFeats_Type ) jcasType ) . casFeat_degree == null ) jcasType . jcas . throwFeatMissing ( "degree" , "de.julielab.jules.types.AdjectiveFeats" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( AdjectiveFeats_Type ) jcasType ) . casFeatCode_degree ) ; }
getter for degree - gets Degree
125
7
20,198
public void setDegree ( String v ) { if ( AdjectiveFeats_Type . featOkTst && ( ( AdjectiveFeats_Type ) jcasType ) . casFeat_degree == null ) jcasType . jcas . throwFeatMissing ( "degree" , "de.julielab.jules.types.AdjectiveFeats" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( AdjectiveFeats_Type ) jcasType ) . casFeatCode_degree , v ) ; }
setter for degree - sets Degree
128
7
20,199
public SourcedToken [ ] sourcedTokenize ( String input , String source ) { Token [ ] tokens = tokenize ( input ) ; SourcedToken [ ] sourcedTokens = new SourcedToken [ tokens . length ] ; for ( int i = 0 ; i < tokens . length ; i ++ ) { String key = tokens [ i ] . getValue ( ) + "@" + source ; if ( tokMap . get ( key ) == null ) { tokMap . put ( key , new Integer ( ++ nextId ) ) ; } int id = ( ( Integer ) tokMap . get ( key ) ) . intValue ( ) ; sourcedTokens [ i ] = new BasicSourcedToken ( id , tokens [ i ] . getValue ( ) , source ) ; } return sourcedTokens ; }
Return tokenized version of a string .
168
8