repo
stringlengths
7
58
path
stringlengths
12
218
func_name
stringlengths
3
140
original_string
stringlengths
73
34.1k
language
stringclasses
1 value
code
stringlengths
73
34.1k
code_tokens
list
docstring
stringlengths
3
16k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
105
339
partition
stringclasses
1 value
BlueBrain/bluima
modules/bluima_pdf/src/main/java/edu/psu/seersuite/extractors/tableextractor/model/TableCandidate.java
TableCandidate.setHighLevelMeta
public void setHighLevelMeta(int i) { String meta = "<Table>\n"; meta = meta + "<pageNumInDoc>" + (i + 1) + "</pageNumInDoc>\n"; m_caption = replaceAllSpecialChracters(m_caption); meta = meta + "<TableCaption>" + m_caption + "</TableCaption>\n"; String location = ""; if (m_topCaptionLocation) location = "top"; else location = "below"; location = replaceAllSpecialChracters(location); meta = meta + "<CaptionLocation>" + location + "</CaptionLocation>\n"; m_metadata_HighLevel = replaceAllSpecialChracters(m_metadata_HighLevel); meta = meta + "<dataHighLevel>" + m_metadata_HighLevel + "</dataHighLevel>\n"; this.setMetadataHighLevel(meta); }
java
public void setHighLevelMeta(int i) { String meta = "<Table>\n"; meta = meta + "<pageNumInDoc>" + (i + 1) + "</pageNumInDoc>\n"; m_caption = replaceAllSpecialChracters(m_caption); meta = meta + "<TableCaption>" + m_caption + "</TableCaption>\n"; String location = ""; if (m_topCaptionLocation) location = "top"; else location = "below"; location = replaceAllSpecialChracters(location); meta = meta + "<CaptionLocation>" + location + "</CaptionLocation>\n"; m_metadata_HighLevel = replaceAllSpecialChracters(m_metadata_HighLevel); meta = meta + "<dataHighLevel>" + m_metadata_HighLevel + "</dataHighLevel>\n"; this.setMetadataHighLevel(meta); }
[ "public", "void", "setHighLevelMeta", "(", "int", "i", ")", "{", "String", "meta", "=", "\"<Table>\\n\"", ";", "meta", "=", "meta", "+", "\"<pageNumInDoc>\"", "+", "(", "i", "+", "1", ")", "+", "\"</pageNumInDoc>\\n\"", ";", "m_caption", "=", "replaceAllSpec...
Sets the high-level table metadata @param i the total number of pages of the document
[ "Sets", "the", "high", "-", "level", "table", "metadata" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_pdf/src/main/java/edu/psu/seersuite/extractors/tableextractor/model/TableCandidate.java#L446-L462
train
BlueBrain/bluima
modules/bluima_pdf/src/main/java/edu/psu/seersuite/extractors/tableextractor/model/TableCandidate.java
TableCandidate.setEmptyMetadataStructureLevel
public void setEmptyMetadataStructureLevel(int YNum, int cc, List<TextPiece> wordsOfAPage, DocInfo m_docInfo) { String meta = ""; meta = "<TableColumnHeading>\n" + "</TableColumnHeading>" + "\n"; meta = meta + "<TableContent>\n"; meta = meta + "</TableContent>" + "\n"; meta = meta + "<TableRowHeading>" + "</TableRowHeading>" + "\n"; meta = meta + "<TableFootnote>"; meta = meta + "... </TableFootnote>" + "\n"; meta = meta + "<ColumnNum>" + "</ColumnNum>" + "\n"; meta = meta + "<RowNum>" + "</RowNum>" + "\n"; meta = meta + "<ColumnCoordinates>" + "</ColumnCoordinates>" + "\n"; meta = meta + "<TableHeight>" + "</TableHeight>" + "\n"; meta = meta + "<TableWidth>" + "</TableWidth>" + "\n"; meta = meta + "<isWideTable>" + m_WideTable + "</isWideTable>\n"; m_referenceText = replaceAllSpecialChracters(m_referenceText); meta = meta + "<TableReferenceText>" + m_referenceText + "</TableReferenceText>" + "\n"; meta = meta + "</Table>" + "\n"; setMetadataStructureLevel(meta); int tableNum = m_docInfo.getTableNum(); }
java
public void setEmptyMetadataStructureLevel(int YNum, int cc, List<TextPiece> wordsOfAPage, DocInfo m_docInfo) { String meta = ""; meta = "<TableColumnHeading>\n" + "</TableColumnHeading>" + "\n"; meta = meta + "<TableContent>\n"; meta = meta + "</TableContent>" + "\n"; meta = meta + "<TableRowHeading>" + "</TableRowHeading>" + "\n"; meta = meta + "<TableFootnote>"; meta = meta + "... </TableFootnote>" + "\n"; meta = meta + "<ColumnNum>" + "</ColumnNum>" + "\n"; meta = meta + "<RowNum>" + "</RowNum>" + "\n"; meta = meta + "<ColumnCoordinates>" + "</ColumnCoordinates>" + "\n"; meta = meta + "<TableHeight>" + "</TableHeight>" + "\n"; meta = meta + "<TableWidth>" + "</TableWidth>" + "\n"; meta = meta + "<isWideTable>" + m_WideTable + "</isWideTable>\n"; m_referenceText = replaceAllSpecialChracters(m_referenceText); meta = meta + "<TableReferenceText>" + m_referenceText + "</TableReferenceText>" + "\n"; meta = meta + "</Table>" + "\n"; setMetadataStructureLevel(meta); int tableNum = m_docInfo.getTableNum(); }
[ "public", "void", "setEmptyMetadataStructureLevel", "(", "int", "YNum", ",", "int", "cc", ",", "List", "<", "TextPiece", ">", "wordsOfAPage", ",", "DocInfo", "m_docInfo", ")", "{", "String", "meta", "=", "\"\"", ";", "meta", "=", "\"<TableColumnHeading>\\n\"", ...
Sets an empty metadata file @param YNum the total number of table lines including footnote @param cc the total number of table columns @param wordsOfAPage the list of words in a document page @param m_docInfo an object of DocInfo
[ "Sets", "an", "empty", "metadata", "file" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_pdf/src/main/java/edu/psu/seersuite/extractors/tableextractor/model/TableCandidate.java#L612-L646
train
BlueBrain/bluima
modules/bluima_pdf/src/main/java/edu/psu/seersuite/extractors/tableextractor/model/TableCandidate.java
TableCandidate.replaceAllSpecialChracters
public static String replaceAllSpecialChracters(String toBeReplaced) { toBeReplaced = toBeReplaced.replaceAll("&", "&amp;"); toBeReplaced = toBeReplaced.replaceAll("<", "&lt;"); toBeReplaced = toBeReplaced.replaceAll(">", "&gt;"); toBeReplaced = toBeReplaced.replaceAll("\"", "&quot;"); toBeReplaced = toBeReplaced.replaceAll("'", "&apos;"); // toBeReplaced = toBeReplaced.replace("^", "&circ"); // toBeReplaced = toBeReplaced.replaceAll("0xb", ""); int len = toBeReplaced.length(); char[] temp = toBeReplaced.toCharArray(); for (int i = 0; i < len; i++) { char xCode = temp[i]; if ((xCode > '\u0000' && xCode <= '\u0020') || (xCode == '\u0026') || (xCode == '\u0022') || (xCode == '\u02C6') || (xCode == '\u201C') || (xCode == '\u201D') || (xCode == '\u201E')) { String sub1 = toBeReplaced.substring(0, i); String sub2 = toBeReplaced.substring(i + 1, len); String replacement = ""; if ((xCode > '\u0000' && xCode <= '\u0020')) replacement = " "; if (xCode == '\u0026') replacement = " "; if (xCode == '\u0022') replacement = " "; if (xCode == '\u02C6') replacement = " "; if (xCode == '\u201C') replacement = " "; if (xCode == '\u201D') replacement = " "; if (xCode == '\u201E') replacement = " "; toBeReplaced = sub1 + replacement + sub2; } len = toBeReplaced.length(); temp = toBeReplaced.toCharArray(); } return (toBeReplaced); }
java
public static String replaceAllSpecialChracters(String toBeReplaced) { toBeReplaced = toBeReplaced.replaceAll("&", "&amp;"); toBeReplaced = toBeReplaced.replaceAll("<", "&lt;"); toBeReplaced = toBeReplaced.replaceAll(">", "&gt;"); toBeReplaced = toBeReplaced.replaceAll("\"", "&quot;"); toBeReplaced = toBeReplaced.replaceAll("'", "&apos;"); // toBeReplaced = toBeReplaced.replace("^", "&circ"); // toBeReplaced = toBeReplaced.replaceAll("0xb", ""); int len = toBeReplaced.length(); char[] temp = toBeReplaced.toCharArray(); for (int i = 0; i < len; i++) { char xCode = temp[i]; if ((xCode > '\u0000' && xCode <= '\u0020') || (xCode == '\u0026') || (xCode == '\u0022') || (xCode == '\u02C6') || (xCode == '\u201C') || (xCode == '\u201D') || (xCode == '\u201E')) { String sub1 = toBeReplaced.substring(0, i); String sub2 = toBeReplaced.substring(i + 1, len); String replacement = ""; if ((xCode > '\u0000' && xCode <= '\u0020')) replacement = " "; if (xCode == '\u0026') replacement = " "; if (xCode == '\u0022') replacement = " "; if (xCode == '\u02C6') replacement = " "; if (xCode == '\u201C') replacement = " "; if (xCode == '\u201D') replacement = " "; if (xCode == '\u201E') replacement = " "; toBeReplaced = sub1 + replacement + sub2; } len = toBeReplaced.length(); temp = toBeReplaced.toCharArray(); } return (toBeReplaced); }
[ "public", "static", "String", "replaceAllSpecialChracters", "(", "String", "toBeReplaced", ")", "{", "toBeReplaced", "=", "toBeReplaced", ".", "replaceAll", "(", "\"&\"", ",", "\"&amp;\"", ")", ";", "toBeReplaced", "=", "toBeReplaced", ".", "replaceAll", "(", "\"<...
Replaces all special characters in a given string @param toBeReplaced The string to be replaced @return the string after the replace
[ "Replaces", "all", "special", "characters", "in", "a", "given", "string" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_pdf/src/main/java/edu/psu/seersuite/extractors/tableextractor/model/TableCandidate.java#L680-L722
train
BlueBrain/bluima
modules/bluima_opennlp/src/main/java/ch/epfl/bbp/shaded/opennlp/tools/parser/Parse.java
Parse.addPreviousPunctuation
public void addPreviousPunctuation(Parse punct) { if (this.prevPunctSet == null) { this.prevPunctSet = new LinkedHashSet(); } prevPunctSet.add(punct); }
java
public void addPreviousPunctuation(Parse punct) { if (this.prevPunctSet == null) { this.prevPunctSet = new LinkedHashSet(); } prevPunctSet.add(punct); }
[ "public", "void", "addPreviousPunctuation", "(", "Parse", "punct", ")", "{", "if", "(", "this", ".", "prevPunctSet", "==", "null", ")", "{", "this", ".", "prevPunctSet", "=", "new", "LinkedHashSet", "(", ")", ";", "}", "prevPunctSet", ".", "add", "(", "p...
Designates that the specifed punctuation should is prior to this parse. @param punct The punctuation.
[ "Designates", "that", "the", "specifed", "punctuation", "should", "is", "prior", "to", "this", "parse", "." ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_opennlp/src/main/java/ch/epfl/bbp/shaded/opennlp/tools/parser/Parse.java#L129-L134
train
BlueBrain/bluima
modules/bluima_opennlp/src/main/java/ch/epfl/bbp/shaded/opennlp/tools/parser/Parse.java
Parse.addNextPunctuation
public void addNextPunctuation(Parse punct) { if (this.nextPunctSet == null) { this.nextPunctSet = new LinkedHashSet(); } nextPunctSet.add(punct); }
java
public void addNextPunctuation(Parse punct) { if (this.nextPunctSet == null) { this.nextPunctSet = new LinkedHashSet(); } nextPunctSet.add(punct); }
[ "public", "void", "addNextPunctuation", "(", "Parse", "punct", ")", "{", "if", "(", "this", ".", "nextPunctSet", "==", "null", ")", "{", "this", ".", "nextPunctSet", "=", "new", "LinkedHashSet", "(", ")", ";", "}", "nextPunctSet", ".", "add", "(", "punct...
Designates that the specifed punctuation follows this parse. @param punct The punctuation set.
[ "Designates", "that", "the", "specifed", "punctuation", "follows", "this", "parse", "." ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_opennlp/src/main/java/ch/epfl/bbp/shaded/opennlp/tools/parser/Parse.java#L148-L153
train
BlueBrain/bluima
modules/bluima_opennlp/src/main/java/ch/epfl/bbp/shaded/opennlp/tools/parser/Parse.java
Parse.insert
public void insert(final Parse constituent) { Span ic = constituent.span; if (span.contains(ic)) { //double oprob=c.prob; int pi=0; int pn = parts.size(); for (; pi < pn; pi++) { Parse subPart = (Parse) parts.get(pi); //System.err.println("Parse.insert:con="+constituent+" sp["+pi+"] "+subPart+" "+subPart.getType()); Span sp = subPart.span; if (sp.getStart() >= ic.getEnd()) { break; } // constituent contains subPart else if (ic.contains(sp)) { //System.err.println("Parse.insert:con contains subPart"); parts.remove(pi); pi--; constituent.parts.add(subPart); subPart.setParent(constituent); //System.err.println("Parse.insert: "+subPart.hashCode()+" -> "+subPart.getParent().hashCode()); pn = parts.size(); } else if (sp.contains(ic)) { //System.err.println("Parse.insert:subPart contains con"); subPart.insert(constituent); return; } } //System.err.println("Parse.insert:adding con="+constituent+" to "+this); parts.add(pi, constituent); constituent.setParent(this); //System.err.println("Parse.insert: "+constituent.hashCode()+" -> "+constituent.getParent().hashCode()); } else { throw (new InternalError("Inserting constituent not contained in the sentence!")); } }
java
public void insert(final Parse constituent) { Span ic = constituent.span; if (span.contains(ic)) { //double oprob=c.prob; int pi=0; int pn = parts.size(); for (; pi < pn; pi++) { Parse subPart = (Parse) parts.get(pi); //System.err.println("Parse.insert:con="+constituent+" sp["+pi+"] "+subPart+" "+subPart.getType()); Span sp = subPart.span; if (sp.getStart() >= ic.getEnd()) { break; } // constituent contains subPart else if (ic.contains(sp)) { //System.err.println("Parse.insert:con contains subPart"); parts.remove(pi); pi--; constituent.parts.add(subPart); subPart.setParent(constituent); //System.err.println("Parse.insert: "+subPart.hashCode()+" -> "+subPart.getParent().hashCode()); pn = parts.size(); } else if (sp.contains(ic)) { //System.err.println("Parse.insert:subPart contains con"); subPart.insert(constituent); return; } } //System.err.println("Parse.insert:adding con="+constituent+" to "+this); parts.add(pi, constituent); constituent.setParent(this); //System.err.println("Parse.insert: "+constituent.hashCode()+" -> "+constituent.getParent().hashCode()); } else { throw (new InternalError("Inserting constituent not contained in the sentence!")); } }
[ "public", "void", "insert", "(", "final", "Parse", "constituent", ")", "{", "Span", "ic", "=", "constituent", ".", "span", ";", "if", "(", "span", ".", "contains", "(", "ic", ")", ")", "{", "//double oprob=c.prob;", "int", "pi", "=", "0", ";", "int", ...
Inserts the specified constituent into this parse based on its text span. This method assumes that the specified constituent can be inserted into this parse. @param constituent The constituent to be inserted.
[ "Inserts", "the", "specified", "constituent", "into", "this", "parse", "based", "on", "its", "text", "span", ".", "This", "method", "assumes", "that", "the", "specified", "constituent", "can", "be", "inserted", "into", "this", "parse", "." ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_opennlp/src/main/java/ch/epfl/bbp/shaded/opennlp/tools/parser/Parse.java#L176-L213
train
BlueBrain/bluima
modules/bluima_opennlp/src/main/java/ch/epfl/bbp/shaded/opennlp/tools/parser/Parse.java
Parse.getTagSequenceProb
public double getTagSequenceProb() { //System.err.println("Parse.getTagSequenceProb: "+type+" "+this); if (parts.size() == 1 && ((Parse) parts.get(0)).type.equals(ParserME.TOK_NODE)) { //System.err.println(this+" "+prob); return (Math.log(prob)); } else if (parts.size() == 0) { System.err.println("Parse.getTagSequenceProb: Wrong base case!"); return (0.0); } else { double sum = 0.0; for (Iterator pi = parts.iterator(); pi.hasNext();) { sum += ((Parse) pi.next()).getTagSequenceProb(); } return (sum); } }
java
public double getTagSequenceProb() { //System.err.println("Parse.getTagSequenceProb: "+type+" "+this); if (parts.size() == 1 && ((Parse) parts.get(0)).type.equals(ParserME.TOK_NODE)) { //System.err.println(this+" "+prob); return (Math.log(prob)); } else if (parts.size() == 0) { System.err.println("Parse.getTagSequenceProb: Wrong base case!"); return (0.0); } else { double sum = 0.0; for (Iterator pi = parts.iterator(); pi.hasNext();) { sum += ((Parse) pi.next()).getTagSequenceProb(); } return (sum); } }
[ "public", "double", "getTagSequenceProb", "(", ")", "{", "//System.err.println(\"Parse.getTagSequenceProb: \"+type+\" \"+this);", "if", "(", "parts", ".", "size", "(", ")", "==", "1", "&&", "(", "(", "Parse", ")", "parts", ".", "get", "(", "0", ")", ")", ".", ...
Returns the probability associed with the pos-tag sequence assigned to this parse. @return The probability associed with the pos-tag sequence assigned to this parse.
[ "Returns", "the", "probability", "associed", "with", "the", "pos", "-", "tag", "sequence", "assigned", "to", "this", "parse", "." ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_opennlp/src/main/java/ch/epfl/bbp/shaded/opennlp/tools/parser/Parse.java#L259-L276
train
BlueBrain/bluima
modules/bluima_opennlp/src/main/java/ch/epfl/bbp/shaded/opennlp/tools/parser/Parse.java
Parse.updateHeads
public void updateHeads(HeadRules rules) { if (parts != null && parts.size() != 0) { for (int pi=0,pn=parts.size();pi<pn;pi++) { Parse c = (Parse) parts.get(pi); c.updateHeads(rules); } this.head = rules.getHead((Parse[]) parts.toArray(new Parse[parts.size()]), type); if (head == null) { head = this; } } else { this.head = this; } }
java
public void updateHeads(HeadRules rules) { if (parts != null && parts.size() != 0) { for (int pi=0,pn=parts.size();pi<pn;pi++) { Parse c = (Parse) parts.get(pi); c.updateHeads(rules); } this.head = rules.getHead((Parse[]) parts.toArray(new Parse[parts.size()]), type); if (head == null) { head = this; } } else { this.head = this; } }
[ "public", "void", "updateHeads", "(", "HeadRules", "rules", ")", "{", "if", "(", "parts", "!=", "null", "&&", "parts", ".", "size", "(", ")", "!=", "0", ")", "{", "for", "(", "int", "pi", "=", "0", ",", "pn", "=", "parts", ".", "size", "(", ")"...
Computes the head parses for this parse and its sub-parses and stores this information in the parse data structure. @param rules The head rules which determine how the head of the parse is computed.
[ "Computes", "the", "head", "parses", "for", "this", "parse", "and", "its", "sub", "-", "parses", "and", "stores", "this", "information", "in", "the", "parse", "data", "structure", "." ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_opennlp/src/main/java/ch/epfl/bbp/shaded/opennlp/tools/parser/Parse.java#L426-L440
train
BlueBrain/bluima
modules/bluima_opennlp/src/main/java/ch/epfl/bbp/shaded/opennlp/tools/parser/Parse.java
Parse.isPosTag
public boolean isPosTag() { return (parts.size() == 1 && ((Parse) parts.get(0)).getType().equals(ParserME.TOK_NODE)); }
java
public boolean isPosTag() { return (parts.size() == 1 && ((Parse) parts.get(0)).getType().equals(ParserME.TOK_NODE)); }
[ "public", "boolean", "isPosTag", "(", ")", "{", "return", "(", "parts", ".", "size", "(", ")", "==", "1", "&&", "(", "(", "Parse", ")", "parts", ".", "get", "(", "0", ")", ")", ".", "getType", "(", ")", ".", "equals", "(", "ParserME", ".", "TOK...
Indicates wether this parse node is a pos-tag. @return true if this node is a pos-tag, false otherwise.
[ "Indicates", "wether", "this", "parse", "node", "is", "a", "pos", "-", "tag", "." ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_opennlp/src/main/java/ch/epfl/bbp/shaded/opennlp/tools/parser/Parse.java#L523-L525
train
BlueBrain/bluima
modules/bluima_opennlp/src/main/java/ch/epfl/bbp/shaded/opennlp/tools/parser/Parse.java
Parse.getCommonParent
public Parse getCommonParent(Parse node) { if (this == node) { return parent; } Set parents = new HashSet(); Parse cparent = this; while(cparent != null) { parents.add(cparent); cparent = cparent.getParent(); } while (node != null) { if (parents.contains(node)) { return node; } node = node.getParent(); } return null; }
java
public Parse getCommonParent(Parse node) { if (this == node) { return parent; } Set parents = new HashSet(); Parse cparent = this; while(cparent != null) { parents.add(cparent); cparent = cparent.getParent(); } while (node != null) { if (parents.contains(node)) { return node; } node = node.getParent(); } return null; }
[ "public", "Parse", "getCommonParent", "(", "Parse", "node", ")", "{", "if", "(", "this", "==", "node", ")", "{", "return", "parent", ";", "}", "Set", "parents", "=", "new", "HashSet", "(", ")", ";", "Parse", "cparent", "=", "this", ";", "while", "(",...
Returns the deepest shared parent of this node and the specified node. If the nodes are identical then their parent is returned. If one node is the parent of the other then the parent node is returned. @param node The node from which parents are compared to this node's parents. @return the deepest shared parent of this node and the specified node.
[ "Returns", "the", "deepest", "shared", "parent", "of", "this", "node", "and", "the", "specified", "node", ".", "If", "the", "nodes", "are", "identical", "then", "their", "parent", "is", "returned", ".", "If", "one", "node", "is", "the", "parent", "of", "...
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_opennlp/src/main/java/ch/epfl/bbp/shaded/opennlp/tools/parser/Parse.java#L554-L571
train
BlueBrain/bluima
modules/bluima_abbreviations/src/main/java/com/wcohen/ss/expt/Blocker.java
Blocker.countCorrectPairs
protected int countCorrectPairs(MatchData data) { // count the number of times each id appears in each source */ Map counter = new HashMap(); for (int i=0; i<data.numSources(); i++) { String src = data.getSource(i); for (int j=0; j<data.numInstances(src); j++){ String id = data.getInstance(src, j).getId(); if (id!=null) { IdKey key = new IdKey(id,src); Integer c = (Integer)counter.get(key); counter.put( key, (c==null ? new Integer(1) : new Integer(c.intValue()+1)) ); } } } /* // show the counter for (Iterator i=counter.keySet().iterator(); i.hasNext(); ) { IdKey key = (IdKey) i.next(); System.out.println( key.src+"#"+key.id+" = "+counter.get(key) ); } */ // count the number of correct pairs int numCorrectPairs = 0; Set idsInSrc1 = new HashSet(); for (int i=0; i<data.numSources(); i++) { String src1 = data.getSource(i); idsInSrc1.clear(); for (int j=0; j<data.numInstances(src1);j++) { String id = data.getInstance(src1, j).getId(); idsInSrc1.add(id); for (int k=i+1; k<data.numSources(); k++) { String src2 = data.getSource(k); Integer cInteger = (Integer) counter.get( new IdKey(id,src2) ); if (cInteger!=null) { numCorrectPairs += cInteger.intValue(); } //System.out.println( "src1:"+src1+" id:"+id+" src2:"+src2+" c:"+cInteger); } } if (clusterMode) { // count how often something in src1 can be matched correctly with something // else in src1 for (Iterator j=idsInSrc1.iterator(); j.hasNext(); ) { String id = (String)j.next(); Integer cInteger = (Integer) counter.get( new IdKey(id,src1) ); int c = cInteger.intValue(); numCorrectPairs += c*(c-1)/2; } } } return numCorrectPairs; }
java
protected int countCorrectPairs(MatchData data) { // count the number of times each id appears in each source */ Map counter = new HashMap(); for (int i=0; i<data.numSources(); i++) { String src = data.getSource(i); for (int j=0; j<data.numInstances(src); j++){ String id = data.getInstance(src, j).getId(); if (id!=null) { IdKey key = new IdKey(id,src); Integer c = (Integer)counter.get(key); counter.put( key, (c==null ? new Integer(1) : new Integer(c.intValue()+1)) ); } } } /* // show the counter for (Iterator i=counter.keySet().iterator(); i.hasNext(); ) { IdKey key = (IdKey) i.next(); System.out.println( key.src+"#"+key.id+" = "+counter.get(key) ); } */ // count the number of correct pairs int numCorrectPairs = 0; Set idsInSrc1 = new HashSet(); for (int i=0; i<data.numSources(); i++) { String src1 = data.getSource(i); idsInSrc1.clear(); for (int j=0; j<data.numInstances(src1);j++) { String id = data.getInstance(src1, j).getId(); idsInSrc1.add(id); for (int k=i+1; k<data.numSources(); k++) { String src2 = data.getSource(k); Integer cInteger = (Integer) counter.get( new IdKey(id,src2) ); if (cInteger!=null) { numCorrectPairs += cInteger.intValue(); } //System.out.println( "src1:"+src1+" id:"+id+" src2:"+src2+" c:"+cInteger); } } if (clusterMode) { // count how often something in src1 can be matched correctly with something // else in src1 for (Iterator j=idsInSrc1.iterator(); j.hasNext(); ) { String id = (String)j.next(); Integer cInteger = (Integer) counter.get( new IdKey(id,src1) ); int c = cInteger.intValue(); numCorrectPairs += c*(c-1)/2; } } } return numCorrectPairs; }
[ "protected", "int", "countCorrectPairs", "(", "MatchData", "data", ")", "{", "// count the number of times each id appears in each source */", "Map", "counter", "=", "new", "HashMap", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "data", ".", ...
Compute number of correct pairs betwn src1 and src2, where src2>src1
[ "Compute", "number", "of", "correct", "pairs", "betwn", "src1", "and", "src2", "where", "src2", ">", "src1" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_abbreviations/src/main/java/com/wcohen/ss/expt/Blocker.java#L68-L122
train
BlueBrain/bluima
modules/bluima_opennlp/src/main/java/ch/epfl/bbp/shaded/opennlp/tools/ngram/Dictionary.java
Dictionary.loadGrams
protected void loadGrams(DataInputStream input) throws IOException { gramSet = new HashSet(); try { while(true) { int gramLength=input.readInt(); int[] words = new int[gramLength]; for (int wi=0;wi<gramLength;wi++) { words[wi]=input.readInt(); } gramSet.add(new NGram(words)); } } catch(EOFException e) { } }
java
protected void loadGrams(DataInputStream input) throws IOException { gramSet = new HashSet(); try { while(true) { int gramLength=input.readInt(); int[] words = new int[gramLength]; for (int wi=0;wi<gramLength;wi++) { words[wi]=input.readInt(); } gramSet.add(new NGram(words)); } } catch(EOFException e) { } }
[ "protected", "void", "loadGrams", "(", "DataInputStream", "input", ")", "throws", "IOException", "{", "gramSet", "=", "new", "HashSet", "(", ")", ";", "try", "{", "while", "(", "true", ")", "{", "int", "gramLength", "=", "input", ".", "readInt", "(", ")"...
Loads the contents of the specified input stream into this dictionary. @param input A dictionary file. @throws IOException If the specified input stream can not be read.
[ "Loads", "the", "contents", "of", "the", "specified", "input", "stream", "into", "this", "dictionary", "." ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_opennlp/src/main/java/ch/epfl/bbp/shaded/opennlp/tools/ngram/Dictionary.java#L86-L102
train
BlueBrain/bluima
modules/bluima_opennlp/src/main/java/ch/epfl/bbp/shaded/opennlp/tools/ngram/Dictionary.java
Dictionary.contains
public boolean contains(String[] words) { if (words.length == 1) { return wordMap.contains(words[0]); } else { NGram ngram = nGramFactory.createNGram(words); if (ngram == null) { return false; } else { return gramSet.contains(ngram); } } }
java
public boolean contains(String[] words) { if (words.length == 1) { return wordMap.contains(words[0]); } else { NGram ngram = nGramFactory.createNGram(words); if (ngram == null) { return false; } else { return gramSet.contains(ngram); } } }
[ "public", "boolean", "contains", "(", "String", "[", "]", "words", ")", "{", "if", "(", "words", ".", "length", "==", "1", ")", "{", "return", "wordMap", ".", "contains", "(", "words", "[", "0", "]", ")", ";", "}", "else", "{", "NGram", "ngram", ...
Returns true if this dictionary contains the n-gram consisting of the specified words. @param words The words which make up the n-gram to look up in the dictionary. @return true if this dictionary contains the specified n-gram; false otherwise.
[ "Returns", "true", "if", "this", "dictionary", "contains", "the", "n", "-", "gram", "consisting", "of", "the", "specified", "words", "." ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_opennlp/src/main/java/ch/epfl/bbp/shaded/opennlp/tools/ngram/Dictionary.java#L109-L122
train
BlueBrain/bluima
modules/bluima_opennlp/src/main/java/ch/epfl/bbp/shaded/opennlp/tools/ngram/Dictionary.java
Dictionary.main
public static void main(String[] args) throws IOException { if (args.length == 0) { System.err.println("Usage: Dictionary dictionary_file"); System.exit(0); } Dictionary dict = new Dictionary(args[0]); BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); String line; while (null != (line = in.readLine())) { String[] words = line.split(" "); if (dict.contains(words)) { System.out.println("Dictionary contains: "+line); } else { System.out.println("Dictionary does not contain: "+line); } } /* for (Iterator di = dict.iterator();di.hasNext();) { System.out.println(di.next()); } */ }
java
public static void main(String[] args) throws IOException { if (args.length == 0) { System.err.println("Usage: Dictionary dictionary_file"); System.exit(0); } Dictionary dict = new Dictionary(args[0]); BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); String line; while (null != (line = in.readLine())) { String[] words = line.split(" "); if (dict.contains(words)) { System.out.println("Dictionary contains: "+line); } else { System.out.println("Dictionary does not contain: "+line); } } /* for (Iterator di = dict.iterator();di.hasNext();) { System.out.println(di.next()); } */ }
[ "public", "static", "void", "main", "(", "String", "[", "]", "args", ")", "throws", "IOException", "{", "if", "(", "args", ".", "length", "==", "0", ")", "{", "System", ".", "err", ".", "println", "(", "\"Usage: Dictionary dictionary_file\"", ")", ";", "...
Allows a dictionery to be queried for specific n-grams from the command-line from statndard in using space delimited n-grams on a single line. @param args The dictionary file. @throws IOException The dictionary file can not be read.
[ "Allows", "a", "dictionery", "to", "be", "queried", "for", "specific", "n", "-", "grams", "from", "the", "command", "-", "line", "from", "statndard", "in", "using", "space", "delimited", "n", "-", "grams", "on", "a", "single", "line", "." ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_opennlp/src/main/java/ch/epfl/bbp/shaded/opennlp/tools/ngram/Dictionary.java#L137-L159
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/Section.java
Section.getSectionHeading
public Title getSectionHeading() { if (Section_Type.featOkTst && ((Section_Type)jcasType).casFeat_sectionHeading == null) jcasType.jcas.throwFeatMissing("sectionHeading", "de.julielab.jules.types.Section"); return (Title)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((Section_Type)jcasType).casFeatCode_sectionHeading)));}
java
public Title getSectionHeading() { if (Section_Type.featOkTst && ((Section_Type)jcasType).casFeat_sectionHeading == null) jcasType.jcas.throwFeatMissing("sectionHeading", "de.julielab.jules.types.Section"); return (Title)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((Section_Type)jcasType).casFeatCode_sectionHeading)));}
[ "public", "Title", "getSectionHeading", "(", ")", "{", "if", "(", "Section_Type", ".", "featOkTst", "&&", "(", "(", "Section_Type", ")", "jcasType", ")", ".", "casFeat_sectionHeading", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatMissing", "(", ...
getter for sectionHeading - gets the title of the section @generated @return value of the feature
[ "getter", "for", "sectionHeading", "-", "gets", "the", "title", "of", "the", "section" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/Section.java#L86-L89
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/Section.java
Section.setSectionHeading
public void setSectionHeading(Title v) { if (Section_Type.featOkTst && ((Section_Type)jcasType).casFeat_sectionHeading == null) jcasType.jcas.throwFeatMissing("sectionHeading", "de.julielab.jules.types.Section"); jcasType.ll_cas.ll_setRefValue(addr, ((Section_Type)jcasType).casFeatCode_sectionHeading, jcasType.ll_cas.ll_getFSRef(v));}
java
public void setSectionHeading(Title v) { if (Section_Type.featOkTst && ((Section_Type)jcasType).casFeat_sectionHeading == null) jcasType.jcas.throwFeatMissing("sectionHeading", "de.julielab.jules.types.Section"); jcasType.ll_cas.ll_setRefValue(addr, ((Section_Type)jcasType).casFeatCode_sectionHeading, jcasType.ll_cas.ll_getFSRef(v));}
[ "public", "void", "setSectionHeading", "(", "Title", "v", ")", "{", "if", "(", "Section_Type", ".", "featOkTst", "&&", "(", "(", "Section_Type", ")", "jcasType", ")", ".", "casFeat_sectionHeading", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatM...
setter for sectionHeading - sets the title of the section @generated @param v value to set into the feature
[ "setter", "for", "sectionHeading", "-", "sets", "the", "title", "of", "the", "section" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/Section.java#L95-L98
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/Section.java
Section.getSectionId
public String getSectionId() { if (Section_Type.featOkTst && ((Section_Type)jcasType).casFeat_sectionId == null) jcasType.jcas.throwFeatMissing("sectionId", "de.julielab.jules.types.Section"); return jcasType.ll_cas.ll_getStringValue(addr, ((Section_Type)jcasType).casFeatCode_sectionId);}
java
public String getSectionId() { if (Section_Type.featOkTst && ((Section_Type)jcasType).casFeat_sectionId == null) jcasType.jcas.throwFeatMissing("sectionId", "de.julielab.jules.types.Section"); return jcasType.ll_cas.ll_getStringValue(addr, ((Section_Type)jcasType).casFeatCode_sectionId);}
[ "public", "String", "getSectionId", "(", ")", "{", "if", "(", "Section_Type", ".", "featOkTst", "&&", "(", "(", "Section_Type", ")", "jcasType", ")", ".", "casFeat_sectionId", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatMissing", "(", "\"secti...
getter for sectionId - gets the id of the section, for example as mentioned in the original file, or level of the section @generated @return value of the feature
[ "getter", "for", "sectionId", "-", "gets", "the", "id", "of", "the", "section", "for", "example", "as", "mentioned", "in", "the", "original", "file", "or", "level", "of", "the", "section" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/Section.java#L174-L177
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/Section.java
Section.setSectionId
public void setSectionId(String v) { if (Section_Type.featOkTst && ((Section_Type)jcasType).casFeat_sectionId == null) jcasType.jcas.throwFeatMissing("sectionId", "de.julielab.jules.types.Section"); jcasType.ll_cas.ll_setStringValue(addr, ((Section_Type)jcasType).casFeatCode_sectionId, v);}
java
public void setSectionId(String v) { if (Section_Type.featOkTst && ((Section_Type)jcasType).casFeat_sectionId == null) jcasType.jcas.throwFeatMissing("sectionId", "de.julielab.jules.types.Section"); jcasType.ll_cas.ll_setStringValue(addr, ((Section_Type)jcasType).casFeatCode_sectionId, v);}
[ "public", "void", "setSectionId", "(", "String", "v", ")", "{", "if", "(", "Section_Type", ".", "featOkTst", "&&", "(", "(", "Section_Type", ")", "jcasType", ")", ".", "casFeat_sectionId", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatMissing", ...
setter for sectionId - sets the id of the section, for example as mentioned in the original file, or level of the section @generated @param v value to set into the feature
[ "setter", "for", "sectionId", "-", "sets", "the", "id", "of", "the", "section", "for", "example", "as", "mentioned", "in", "the", "original", "file", "or", "level", "of", "the", "section" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/Section.java#L183-L186
train
BlueBrain/bluima
modules/bluima_abbreviations/src/main/java/com/wcohen/ss/JensenShannonDistance.java
JensenShannonDistance.train
final public void train(StringWrapperIterator i) { Set seenTokens = new HashSet(); while (i.hasNext()) { StringWrapper s = (StringWrapper)i.next(); BagOfTokens bag = asBagOfTokens(i.nextStringWrapper()); for (Iterator j=bag.tokenIterator(); j.hasNext(); ) { Token tokj = (Token)j.next(); totalTokens++; // increment backgroundFrequency counts Integer freq = (Integer)backgroundFrequency.get(tokj); if (freq==null) backgroundFrequency.put(tokj,ONE); else if (freq==ONE) backgroundFrequency.put(tokj,TWO); else if (freq==TWO) backgroundFrequency.put(tokj,THREE); else backgroundFrequency.put(tokj, new Integer(freq.intValue()+1)); } } }
java
final public void train(StringWrapperIterator i) { Set seenTokens = new HashSet(); while (i.hasNext()) { StringWrapper s = (StringWrapper)i.next(); BagOfTokens bag = asBagOfTokens(i.nextStringWrapper()); for (Iterator j=bag.tokenIterator(); j.hasNext(); ) { Token tokj = (Token)j.next(); totalTokens++; // increment backgroundFrequency counts Integer freq = (Integer)backgroundFrequency.get(tokj); if (freq==null) backgroundFrequency.put(tokj,ONE); else if (freq==ONE) backgroundFrequency.put(tokj,TWO); else if (freq==TWO) backgroundFrequency.put(tokj,THREE); else backgroundFrequency.put(tokj, new Integer(freq.intValue()+1)); } } }
[ "final", "public", "void", "train", "(", "StringWrapperIterator", "i", ")", "{", "Set", "seenTokens", "=", "new", "HashSet", "(", ")", ";", "while", "(", "i", ".", "hasNext", "(", ")", ")", "{", "StringWrapper", "s", "=", "(", "StringWrapper", ")", "i"...
Accumulate statistics on how often each token occurs.
[ "Accumulate", "statistics", "on", "how", "often", "each", "token", "occurs", "." ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_abbreviations/src/main/java/com/wcohen/ss/JensenShannonDistance.java#L27-L44
train
BlueBrain/bluima
modules/bluima_abbreviations/src/main/java/com/wcohen/ss/JensenShannonDistance.java
JensenShannonDistance.prepare
final public StringWrapper prepare(String s) { BagOfTokens bag = new BagOfTokens(s, tokenizer.tokenize(s)); double totalWeight = bag.getTotalWeight(); for (Iterator i=bag.tokenIterator(); i.hasNext(); ) { Token tok = (Token)i.next(); double freq = bag.getWeight(tok); bag.setWeight( tok, smoothedProbability(tok, freq, totalWeight) ); } return bag; }
java
final public StringWrapper prepare(String s) { BagOfTokens bag = new BagOfTokens(s, tokenizer.tokenize(s)); double totalWeight = bag.getTotalWeight(); for (Iterator i=bag.tokenIterator(); i.hasNext(); ) { Token tok = (Token)i.next(); double freq = bag.getWeight(tok); bag.setWeight( tok, smoothedProbability(tok, freq, totalWeight) ); } return bag; }
[ "final", "public", "StringWrapper", "prepare", "(", "String", "s", ")", "{", "BagOfTokens", "bag", "=", "new", "BagOfTokens", "(", "s", ",", "tokenizer", ".", "tokenize", "(", "s", ")", ")", ";", "double", "totalWeight", "=", "bag", ".", "getTotalWeight", ...
Preprocess a string by finding tokens and giving them weights W such that W is the smoothed probability of the token appearing in the document.
[ "Preprocess", "a", "string", "by", "finding", "tokens", "and", "giving", "them", "weights", "W", "such", "that", "W", "is", "the", "smoothed", "probability", "of", "the", "token", "appearing", "in", "the", "document", "." ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_abbreviations/src/main/java/com/wcohen/ss/JensenShannonDistance.java#L50-L59
train
BlueBrain/bluima
modules/bluima_abbreviations/src/main/java/com/wcohen/ss/JensenShannonDistance.java
JensenShannonDistance.backgroundProb
protected double backgroundProb(Token tok) { Integer freqInteger = (Integer)backgroundFrequency.get(tok); double freq = freqInteger==null ? 0 : freqInteger.intValue(); return freq/totalTokens; }
java
protected double backgroundProb(Token tok) { Integer freqInteger = (Integer)backgroundFrequency.get(tok); double freq = freqInteger==null ? 0 : freqInteger.intValue(); return freq/totalTokens; }
[ "protected", "double", "backgroundProb", "(", "Token", "tok", ")", "{", "Integer", "freqInteger", "=", "(", "Integer", ")", "backgroundFrequency", ".", "get", "(", "tok", ")", ";", "double", "freq", "=", "freqInteger", "==", "null", "?", "0", ":", "freqInt...
Probability of token in the background language model
[ "Probability", "of", "token", "in", "the", "background", "language", "model" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_abbreviations/src/main/java/com/wcohen/ss/JensenShannonDistance.java#L65-L70
train
BlueBrain/bluima
modules/bluima_abbreviations/src/main/java/com/wcohen/ss/JensenShannonDistance.java
JensenShannonDistance.score
final public double score(StringWrapper s,StringWrapper t) { BagOfTokens sBag = (BagOfTokens)s; BagOfTokens tBag = (BagOfTokens)t; double sum = 0; for (Iterator i = sBag.tokenIterator(); i.hasNext(); ) { Token tok = (Token)i.next(); if (tBag.contains(tok)) { double ps = sBag.getWeight(tok); double pt = tBag.getWeight(tok); sum -= h(ps + pt) - h(ps) - h(pt); } } return 0.5*sum/Math.log(2); }
java
final public double score(StringWrapper s,StringWrapper t) { BagOfTokens sBag = (BagOfTokens)s; BagOfTokens tBag = (BagOfTokens)t; double sum = 0; for (Iterator i = sBag.tokenIterator(); i.hasNext(); ) { Token tok = (Token)i.next(); if (tBag.contains(tok)) { double ps = sBag.getWeight(tok); double pt = tBag.getWeight(tok); sum -= h(ps + pt) - h(ps) - h(pt); } } return 0.5*sum/Math.log(2); }
[ "final", "public", "double", "score", "(", "StringWrapper", "s", ",", "StringWrapper", "t", ")", "{", "BagOfTokens", "sBag", "=", "(", "BagOfTokens", ")", "s", ";", "BagOfTokens", "tBag", "=", "(", "BagOfTokens", ")", "t", ";", "double", "sum", "=", "0",...
Jensen-Shannon distance between distributions.
[ "Jensen", "-", "Shannon", "distance", "between", "distributions", "." ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_abbreviations/src/main/java/com/wcohen/ss/JensenShannonDistance.java#L73-L87
train
BlueBrain/bluima
modules/bluima_abbreviations/src/main/java/com/wcohen/ss/MultiStringWrapper.java
MultiStringWrapper.prepare
public void prepare(StringDistance[] innerDistances) { if (!fieldsPrepared) { for (int i=0; i<size(); i++) { StringDistance d = innerDistances[ getDistanceLearnerIndex(i) ]; set( i, d.prepare( get(i).unwrap() ) ); } } }
java
public void prepare(StringDistance[] innerDistances) { if (!fieldsPrepared) { for (int i=0; i<size(); i++) { StringDistance d = innerDistances[ getDistanceLearnerIndex(i) ]; set( i, d.prepare( get(i).unwrap() ) ); } } }
[ "public", "void", "prepare", "(", "StringDistance", "[", "]", "innerDistances", ")", "{", "if", "(", "!", "fieldsPrepared", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "size", "(", ")", ";", "i", "++", ")", "{", "StringDistance", "d"...
Prepare each field with the appropriate distance
[ "Prepare", "each", "field", "with", "the", "appropriate", "distance" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_abbreviations/src/main/java/com/wcohen/ss/MultiStringWrapper.java#L65-L72
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/Timex2.java
Timex2.getMod
public String getMod() { if (Timex2_Type.featOkTst && ((Timex2_Type)jcasType).casFeat_mod == null) jcasType.jcas.throwFeatMissing("mod", "de.julielab.jules.types.ace.Timex2"); return jcasType.ll_cas.ll_getStringValue(addr, ((Timex2_Type)jcasType).casFeatCode_mod);}
java
public String getMod() { if (Timex2_Type.featOkTst && ((Timex2_Type)jcasType).casFeat_mod == null) jcasType.jcas.throwFeatMissing("mod", "de.julielab.jules.types.ace.Timex2"); return jcasType.ll_cas.ll_getStringValue(addr, ((Timex2_Type)jcasType).casFeatCode_mod);}
[ "public", "String", "getMod", "(", ")", "{", "if", "(", "Timex2_Type", ".", "featOkTst", "&&", "(", "(", "Timex2_Type", ")", "jcasType", ")", ".", "casFeat_mod", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatMissing", "(", "\"mod\"", ",", "\...
getter for mod - gets @generated @return value of the feature
[ "getter", "for", "mod", "-", "gets" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/Timex2.java#L86-L89
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/Timex2.java
Timex2.setMod
public void setMod(String v) { if (Timex2_Type.featOkTst && ((Timex2_Type)jcasType).casFeat_mod == null) jcasType.jcas.throwFeatMissing("mod", "de.julielab.jules.types.ace.Timex2"); jcasType.ll_cas.ll_setStringValue(addr, ((Timex2_Type)jcasType).casFeatCode_mod, v);}
java
public void setMod(String v) { if (Timex2_Type.featOkTst && ((Timex2_Type)jcasType).casFeat_mod == null) jcasType.jcas.throwFeatMissing("mod", "de.julielab.jules.types.ace.Timex2"); jcasType.ll_cas.ll_setStringValue(addr, ((Timex2_Type)jcasType).casFeatCode_mod, v);}
[ "public", "void", "setMod", "(", "String", "v", ")", "{", "if", "(", "Timex2_Type", ".", "featOkTst", "&&", "(", "(", "Timex2_Type", ")", "jcasType", ")", ".", "casFeat_mod", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatMissing", "(", "\"mo...
setter for mod - sets @generated @param v value to set into the feature
[ "setter", "for", "mod", "-", "sets" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/Timex2.java#L95-L98
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/Timex2.java
Timex2.getComment
public String getComment() { if (Timex2_Type.featOkTst && ((Timex2_Type)jcasType).casFeat_comment == null) jcasType.jcas.throwFeatMissing("comment", "de.julielab.jules.types.ace.Timex2"); return jcasType.ll_cas.ll_getStringValue(addr, ((Timex2_Type)jcasType).casFeatCode_comment);}
java
public String getComment() { if (Timex2_Type.featOkTst && ((Timex2_Type)jcasType).casFeat_comment == null) jcasType.jcas.throwFeatMissing("comment", "de.julielab.jules.types.ace.Timex2"); return jcasType.ll_cas.ll_getStringValue(addr, ((Timex2_Type)jcasType).casFeatCode_comment);}
[ "public", "String", "getComment", "(", ")", "{", "if", "(", "Timex2_Type", ".", "featOkTst", "&&", "(", "(", "Timex2_Type", ")", "jcasType", ")", ".", "casFeat_comment", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatMissing", "(", "\"comment\"",...
getter for comment - gets @generated @return value of the feature
[ "getter", "for", "comment", "-", "gets" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/Timex2.java#L108-L111
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/Timex2.java
Timex2.setComment
public void setComment(String v) { if (Timex2_Type.featOkTst && ((Timex2_Type)jcasType).casFeat_comment == null) jcasType.jcas.throwFeatMissing("comment", "de.julielab.jules.types.ace.Timex2"); jcasType.ll_cas.ll_setStringValue(addr, ((Timex2_Type)jcasType).casFeatCode_comment, v);}
java
public void setComment(String v) { if (Timex2_Type.featOkTst && ((Timex2_Type)jcasType).casFeat_comment == null) jcasType.jcas.throwFeatMissing("comment", "de.julielab.jules.types.ace.Timex2"); jcasType.ll_cas.ll_setStringValue(addr, ((Timex2_Type)jcasType).casFeatCode_comment, v);}
[ "public", "void", "setComment", "(", "String", "v", ")", "{", "if", "(", "Timex2_Type", ".", "featOkTst", "&&", "(", "(", "Timex2_Type", ")", "jcasType", ")", ".", "casFeat_comment", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatMissing", "(",...
setter for comment - sets @generated @param v value to set into the feature
[ "setter", "for", "comment", "-", "sets" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/Timex2.java#L117-L120
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/Timex2.java
Timex2.getAnchor_val
public String getAnchor_val() { if (Timex2_Type.featOkTst && ((Timex2_Type)jcasType).casFeat_anchor_val == null) jcasType.jcas.throwFeatMissing("anchor_val", "de.julielab.jules.types.ace.Timex2"); return jcasType.ll_cas.ll_getStringValue(addr, ((Timex2_Type)jcasType).casFeatCode_anchor_val);}
java
public String getAnchor_val() { if (Timex2_Type.featOkTst && ((Timex2_Type)jcasType).casFeat_anchor_val == null) jcasType.jcas.throwFeatMissing("anchor_val", "de.julielab.jules.types.ace.Timex2"); return jcasType.ll_cas.ll_getStringValue(addr, ((Timex2_Type)jcasType).casFeatCode_anchor_val);}
[ "public", "String", "getAnchor_val", "(", ")", "{", "if", "(", "Timex2_Type", ".", "featOkTst", "&&", "(", "(", "Timex2_Type", ")", "jcasType", ")", ".", "casFeat_anchor_val", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatMissing", "(", "\"ancho...
getter for anchor_val - gets @generated @return value of the feature
[ "getter", "for", "anchor_val", "-", "gets" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/Timex2.java#L130-L133
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/Timex2.java
Timex2.setAnchor_val
public void setAnchor_val(String v) { if (Timex2_Type.featOkTst && ((Timex2_Type)jcasType).casFeat_anchor_val == null) jcasType.jcas.throwFeatMissing("anchor_val", "de.julielab.jules.types.ace.Timex2"); jcasType.ll_cas.ll_setStringValue(addr, ((Timex2_Type)jcasType).casFeatCode_anchor_val, v);}
java
public void setAnchor_val(String v) { if (Timex2_Type.featOkTst && ((Timex2_Type)jcasType).casFeat_anchor_val == null) jcasType.jcas.throwFeatMissing("anchor_val", "de.julielab.jules.types.ace.Timex2"); jcasType.ll_cas.ll_setStringValue(addr, ((Timex2_Type)jcasType).casFeatCode_anchor_val, v);}
[ "public", "void", "setAnchor_val", "(", "String", "v", ")", "{", "if", "(", "Timex2_Type", ".", "featOkTst", "&&", "(", "(", "Timex2_Type", ")", "jcasType", ")", ".", "casFeat_anchor_val", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatMissing", ...
setter for anchor_val - sets @generated @param v value to set into the feature
[ "setter", "for", "anchor_val", "-", "sets" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/Timex2.java#L139-L142
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/Timex2.java
Timex2.getVal
public String getVal() { if (Timex2_Type.featOkTst && ((Timex2_Type)jcasType).casFeat_val == null) jcasType.jcas.throwFeatMissing("val", "de.julielab.jules.types.ace.Timex2"); return jcasType.ll_cas.ll_getStringValue(addr, ((Timex2_Type)jcasType).casFeatCode_val);}
java
public String getVal() { if (Timex2_Type.featOkTst && ((Timex2_Type)jcasType).casFeat_val == null) jcasType.jcas.throwFeatMissing("val", "de.julielab.jules.types.ace.Timex2"); return jcasType.ll_cas.ll_getStringValue(addr, ((Timex2_Type)jcasType).casFeatCode_val);}
[ "public", "String", "getVal", "(", ")", "{", "if", "(", "Timex2_Type", ".", "featOkTst", "&&", "(", "(", "Timex2_Type", ")", "jcasType", ")", ".", "casFeat_val", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatMissing", "(", "\"val\"", ",", "\...
getter for val - gets @generated @return value of the feature
[ "getter", "for", "val", "-", "gets" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/Timex2.java#L152-L155
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/Timex2.java
Timex2.setVal
public void setVal(String v) { if (Timex2_Type.featOkTst && ((Timex2_Type)jcasType).casFeat_val == null) jcasType.jcas.throwFeatMissing("val", "de.julielab.jules.types.ace.Timex2"); jcasType.ll_cas.ll_setStringValue(addr, ((Timex2_Type)jcasType).casFeatCode_val, v);}
java
public void setVal(String v) { if (Timex2_Type.featOkTst && ((Timex2_Type)jcasType).casFeat_val == null) jcasType.jcas.throwFeatMissing("val", "de.julielab.jules.types.ace.Timex2"); jcasType.ll_cas.ll_setStringValue(addr, ((Timex2_Type)jcasType).casFeatCode_val, v);}
[ "public", "void", "setVal", "(", "String", "v", ")", "{", "if", "(", "Timex2_Type", ".", "featOkTst", "&&", "(", "(", "Timex2_Type", ")", "jcasType", ")", ".", "casFeat_val", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatMissing", "(", "\"va...
setter for val - sets @generated @param v value to set into the feature
[ "setter", "for", "val", "-", "sets" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/Timex2.java#L161-L164
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/Timex2.java
Timex2.getSet
public String getSet() { if (Timex2_Type.featOkTst && ((Timex2_Type)jcasType).casFeat_set == null) jcasType.jcas.throwFeatMissing("set", "de.julielab.jules.types.ace.Timex2"); return jcasType.ll_cas.ll_getStringValue(addr, ((Timex2_Type)jcasType).casFeatCode_set);}
java
public String getSet() { if (Timex2_Type.featOkTst && ((Timex2_Type)jcasType).casFeat_set == null) jcasType.jcas.throwFeatMissing("set", "de.julielab.jules.types.ace.Timex2"); return jcasType.ll_cas.ll_getStringValue(addr, ((Timex2_Type)jcasType).casFeatCode_set);}
[ "public", "String", "getSet", "(", ")", "{", "if", "(", "Timex2_Type", ".", "featOkTst", "&&", "(", "(", "Timex2_Type", ")", "jcasType", ")", ".", "casFeat_set", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatMissing", "(", "\"set\"", ",", "\...
getter for set - gets @generated @return value of the feature
[ "getter", "for", "set", "-", "gets" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/Timex2.java#L174-L177
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/Timex2.java
Timex2.setSet
public void setSet(String v) { if (Timex2_Type.featOkTst && ((Timex2_Type)jcasType).casFeat_set == null) jcasType.jcas.throwFeatMissing("set", "de.julielab.jules.types.ace.Timex2"); jcasType.ll_cas.ll_setStringValue(addr, ((Timex2_Type)jcasType).casFeatCode_set, v);}
java
public void setSet(String v) { if (Timex2_Type.featOkTst && ((Timex2_Type)jcasType).casFeat_set == null) jcasType.jcas.throwFeatMissing("set", "de.julielab.jules.types.ace.Timex2"); jcasType.ll_cas.ll_setStringValue(addr, ((Timex2_Type)jcasType).casFeatCode_set, v);}
[ "public", "void", "setSet", "(", "String", "v", ")", "{", "if", "(", "Timex2_Type", ".", "featOkTst", "&&", "(", "(", "Timex2_Type", ")", "jcasType", ")", ".", "casFeat_set", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatMissing", "(", "\"se...
setter for set - sets @generated @param v value to set into the feature
[ "setter", "for", "set", "-", "sets" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/Timex2.java#L183-L186
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/Timex2.java
Timex2.getNon_specific
public String getNon_specific() { if (Timex2_Type.featOkTst && ((Timex2_Type)jcasType).casFeat_non_specific == null) jcasType.jcas.throwFeatMissing("non_specific", "de.julielab.jules.types.ace.Timex2"); return jcasType.ll_cas.ll_getStringValue(addr, ((Timex2_Type)jcasType).casFeatCode_non_specific);}
java
public String getNon_specific() { if (Timex2_Type.featOkTst && ((Timex2_Type)jcasType).casFeat_non_specific == null) jcasType.jcas.throwFeatMissing("non_specific", "de.julielab.jules.types.ace.Timex2"); return jcasType.ll_cas.ll_getStringValue(addr, ((Timex2_Type)jcasType).casFeatCode_non_specific);}
[ "public", "String", "getNon_specific", "(", ")", "{", "if", "(", "Timex2_Type", ".", "featOkTst", "&&", "(", "(", "Timex2_Type", ")", "jcasType", ")", ".", "casFeat_non_specific", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatMissing", "(", "\"n...
getter for non_specific - gets @generated @return value of the feature
[ "getter", "for", "non_specific", "-", "gets" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/Timex2.java#L196-L199
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/Timex2.java
Timex2.setNon_specific
public void setNon_specific(String v) { if (Timex2_Type.featOkTst && ((Timex2_Type)jcasType).casFeat_non_specific == null) jcasType.jcas.throwFeatMissing("non_specific", "de.julielab.jules.types.ace.Timex2"); jcasType.ll_cas.ll_setStringValue(addr, ((Timex2_Type)jcasType).casFeatCode_non_specific, v);}
java
public void setNon_specific(String v) { if (Timex2_Type.featOkTst && ((Timex2_Type)jcasType).casFeat_non_specific == null) jcasType.jcas.throwFeatMissing("non_specific", "de.julielab.jules.types.ace.Timex2"); jcasType.ll_cas.ll_setStringValue(addr, ((Timex2_Type)jcasType).casFeatCode_non_specific, v);}
[ "public", "void", "setNon_specific", "(", "String", "v", ")", "{", "if", "(", "Timex2_Type", ".", "featOkTst", "&&", "(", "(", "Timex2_Type", ")", "jcasType", ")", ".", "casFeat_non_specific", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatMissin...
setter for non_specific - sets @generated @param v value to set into the feature
[ "setter", "for", "non_specific", "-", "sets" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/Timex2.java#L205-L208
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/Timex2.java
Timex2.getAnchor_dir
public String getAnchor_dir() { if (Timex2_Type.featOkTst && ((Timex2_Type)jcasType).casFeat_anchor_dir == null) jcasType.jcas.throwFeatMissing("anchor_dir", "de.julielab.jules.types.ace.Timex2"); return jcasType.ll_cas.ll_getStringValue(addr, ((Timex2_Type)jcasType).casFeatCode_anchor_dir);}
java
public String getAnchor_dir() { if (Timex2_Type.featOkTst && ((Timex2_Type)jcasType).casFeat_anchor_dir == null) jcasType.jcas.throwFeatMissing("anchor_dir", "de.julielab.jules.types.ace.Timex2"); return jcasType.ll_cas.ll_getStringValue(addr, ((Timex2_Type)jcasType).casFeatCode_anchor_dir);}
[ "public", "String", "getAnchor_dir", "(", ")", "{", "if", "(", "Timex2_Type", ".", "featOkTst", "&&", "(", "(", "Timex2_Type", ")", "jcasType", ")", ".", "casFeat_anchor_dir", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatMissing", "(", "\"ancho...
getter for anchor_dir - gets @generated @return value of the feature
[ "getter", "for", "anchor_dir", "-", "gets" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/Timex2.java#L218-L221
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/Timex2.java
Timex2.setAnchor_dir
public void setAnchor_dir(String v) { if (Timex2_Type.featOkTst && ((Timex2_Type)jcasType).casFeat_anchor_dir == null) jcasType.jcas.throwFeatMissing("anchor_dir", "de.julielab.jules.types.ace.Timex2"); jcasType.ll_cas.ll_setStringValue(addr, ((Timex2_Type)jcasType).casFeatCode_anchor_dir, v);}
java
public void setAnchor_dir(String v) { if (Timex2_Type.featOkTst && ((Timex2_Type)jcasType).casFeat_anchor_dir == null) jcasType.jcas.throwFeatMissing("anchor_dir", "de.julielab.jules.types.ace.Timex2"); jcasType.ll_cas.ll_setStringValue(addr, ((Timex2_Type)jcasType).casFeatCode_anchor_dir, v);}
[ "public", "void", "setAnchor_dir", "(", "String", "v", ")", "{", "if", "(", "Timex2_Type", ".", "featOkTst", "&&", "(", "(", "Timex2_Type", ")", "jcasType", ")", ".", "casFeat_anchor_dir", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatMissing", ...
setter for anchor_dir - sets @generated @param v value to set into the feature
[ "setter", "for", "anchor_dir", "-", "sets" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/Timex2.java#L227-L230
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/genia/Event.java
Event.getEvent_type
public String getEvent_type() { if (Event_Type.featOkTst && ((Event_Type)jcasType).casFeat_event_type == null) jcasType.jcas.throwFeatMissing("event_type", "ch.epfl.bbp.uima.genia.Event"); return jcasType.ll_cas.ll_getStringValue(addr, ((Event_Type)jcasType).casFeatCode_event_type);}
java
public String getEvent_type() { if (Event_Type.featOkTst && ((Event_Type)jcasType).casFeat_event_type == null) jcasType.jcas.throwFeatMissing("event_type", "ch.epfl.bbp.uima.genia.Event"); return jcasType.ll_cas.ll_getStringValue(addr, ((Event_Type)jcasType).casFeatCode_event_type);}
[ "public", "String", "getEvent_type", "(", ")", "{", "if", "(", "Event_Type", ".", "featOkTst", "&&", "(", "(", "Event_Type", ")", "jcasType", ")", ".", "casFeat_event_type", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatMissing", "(", "\"event_t...
getter for event_type - gets @generated @return value of the feature
[ "getter", "for", "event_type", "-", "gets" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/genia/Event.java#L89-L92
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/genia/Event.java
Event.setEvent_type
public void setEvent_type(String v) { if (Event_Type.featOkTst && ((Event_Type)jcasType).casFeat_event_type == null) jcasType.jcas.throwFeatMissing("event_type", "ch.epfl.bbp.uima.genia.Event"); jcasType.ll_cas.ll_setStringValue(addr, ((Event_Type)jcasType).casFeatCode_event_type, v);}
java
public void setEvent_type(String v) { if (Event_Type.featOkTst && ((Event_Type)jcasType).casFeat_event_type == null) jcasType.jcas.throwFeatMissing("event_type", "ch.epfl.bbp.uima.genia.Event"); jcasType.ll_cas.ll_setStringValue(addr, ((Event_Type)jcasType).casFeatCode_event_type, v);}
[ "public", "void", "setEvent_type", "(", "String", "v", ")", "{", "if", "(", "Event_Type", ".", "featOkTst", "&&", "(", "(", "Event_Type", ")", "jcasType", ")", ".", "casFeat_event_type", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatMissing", ...
setter for event_type - sets @generated @param v value to set into the feature
[ "setter", "for", "event_type", "-", "sets" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/genia/Event.java#L98-L101
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/genia/Event.java
Event.getThemes_protein
public FSArray getThemes_protein() { if (Event_Type.featOkTst && ((Event_Type)jcasType).casFeat_themes_protein == null) jcasType.jcas.throwFeatMissing("themes_protein", "ch.epfl.bbp.uima.genia.Event"); return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((Event_Type)jcasType).casFeatCode_themes_protein)));}
java
public FSArray getThemes_protein() { if (Event_Type.featOkTst && ((Event_Type)jcasType).casFeat_themes_protein == null) jcasType.jcas.throwFeatMissing("themes_protein", "ch.epfl.bbp.uima.genia.Event"); return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((Event_Type)jcasType).casFeatCode_themes_protein)));}
[ "public", "FSArray", "getThemes_protein", "(", ")", "{", "if", "(", "Event_Type", ".", "featOkTst", "&&", "(", "(", "Event_Type", ")", "jcasType", ")", ".", "casFeat_themes_protein", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatMissing", "(", "...
getter for themes_protein - gets @generated @return value of the feature
[ "getter", "for", "themes_protein", "-", "gets" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/genia/Event.java#L111-L114
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/genia/Event.java
Event.setThemes_protein
public void setThemes_protein(FSArray v) { if (Event_Type.featOkTst && ((Event_Type)jcasType).casFeat_themes_protein == null) jcasType.jcas.throwFeatMissing("themes_protein", "ch.epfl.bbp.uima.genia.Event"); jcasType.ll_cas.ll_setRefValue(addr, ((Event_Type)jcasType).casFeatCode_themes_protein, jcasType.ll_cas.ll_getFSRef(v));}
java
public void setThemes_protein(FSArray v) { if (Event_Type.featOkTst && ((Event_Type)jcasType).casFeat_themes_protein == null) jcasType.jcas.throwFeatMissing("themes_protein", "ch.epfl.bbp.uima.genia.Event"); jcasType.ll_cas.ll_setRefValue(addr, ((Event_Type)jcasType).casFeatCode_themes_protein, jcasType.ll_cas.ll_getFSRef(v));}
[ "public", "void", "setThemes_protein", "(", "FSArray", "v", ")", "{", "if", "(", "Event_Type", ".", "featOkTst", "&&", "(", "(", "Event_Type", ")", "jcasType", ")", ".", "casFeat_themes_protein", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatMis...
setter for themes_protein - sets @generated @param v value to set into the feature
[ "setter", "for", "themes_protein", "-", "sets" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/genia/Event.java#L120-L123
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/genia/Event.java
Event.getThemes_protein
public Protein getThemes_protein(int i) { if (Event_Type.featOkTst && ((Event_Type)jcasType).casFeat_themes_protein == null) jcasType.jcas.throwFeatMissing("themes_protein", "ch.epfl.bbp.uima.genia.Event"); jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((Event_Type)jcasType).casFeatCode_themes_protein), i); return (Protein)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((Event_Type)jcasType).casFeatCode_themes_protein), i)));}
java
public Protein getThemes_protein(int i) { if (Event_Type.featOkTst && ((Event_Type)jcasType).casFeat_themes_protein == null) jcasType.jcas.throwFeatMissing("themes_protein", "ch.epfl.bbp.uima.genia.Event"); jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((Event_Type)jcasType).casFeatCode_themes_protein), i); return (Protein)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((Event_Type)jcasType).casFeatCode_themes_protein), i)));}
[ "public", "Protein", "getThemes_protein", "(", "int", "i", ")", "{", "if", "(", "Event_Type", ".", "featOkTst", "&&", "(", "(", "Event_Type", ")", "jcasType", ")", ".", "casFeat_themes_protein", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatMiss...
indexed getter for themes_protein - gets an indexed value - @generated @param i index in the array to get @return value of the element at index i
[ "indexed", "getter", "for", "themes_protein", "-", "gets", "an", "indexed", "value", "-" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/genia/Event.java#L130-L134
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/genia/Event.java
Event.setThemes_protein
public void setThemes_protein(int i, Protein v) { if (Event_Type.featOkTst && ((Event_Type)jcasType).casFeat_themes_protein == null) jcasType.jcas.throwFeatMissing("themes_protein", "ch.epfl.bbp.uima.genia.Event"); jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((Event_Type)jcasType).casFeatCode_themes_protein), i); jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((Event_Type)jcasType).casFeatCode_themes_protein), i, jcasType.ll_cas.ll_getFSRef(v));}
java
public void setThemes_protein(int i, Protein v) { if (Event_Type.featOkTst && ((Event_Type)jcasType).casFeat_themes_protein == null) jcasType.jcas.throwFeatMissing("themes_protein", "ch.epfl.bbp.uima.genia.Event"); jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((Event_Type)jcasType).casFeatCode_themes_protein), i); jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((Event_Type)jcasType).casFeatCode_themes_protein), i, jcasType.ll_cas.ll_getFSRef(v));}
[ "public", "void", "setThemes_protein", "(", "int", "i", ",", "Protein", "v", ")", "{", "if", "(", "Event_Type", ".", "featOkTst", "&&", "(", "(", "Event_Type", ")", "jcasType", ")", ".", "casFeat_themes_protein", "==", "null", ")", "jcasType", ".", "jcas",...
indexed setter for themes_protein - sets an indexed value - @generated @param i index in the array to set @param v value to set into the array
[ "indexed", "setter", "for", "themes_protein", "-", "sets", "an", "indexed", "value", "-" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/genia/Event.java#L141-L145
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/genia/Event.java
Event.getCauses_protein
public FSArray getCauses_protein() { if (Event_Type.featOkTst && ((Event_Type)jcasType).casFeat_causes_protein == null) jcasType.jcas.throwFeatMissing("causes_protein", "ch.epfl.bbp.uima.genia.Event"); return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((Event_Type)jcasType).casFeatCode_causes_protein)));}
java
public FSArray getCauses_protein() { if (Event_Type.featOkTst && ((Event_Type)jcasType).casFeat_causes_protein == null) jcasType.jcas.throwFeatMissing("causes_protein", "ch.epfl.bbp.uima.genia.Event"); return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((Event_Type)jcasType).casFeatCode_causes_protein)));}
[ "public", "FSArray", "getCauses_protein", "(", ")", "{", "if", "(", "Event_Type", ".", "featOkTst", "&&", "(", "(", "Event_Type", ")", "jcasType", ")", ".", "casFeat_causes_protein", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatMissing", "(", "...
getter for causes_protein - gets @generated @return value of the feature
[ "getter", "for", "causes_protein", "-", "gets" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/genia/Event.java#L155-L158
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/genia/Event.java
Event.setCauses_protein
public void setCauses_protein(FSArray v) { if (Event_Type.featOkTst && ((Event_Type)jcasType).casFeat_causes_protein == null) jcasType.jcas.throwFeatMissing("causes_protein", "ch.epfl.bbp.uima.genia.Event"); jcasType.ll_cas.ll_setRefValue(addr, ((Event_Type)jcasType).casFeatCode_causes_protein, jcasType.ll_cas.ll_getFSRef(v));}
java
public void setCauses_protein(FSArray v) { if (Event_Type.featOkTst && ((Event_Type)jcasType).casFeat_causes_protein == null) jcasType.jcas.throwFeatMissing("causes_protein", "ch.epfl.bbp.uima.genia.Event"); jcasType.ll_cas.ll_setRefValue(addr, ((Event_Type)jcasType).casFeatCode_causes_protein, jcasType.ll_cas.ll_getFSRef(v));}
[ "public", "void", "setCauses_protein", "(", "FSArray", "v", ")", "{", "if", "(", "Event_Type", ".", "featOkTst", "&&", "(", "(", "Event_Type", ")", "jcasType", ")", ".", "casFeat_causes_protein", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatMis...
setter for causes_protein - sets @generated @param v value to set into the feature
[ "setter", "for", "causes_protein", "-", "sets" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/genia/Event.java#L164-L167
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/genia/Event.java
Event.getCauses_protein
public Protein getCauses_protein(int i) { if (Event_Type.featOkTst && ((Event_Type)jcasType).casFeat_causes_protein == null) jcasType.jcas.throwFeatMissing("causes_protein", "ch.epfl.bbp.uima.genia.Event"); jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((Event_Type)jcasType).casFeatCode_causes_protein), i); return (Protein)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((Event_Type)jcasType).casFeatCode_causes_protein), i)));}
java
public Protein getCauses_protein(int i) { if (Event_Type.featOkTst && ((Event_Type)jcasType).casFeat_causes_protein == null) jcasType.jcas.throwFeatMissing("causes_protein", "ch.epfl.bbp.uima.genia.Event"); jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((Event_Type)jcasType).casFeatCode_causes_protein), i); return (Protein)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((Event_Type)jcasType).casFeatCode_causes_protein), i)));}
[ "public", "Protein", "getCauses_protein", "(", "int", "i", ")", "{", "if", "(", "Event_Type", ".", "featOkTst", "&&", "(", "(", "Event_Type", ")", "jcasType", ")", ".", "casFeat_causes_protein", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatMiss...
indexed getter for causes_protein - gets an indexed value - @generated @param i index in the array to get @return value of the element at index i
[ "indexed", "getter", "for", "causes_protein", "-", "gets", "an", "indexed", "value", "-" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/genia/Event.java#L174-L178
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/genia/Event.java
Event.setCauses_protein
public void setCauses_protein(int i, Protein v) { if (Event_Type.featOkTst && ((Event_Type)jcasType).casFeat_causes_protein == null) jcasType.jcas.throwFeatMissing("causes_protein", "ch.epfl.bbp.uima.genia.Event"); jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((Event_Type)jcasType).casFeatCode_causes_protein), i); jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((Event_Type)jcasType).casFeatCode_causes_protein), i, jcasType.ll_cas.ll_getFSRef(v));}
java
public void setCauses_protein(int i, Protein v) { if (Event_Type.featOkTst && ((Event_Type)jcasType).casFeat_causes_protein == null) jcasType.jcas.throwFeatMissing("causes_protein", "ch.epfl.bbp.uima.genia.Event"); jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((Event_Type)jcasType).casFeatCode_causes_protein), i); jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((Event_Type)jcasType).casFeatCode_causes_protein), i, jcasType.ll_cas.ll_getFSRef(v));}
[ "public", "void", "setCauses_protein", "(", "int", "i", ",", "Protein", "v", ")", "{", "if", "(", "Event_Type", ".", "featOkTst", "&&", "(", "(", "Event_Type", ")", "jcasType", ")", ".", "casFeat_causes_protein", "==", "null", ")", "jcasType", ".", "jcas",...
indexed setter for causes_protein - sets an indexed value - @generated @param i index in the array to set @param v value to set into the array
[ "indexed", "setter", "for", "causes_protein", "-", "sets", "an", "indexed", "value", "-" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/genia/Event.java#L185-L189
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/genia/Event.java
Event.getSite
public String getSite() { if (Event_Type.featOkTst && ((Event_Type)jcasType).casFeat_site == null) jcasType.jcas.throwFeatMissing("site", "ch.epfl.bbp.uima.genia.Event"); return jcasType.ll_cas.ll_getStringValue(addr, ((Event_Type)jcasType).casFeatCode_site);}
java
public String getSite() { if (Event_Type.featOkTst && ((Event_Type)jcasType).casFeat_site == null) jcasType.jcas.throwFeatMissing("site", "ch.epfl.bbp.uima.genia.Event"); return jcasType.ll_cas.ll_getStringValue(addr, ((Event_Type)jcasType).casFeatCode_site);}
[ "public", "String", "getSite", "(", ")", "{", "if", "(", "Event_Type", ".", "featOkTst", "&&", "(", "(", "Event_Type", ")", "jcasType", ")", ".", "casFeat_site", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatMissing", "(", "\"site\"", ",", "...
getter for site - gets @generated @return value of the feature
[ "getter", "for", "site", "-", "gets" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/genia/Event.java#L199-L202
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/genia/Event.java
Event.setSite
public void setSite(String v) { if (Event_Type.featOkTst && ((Event_Type)jcasType).casFeat_site == null) jcasType.jcas.throwFeatMissing("site", "ch.epfl.bbp.uima.genia.Event"); jcasType.ll_cas.ll_setStringValue(addr, ((Event_Type)jcasType).casFeatCode_site, v);}
java
public void setSite(String v) { if (Event_Type.featOkTst && ((Event_Type)jcasType).casFeat_site == null) jcasType.jcas.throwFeatMissing("site", "ch.epfl.bbp.uima.genia.Event"); jcasType.ll_cas.ll_setStringValue(addr, ((Event_Type)jcasType).casFeatCode_site, v);}
[ "public", "void", "setSite", "(", "String", "v", ")", "{", "if", "(", "Event_Type", ".", "featOkTst", "&&", "(", "(", "Event_Type", ")", "jcasType", ")", ".", "casFeat_site", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatMissing", "(", "\"si...
setter for site - sets @generated @param v value to set into the feature
[ "setter", "for", "site", "-", "sets" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/genia/Event.java#L208-L211
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/genia/Event.java
Event.getThemes_event
public FSArray getThemes_event() { if (Event_Type.featOkTst && ((Event_Type)jcasType).casFeat_themes_event == null) jcasType.jcas.throwFeatMissing("themes_event", "ch.epfl.bbp.uima.genia.Event"); return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((Event_Type)jcasType).casFeatCode_themes_event)));}
java
public FSArray getThemes_event() { if (Event_Type.featOkTst && ((Event_Type)jcasType).casFeat_themes_event == null) jcasType.jcas.throwFeatMissing("themes_event", "ch.epfl.bbp.uima.genia.Event"); return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((Event_Type)jcasType).casFeatCode_themes_event)));}
[ "public", "FSArray", "getThemes_event", "(", ")", "{", "if", "(", "Event_Type", ".", "featOkTst", "&&", "(", "(", "Event_Type", ")", "jcasType", ")", ".", "casFeat_themes_event", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatMissing", "(", "\"th...
getter for themes_event - gets @generated @return value of the feature
[ "getter", "for", "themes_event", "-", "gets" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/genia/Event.java#L243-L246
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/genia/Event.java
Event.setThemes_event
public void setThemes_event(FSArray v) { if (Event_Type.featOkTst && ((Event_Type)jcasType).casFeat_themes_event == null) jcasType.jcas.throwFeatMissing("themes_event", "ch.epfl.bbp.uima.genia.Event"); jcasType.ll_cas.ll_setRefValue(addr, ((Event_Type)jcasType).casFeatCode_themes_event, jcasType.ll_cas.ll_getFSRef(v));}
java
public void setThemes_event(FSArray v) { if (Event_Type.featOkTst && ((Event_Type)jcasType).casFeat_themes_event == null) jcasType.jcas.throwFeatMissing("themes_event", "ch.epfl.bbp.uima.genia.Event"); jcasType.ll_cas.ll_setRefValue(addr, ((Event_Type)jcasType).casFeatCode_themes_event, jcasType.ll_cas.ll_getFSRef(v));}
[ "public", "void", "setThemes_event", "(", "FSArray", "v", ")", "{", "if", "(", "Event_Type", ".", "featOkTst", "&&", "(", "(", "Event_Type", ")", "jcasType", ")", ".", "casFeat_themes_event", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatMissing...
setter for themes_event - sets @generated @param v value to set into the feature
[ "setter", "for", "themes_event", "-", "sets" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/genia/Event.java#L252-L255
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/genia/Event.java
Event.getThemes_event
public Event getThemes_event(int i) { if (Event_Type.featOkTst && ((Event_Type)jcasType).casFeat_themes_event == null) jcasType.jcas.throwFeatMissing("themes_event", "ch.epfl.bbp.uima.genia.Event"); jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((Event_Type)jcasType).casFeatCode_themes_event), i); return (Event)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((Event_Type)jcasType).casFeatCode_themes_event), i)));}
java
public Event getThemes_event(int i) { if (Event_Type.featOkTst && ((Event_Type)jcasType).casFeat_themes_event == null) jcasType.jcas.throwFeatMissing("themes_event", "ch.epfl.bbp.uima.genia.Event"); jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((Event_Type)jcasType).casFeatCode_themes_event), i); return (Event)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((Event_Type)jcasType).casFeatCode_themes_event), i)));}
[ "public", "Event", "getThemes_event", "(", "int", "i", ")", "{", "if", "(", "Event_Type", ".", "featOkTst", "&&", "(", "(", "Event_Type", ")", "jcasType", ")", ".", "casFeat_themes_event", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatMissing", ...
indexed getter for themes_event - gets an indexed value - @generated @param i index in the array to get @return value of the element at index i
[ "indexed", "getter", "for", "themes_event", "-", "gets", "an", "indexed", "value", "-" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/genia/Event.java#L262-L266
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/genia/Event.java
Event.setThemes_event
public void setThemes_event(int i, Event v) { if (Event_Type.featOkTst && ((Event_Type)jcasType).casFeat_themes_event == null) jcasType.jcas.throwFeatMissing("themes_event", "ch.epfl.bbp.uima.genia.Event"); jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((Event_Type)jcasType).casFeatCode_themes_event), i); jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((Event_Type)jcasType).casFeatCode_themes_event), i, jcasType.ll_cas.ll_getFSRef(v));}
java
public void setThemes_event(int i, Event v) { if (Event_Type.featOkTst && ((Event_Type)jcasType).casFeat_themes_event == null) jcasType.jcas.throwFeatMissing("themes_event", "ch.epfl.bbp.uima.genia.Event"); jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((Event_Type)jcasType).casFeatCode_themes_event), i); jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((Event_Type)jcasType).casFeatCode_themes_event), i, jcasType.ll_cas.ll_getFSRef(v));}
[ "public", "void", "setThemes_event", "(", "int", "i", ",", "Event", "v", ")", "{", "if", "(", "Event_Type", ".", "featOkTst", "&&", "(", "(", "Event_Type", ")", "jcasType", ")", ".", "casFeat_themes_event", "==", "null", ")", "jcasType", ".", "jcas", "."...
indexed setter for themes_event - sets an indexed value - @generated @param i index in the array to set @param v value to set into the array
[ "indexed", "setter", "for", "themes_event", "-", "sets", "an", "indexed", "value", "-" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/genia/Event.java#L273-L277
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/genia/Event.java
Event.getCauses_event
public FSArray getCauses_event() { if (Event_Type.featOkTst && ((Event_Type)jcasType).casFeat_causes_event == null) jcasType.jcas.throwFeatMissing("causes_event", "ch.epfl.bbp.uima.genia.Event"); return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((Event_Type)jcasType).casFeatCode_causes_event)));}
java
public FSArray getCauses_event() { if (Event_Type.featOkTst && ((Event_Type)jcasType).casFeat_causes_event == null) jcasType.jcas.throwFeatMissing("causes_event", "ch.epfl.bbp.uima.genia.Event"); return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((Event_Type)jcasType).casFeatCode_causes_event)));}
[ "public", "FSArray", "getCauses_event", "(", ")", "{", "if", "(", "Event_Type", ".", "featOkTst", "&&", "(", "(", "Event_Type", ")", "jcasType", ")", ".", "casFeat_causes_event", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatMissing", "(", "\"ca...
getter for causes_event - gets @generated @return value of the feature
[ "getter", "for", "causes_event", "-", "gets" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/genia/Event.java#L287-L290
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/genia/Event.java
Event.setCauses_event
public void setCauses_event(FSArray v) { if (Event_Type.featOkTst && ((Event_Type)jcasType).casFeat_causes_event == null) jcasType.jcas.throwFeatMissing("causes_event", "ch.epfl.bbp.uima.genia.Event"); jcasType.ll_cas.ll_setRefValue(addr, ((Event_Type)jcasType).casFeatCode_causes_event, jcasType.ll_cas.ll_getFSRef(v));}
java
public void setCauses_event(FSArray v) { if (Event_Type.featOkTst && ((Event_Type)jcasType).casFeat_causes_event == null) jcasType.jcas.throwFeatMissing("causes_event", "ch.epfl.bbp.uima.genia.Event"); jcasType.ll_cas.ll_setRefValue(addr, ((Event_Type)jcasType).casFeatCode_causes_event, jcasType.ll_cas.ll_getFSRef(v));}
[ "public", "void", "setCauses_event", "(", "FSArray", "v", ")", "{", "if", "(", "Event_Type", ".", "featOkTst", "&&", "(", "(", "Event_Type", ")", "jcasType", ")", ".", "casFeat_causes_event", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatMissing...
setter for causes_event - sets @generated @param v value to set into the feature
[ "setter", "for", "causes_event", "-", "sets" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/genia/Event.java#L296-L299
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/genia/Event.java
Event.getCauses_event
public Event getCauses_event(int i) { if (Event_Type.featOkTst && ((Event_Type)jcasType).casFeat_causes_event == null) jcasType.jcas.throwFeatMissing("causes_event", "ch.epfl.bbp.uima.genia.Event"); jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((Event_Type)jcasType).casFeatCode_causes_event), i); return (Event)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((Event_Type)jcasType).casFeatCode_causes_event), i)));}
java
public Event getCauses_event(int i) { if (Event_Type.featOkTst && ((Event_Type)jcasType).casFeat_causes_event == null) jcasType.jcas.throwFeatMissing("causes_event", "ch.epfl.bbp.uima.genia.Event"); jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((Event_Type)jcasType).casFeatCode_causes_event), i); return (Event)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((Event_Type)jcasType).casFeatCode_causes_event), i)));}
[ "public", "Event", "getCauses_event", "(", "int", "i", ")", "{", "if", "(", "Event_Type", ".", "featOkTst", "&&", "(", "(", "Event_Type", ")", "jcasType", ")", ".", "casFeat_causes_event", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatMissing", ...
indexed getter for causes_event - gets an indexed value - @generated @param i index in the array to get @return value of the element at index i
[ "indexed", "getter", "for", "causes_event", "-", "gets", "an", "indexed", "value", "-" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/genia/Event.java#L306-L310
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/genia/Event.java
Event.setCauses_event
public void setCauses_event(int i, Event v) { if (Event_Type.featOkTst && ((Event_Type)jcasType).casFeat_causes_event == null) jcasType.jcas.throwFeatMissing("causes_event", "ch.epfl.bbp.uima.genia.Event"); jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((Event_Type)jcasType).casFeatCode_causes_event), i); jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((Event_Type)jcasType).casFeatCode_causes_event), i, jcasType.ll_cas.ll_getFSRef(v));}
java
public void setCauses_event(int i, Event v) { if (Event_Type.featOkTst && ((Event_Type)jcasType).casFeat_causes_event == null) jcasType.jcas.throwFeatMissing("causes_event", "ch.epfl.bbp.uima.genia.Event"); jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((Event_Type)jcasType).casFeatCode_causes_event), i); jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((Event_Type)jcasType).casFeatCode_causes_event), i, jcasType.ll_cas.ll_getFSRef(v));}
[ "public", "void", "setCauses_event", "(", "int", "i", ",", "Event", "v", ")", "{", "if", "(", "Event_Type", ".", "featOkTst", "&&", "(", "(", "Event_Type", ")", "jcasType", ")", ".", "casFeat_causes_event", "==", "null", ")", "jcasType", ".", "jcas", "."...
indexed setter for causes_event - sets an indexed value - @generated @param i index in the array to set @param v value to set into the array
[ "indexed", "setter", "for", "causes_event", "-", "sets", "an", "indexed", "value", "-" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/ch/epfl/bbp/uima/genia/Event.java#L317-L321
train
BlueBrain/bluima
modules/bluima_opennlp/src/main/java/ch/epfl/bbp/shaded/opennlp/tools/parser/BuildContextGenerator.java
BuildContextGenerator.punct
private String punct(Parse punct, int i) { StringBuffer feat = new StringBuffer(5); feat.append(i).append("="); feat.append(punct.getType()); return (feat.toString()); }
java
private String punct(Parse punct, int i) { StringBuffer feat = new StringBuffer(5); feat.append(i).append("="); feat.append(punct.getType()); return (feat.toString()); }
[ "private", "String", "punct", "(", "Parse", "punct", ",", "int", "i", ")", "{", "StringBuffer", "feat", "=", "new", "StringBuffer", "(", "5", ")", ";", "feat", ".", "append", "(", "i", ")", ".", "append", "(", "\"=\"", ")", ";", "feat", ".", "appen...
Creates punctuation feature for the specified punctuation at the specfied index. @param punct The punctuation which is in context. @param i The index of the punctuation with relative to the parse. @return Punctuation feature for the specified parse and the specified punctuation at the specfied index.
[ "Creates", "punctuation", "feature", "for", "the", "specified", "punctuation", "at", "the", "specfied", "index", "." ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_opennlp/src/main/java/ch/epfl/bbp/shaded/opennlp/tools/parser/BuildContextGenerator.java#L70-L75
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/NounFeats.java
NounFeats.getGender
public String getGender() { if (NounFeats_Type.featOkTst && ((NounFeats_Type)jcasType).casFeat_gender == null) jcasType.jcas.throwFeatMissing("gender", "de.julielab.jules.types.NounFeats"); return jcasType.ll_cas.ll_getStringValue(addr, ((NounFeats_Type)jcasType).casFeatCode_gender);}
java
public String getGender() { if (NounFeats_Type.featOkTst && ((NounFeats_Type)jcasType).casFeat_gender == null) jcasType.jcas.throwFeatMissing("gender", "de.julielab.jules.types.NounFeats"); return jcasType.ll_cas.ll_getStringValue(addr, ((NounFeats_Type)jcasType).casFeatCode_gender);}
[ "public", "String", "getGender", "(", ")", "{", "if", "(", "NounFeats_Type", ".", "featOkTst", "&&", "(", "(", "NounFeats_Type", ")", "jcasType", ")", ".", "casFeat_gender", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatMissing", "(", "\"gender\...
getter for gender - gets Gender, C @generated @return value of the feature
[ "getter", "for", "gender", "-", "gets", "Gender", "C" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/NounFeats.java#L85-L88
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/EntityMention.java
EntityMention.getLdcatr
public String getLdcatr() { if (EntityMention_Type.featOkTst && ((EntityMention_Type)jcasType).casFeat_ldcatr == null) jcasType.jcas.throwFeatMissing("ldcatr", "de.julielab.jules.types.ace.EntityMention"); return jcasType.ll_cas.ll_getStringValue(addr, ((EntityMention_Type)jcasType).casFeatCode_ldcatr);}
java
public String getLdcatr() { if (EntityMention_Type.featOkTst && ((EntityMention_Type)jcasType).casFeat_ldcatr == null) jcasType.jcas.throwFeatMissing("ldcatr", "de.julielab.jules.types.ace.EntityMention"); return jcasType.ll_cas.ll_getStringValue(addr, ((EntityMention_Type)jcasType).casFeatCode_ldcatr);}
[ "public", "String", "getLdcatr", "(", ")", "{", "if", "(", "EntityMention_Type", ".", "featOkTst", "&&", "(", "(", "EntityMention_Type", ")", "jcasType", ")", ".", "casFeat_ldcatr", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatMissing", "(", "\...
getter for ldcatr - gets @generated @return value of the feature
[ "getter", "for", "ldcatr", "-", "gets" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/EntityMention.java#L107-L110
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/EntityMention.java
EntityMention.setLdcatr
public void setLdcatr(String v) { if (EntityMention_Type.featOkTst && ((EntityMention_Type)jcasType).casFeat_ldcatr == null) jcasType.jcas.throwFeatMissing("ldcatr", "de.julielab.jules.types.ace.EntityMention"); jcasType.ll_cas.ll_setStringValue(addr, ((EntityMention_Type)jcasType).casFeatCode_ldcatr, v);}
java
public void setLdcatr(String v) { if (EntityMention_Type.featOkTst && ((EntityMention_Type)jcasType).casFeat_ldcatr == null) jcasType.jcas.throwFeatMissing("ldcatr", "de.julielab.jules.types.ace.EntityMention"); jcasType.ll_cas.ll_setStringValue(addr, ((EntityMention_Type)jcasType).casFeatCode_ldcatr, v);}
[ "public", "void", "setLdcatr", "(", "String", "v", ")", "{", "if", "(", "EntityMention_Type", ".", "featOkTst", "&&", "(", "(", "EntityMention_Type", ")", "jcasType", ")", ".", "casFeat_ldcatr", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatMiss...
setter for ldcatr - sets @generated @param v value to set into the feature
[ "setter", "for", "ldcatr", "-", "sets" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/EntityMention.java#L116-L119
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/EntityMention.java
EntityMention.getRole
public String getRole() { if (EntityMention_Type.featOkTst && ((EntityMention_Type)jcasType).casFeat_role == null) jcasType.jcas.throwFeatMissing("role", "de.julielab.jules.types.ace.EntityMention"); return jcasType.ll_cas.ll_getStringValue(addr, ((EntityMention_Type)jcasType).casFeatCode_role);}
java
public String getRole() { if (EntityMention_Type.featOkTst && ((EntityMention_Type)jcasType).casFeat_role == null) jcasType.jcas.throwFeatMissing("role", "de.julielab.jules.types.ace.EntityMention"); return jcasType.ll_cas.ll_getStringValue(addr, ((EntityMention_Type)jcasType).casFeatCode_role);}
[ "public", "String", "getRole", "(", ")", "{", "if", "(", "EntityMention_Type", ".", "featOkTst", "&&", "(", "(", "EntityMention_Type", ")", "jcasType", ")", ".", "casFeat_role", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatMissing", "(", "\"rol...
getter for role - gets @generated @return value of the feature
[ "getter", "for", "role", "-", "gets" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/EntityMention.java#L129-L132
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/EntityMention.java
EntityMention.getMetonymy_mention
public String getMetonymy_mention() { if (EntityMention_Type.featOkTst && ((EntityMention_Type)jcasType).casFeat_metonymy_mention == null) jcasType.jcas.throwFeatMissing("metonymy_mention", "de.julielab.jules.types.ace.EntityMention"); return jcasType.ll_cas.ll_getStringValue(addr, ((EntityMention_Type)jcasType).casFeatCode_metonymy_mention);}
java
public String getMetonymy_mention() { if (EntityMention_Type.featOkTst && ((EntityMention_Type)jcasType).casFeat_metonymy_mention == null) jcasType.jcas.throwFeatMissing("metonymy_mention", "de.julielab.jules.types.ace.EntityMention"); return jcasType.ll_cas.ll_getStringValue(addr, ((EntityMention_Type)jcasType).casFeatCode_metonymy_mention);}
[ "public", "String", "getMetonymy_mention", "(", ")", "{", "if", "(", "EntityMention_Type", ".", "featOkTst", "&&", "(", "(", "EntityMention_Type", ")", "jcasType", ")", ".", "casFeat_metonymy_mention", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatM...
getter for metonymy_mention - gets @generated @return value of the feature
[ "getter", "for", "metonymy_mention", "-", "gets" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/EntityMention.java#L151-L154
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/EntityMention.java
EntityMention.setMetonymy_mention
public void setMetonymy_mention(String v) { if (EntityMention_Type.featOkTst && ((EntityMention_Type)jcasType).casFeat_metonymy_mention == null) jcasType.jcas.throwFeatMissing("metonymy_mention", "de.julielab.jules.types.ace.EntityMention"); jcasType.ll_cas.ll_setStringValue(addr, ((EntityMention_Type)jcasType).casFeatCode_metonymy_mention, v);}
java
public void setMetonymy_mention(String v) { if (EntityMention_Type.featOkTst && ((EntityMention_Type)jcasType).casFeat_metonymy_mention == null) jcasType.jcas.throwFeatMissing("metonymy_mention", "de.julielab.jules.types.ace.EntityMention"); jcasType.ll_cas.ll_setStringValue(addr, ((EntityMention_Type)jcasType).casFeatCode_metonymy_mention, v);}
[ "public", "void", "setMetonymy_mention", "(", "String", "v", ")", "{", "if", "(", "EntityMention_Type", ".", "featOkTst", "&&", "(", "(", "EntityMention_Type", ")", "jcasType", ")", ".", "casFeat_metonymy_mention", "==", "null", ")", "jcasType", ".", "jcas", "...
setter for metonymy_mention - sets @generated @param v value to set into the feature
[ "setter", "for", "metonymy_mention", "-", "sets" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/EntityMention.java#L160-L163
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/EntityMention.java
EntityMention.getMention_type
public String getMention_type() { if (EntityMention_Type.featOkTst && ((EntityMention_Type)jcasType).casFeat_mention_type == null) jcasType.jcas.throwFeatMissing("mention_type", "de.julielab.jules.types.ace.EntityMention"); return jcasType.ll_cas.ll_getStringValue(addr, ((EntityMention_Type)jcasType).casFeatCode_mention_type);}
java
public String getMention_type() { if (EntityMention_Type.featOkTst && ((EntityMention_Type)jcasType).casFeat_mention_type == null) jcasType.jcas.throwFeatMissing("mention_type", "de.julielab.jules.types.ace.EntityMention"); return jcasType.ll_cas.ll_getStringValue(addr, ((EntityMention_Type)jcasType).casFeatCode_mention_type);}
[ "public", "String", "getMention_type", "(", ")", "{", "if", "(", "EntityMention_Type", ".", "featOkTst", "&&", "(", "(", "EntityMention_Type", ")", "jcasType", ")", ".", "casFeat_mention_type", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatMissing",...
getter for mention_type - gets @generated @return value of the feature
[ "getter", "for", "mention_type", "-", "gets" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/EntityMention.java#L173-L176
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/EntityMention.java
EntityMention.setMention_type
public void setMention_type(String v) { if (EntityMention_Type.featOkTst && ((EntityMention_Type)jcasType).casFeat_mention_type == null) jcasType.jcas.throwFeatMissing("mention_type", "de.julielab.jules.types.ace.EntityMention"); jcasType.ll_cas.ll_setStringValue(addr, ((EntityMention_Type)jcasType).casFeatCode_mention_type, v);}
java
public void setMention_type(String v) { if (EntityMention_Type.featOkTst && ((EntityMention_Type)jcasType).casFeat_mention_type == null) jcasType.jcas.throwFeatMissing("mention_type", "de.julielab.jules.types.ace.EntityMention"); jcasType.ll_cas.ll_setStringValue(addr, ((EntityMention_Type)jcasType).casFeatCode_mention_type, v);}
[ "public", "void", "setMention_type", "(", "String", "v", ")", "{", "if", "(", "EntityMention_Type", ".", "featOkTst", "&&", "(", "(", "EntityMention_Type", ")", "jcasType", ")", ".", "casFeat_mention_type", "==", "null", ")", "jcasType", ".", "jcas", ".", "t...
setter for mention_type - sets @generated @param v value to set into the feature
[ "setter", "for", "mention_type", "-", "sets" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/EntityMention.java#L182-L185
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/EntityMention.java
EntityMention.getMention_ldctype
public String getMention_ldctype() { if (EntityMention_Type.featOkTst && ((EntityMention_Type)jcasType).casFeat_mention_ldctype == null) jcasType.jcas.throwFeatMissing("mention_ldctype", "de.julielab.jules.types.ace.EntityMention"); return jcasType.ll_cas.ll_getStringValue(addr, ((EntityMention_Type)jcasType).casFeatCode_mention_ldctype);}
java
public String getMention_ldctype() { if (EntityMention_Type.featOkTst && ((EntityMention_Type)jcasType).casFeat_mention_ldctype == null) jcasType.jcas.throwFeatMissing("mention_ldctype", "de.julielab.jules.types.ace.EntityMention"); return jcasType.ll_cas.ll_getStringValue(addr, ((EntityMention_Type)jcasType).casFeatCode_mention_ldctype);}
[ "public", "String", "getMention_ldctype", "(", ")", "{", "if", "(", "EntityMention_Type", ".", "featOkTst", "&&", "(", "(", "EntityMention_Type", ")", "jcasType", ")", ".", "casFeat_mention_ldctype", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatMis...
getter for mention_ldctype - gets @generated @return value of the feature
[ "getter", "for", "mention_ldctype", "-", "gets" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/EntityMention.java#L195-L198
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/EntityMention.java
EntityMention.setMention_ldctype
public void setMention_ldctype(String v) { if (EntityMention_Type.featOkTst && ((EntityMention_Type)jcasType).casFeat_mention_ldctype == null) jcasType.jcas.throwFeatMissing("mention_ldctype", "de.julielab.jules.types.ace.EntityMention"); jcasType.ll_cas.ll_setStringValue(addr, ((EntityMention_Type)jcasType).casFeatCode_mention_ldctype, v);}
java
public void setMention_ldctype(String v) { if (EntityMention_Type.featOkTst && ((EntityMention_Type)jcasType).casFeat_mention_ldctype == null) jcasType.jcas.throwFeatMissing("mention_ldctype", "de.julielab.jules.types.ace.EntityMention"); jcasType.ll_cas.ll_setStringValue(addr, ((EntityMention_Type)jcasType).casFeatCode_mention_ldctype, v);}
[ "public", "void", "setMention_ldctype", "(", "String", "v", ")", "{", "if", "(", "EntityMention_Type", ".", "featOkTst", "&&", "(", "(", "EntityMention_Type", ")", "jcasType", ")", ".", "casFeat_mention_ldctype", "==", "null", ")", "jcasType", ".", "jcas", "."...
setter for mention_ldctype - sets @generated @param v value to set into the feature
[ "setter", "for", "mention_ldctype", "-", "sets" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/EntityMention.java#L204-L207
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/EntityMention.java
EntityMention.getEntity_ref
public Entity getEntity_ref() { if (EntityMention_Type.featOkTst && ((EntityMention_Type)jcasType).casFeat_entity_ref == null) jcasType.jcas.throwFeatMissing("entity_ref", "de.julielab.jules.types.ace.EntityMention"); return (Entity)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((EntityMention_Type)jcasType).casFeatCode_entity_ref)));}
java
public Entity getEntity_ref() { if (EntityMention_Type.featOkTst && ((EntityMention_Type)jcasType).casFeat_entity_ref == null) jcasType.jcas.throwFeatMissing("entity_ref", "de.julielab.jules.types.ace.EntityMention"); return (Entity)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((EntityMention_Type)jcasType).casFeatCode_entity_ref)));}
[ "public", "Entity", "getEntity_ref", "(", ")", "{", "if", "(", "EntityMention_Type", ".", "featOkTst", "&&", "(", "(", "EntityMention_Type", ")", "jcasType", ")", ".", "casFeat_entity_ref", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatMissing", "...
getter for entity_ref - gets @generated @return value of the feature
[ "getter", "for", "entity_ref", "-", "gets" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/EntityMention.java#L217-L220
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/EntityMention.java
EntityMention.setEntity_ref
public void setEntity_ref(Entity v) { if (EntityMention_Type.featOkTst && ((EntityMention_Type)jcasType).casFeat_entity_ref == null) jcasType.jcas.throwFeatMissing("entity_ref", "de.julielab.jules.types.ace.EntityMention"); jcasType.ll_cas.ll_setRefValue(addr, ((EntityMention_Type)jcasType).casFeatCode_entity_ref, jcasType.ll_cas.ll_getFSRef(v));}
java
public void setEntity_ref(Entity v) { if (EntityMention_Type.featOkTst && ((EntityMention_Type)jcasType).casFeat_entity_ref == null) jcasType.jcas.throwFeatMissing("entity_ref", "de.julielab.jules.types.ace.EntityMention"); jcasType.ll_cas.ll_setRefValue(addr, ((EntityMention_Type)jcasType).casFeatCode_entity_ref, jcasType.ll_cas.ll_getFSRef(v));}
[ "public", "void", "setEntity_ref", "(", "Entity", "v", ")", "{", "if", "(", "EntityMention_Type", ".", "featOkTst", "&&", "(", "(", "EntityMention_Type", ")", "jcasType", ")", ".", "casFeat_entity_ref", "==", "null", ")", "jcasType", ".", "jcas", ".", "throw...
setter for entity_ref - sets @generated @param v value to set into the feature
[ "setter", "for", "entity_ref", "-", "sets" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ace/EntityMention.java#L226-L229
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ConceptMention.java
ConceptMention.getSpecificType
public String getSpecificType() { if (ConceptMention_Type.featOkTst && ((ConceptMention_Type)jcasType).casFeat_specificType == null) jcasType.jcas.throwFeatMissing("specificType", "de.julielab.jules.types.ConceptMention"); return jcasType.ll_cas.ll_getStringValue(addr, ((ConceptMention_Type)jcasType).casFeatCode_specificType);}
java
public String getSpecificType() { if (ConceptMention_Type.featOkTst && ((ConceptMention_Type)jcasType).casFeat_specificType == null) jcasType.jcas.throwFeatMissing("specificType", "de.julielab.jules.types.ConceptMention"); return jcasType.ll_cas.ll_getStringValue(addr, ((ConceptMention_Type)jcasType).casFeatCode_specificType);}
[ "public", "String", "getSpecificType", "(", ")", "{", "if", "(", "ConceptMention_Type", ".", "featOkTst", "&&", "(", "(", "ConceptMention_Type", ")", "jcasType", ")", ".", "casFeat_specificType", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatMissing...
getter for specificType - gets @generated @return value of the feature
[ "getter", "for", "specificType", "-", "gets" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ConceptMention.java#L87-L90
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ConceptMention.java
ConceptMention.setSpecificType
public void setSpecificType(String v) { if (ConceptMention_Type.featOkTst && ((ConceptMention_Type)jcasType).casFeat_specificType == null) jcasType.jcas.throwFeatMissing("specificType", "de.julielab.jules.types.ConceptMention"); jcasType.ll_cas.ll_setStringValue(addr, ((ConceptMention_Type)jcasType).casFeatCode_specificType, v);}
java
public void setSpecificType(String v) { if (ConceptMention_Type.featOkTst && ((ConceptMention_Type)jcasType).casFeat_specificType == null) jcasType.jcas.throwFeatMissing("specificType", "de.julielab.jules.types.ConceptMention"); jcasType.ll_cas.ll_setStringValue(addr, ((ConceptMention_Type)jcasType).casFeatCode_specificType, v);}
[ "public", "void", "setSpecificType", "(", "String", "v", ")", "{", "if", "(", "ConceptMention_Type", ".", "featOkTst", "&&", "(", "(", "ConceptMention_Type", ")", "jcasType", ")", ".", "casFeat_specificType", "==", "null", ")", "jcasType", ".", "jcas", ".", ...
setter for specificType - sets @generated @param v value to set into the feature
[ "setter", "for", "specificType", "-", "sets" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ConceptMention.java#L96-L99
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ConceptMention.java
ConceptMention.getRef
public TOP getRef() { if (ConceptMention_Type.featOkTst && ((ConceptMention_Type)jcasType).casFeat_ref == null) jcasType.jcas.throwFeatMissing("ref", "de.julielab.jules.types.ConceptMention"); return (TOP)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((ConceptMention_Type)jcasType).casFeatCode_ref)));}
java
public TOP getRef() { if (ConceptMention_Type.featOkTst && ((ConceptMention_Type)jcasType).casFeat_ref == null) jcasType.jcas.throwFeatMissing("ref", "de.julielab.jules.types.ConceptMention"); return (TOP)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((ConceptMention_Type)jcasType).casFeatCode_ref)));}
[ "public", "TOP", "getRef", "(", ")", "{", "if", "(", "ConceptMention_Type", ".", "featOkTst", "&&", "(", "(", "ConceptMention_Type", ")", "jcasType", ")", ".", "casFeat_ref", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatMissing", "(", "\"ref\""...
getter for ref - gets The reference to the Concept, we use here the super type TOP in order to avoid the recursive dependencies between type systems @generated @return value of the feature
[ "getter", "for", "ref", "-", "gets", "The", "reference", "to", "the", "Concept", "we", "use", "here", "the", "super", "type", "TOP", "in", "order", "to", "avoid", "the", "recursive", "dependencies", "between", "type", "systems" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ConceptMention.java#L109-L112
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ConceptMention.java
ConceptMention.setRef
public void setRef(TOP v) { if (ConceptMention_Type.featOkTst && ((ConceptMention_Type)jcasType).casFeat_ref == null) jcasType.jcas.throwFeatMissing("ref", "de.julielab.jules.types.ConceptMention"); jcasType.ll_cas.ll_setRefValue(addr, ((ConceptMention_Type)jcasType).casFeatCode_ref, jcasType.ll_cas.ll_getFSRef(v));}
java
public void setRef(TOP v) { if (ConceptMention_Type.featOkTst && ((ConceptMention_Type)jcasType).casFeat_ref == null) jcasType.jcas.throwFeatMissing("ref", "de.julielab.jules.types.ConceptMention"); jcasType.ll_cas.ll_setRefValue(addr, ((ConceptMention_Type)jcasType).casFeatCode_ref, jcasType.ll_cas.ll_getFSRef(v));}
[ "public", "void", "setRef", "(", "TOP", "v", ")", "{", "if", "(", "ConceptMention_Type", ".", "featOkTst", "&&", "(", "(", "ConceptMention_Type", ")", "jcasType", ")", ".", "casFeat_ref", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatMissing", ...
setter for ref - sets The reference to the Concept, we use here the super type TOP in order to avoid the recursive dependencies between type systems @generated @param v value to set into the feature
[ "setter", "for", "ref", "-", "sets", "The", "reference", "to", "the", "Concept", "we", "use", "here", "the", "super", "type", "TOP", "in", "order", "to", "avoid", "the", "recursive", "dependencies", "between", "type", "systems" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ConceptMention.java#L118-L121
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ConceptMention.java
ConceptMention.getResourceEntryList
public FSArray getResourceEntryList() { if (ConceptMention_Type.featOkTst && ((ConceptMention_Type)jcasType).casFeat_resourceEntryList == null) jcasType.jcas.throwFeatMissing("resourceEntryList", "de.julielab.jules.types.ConceptMention"); return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((ConceptMention_Type)jcasType).casFeatCode_resourceEntryList)));}
java
public FSArray getResourceEntryList() { if (ConceptMention_Type.featOkTst && ((ConceptMention_Type)jcasType).casFeat_resourceEntryList == null) jcasType.jcas.throwFeatMissing("resourceEntryList", "de.julielab.jules.types.ConceptMention"); return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((ConceptMention_Type)jcasType).casFeatCode_resourceEntryList)));}
[ "public", "FSArray", "getResourceEntryList", "(", ")", "{", "if", "(", "ConceptMention_Type", ".", "featOkTst", "&&", "(", "(", "ConceptMention_Type", ")", "jcasType", ")", ".", "casFeat_resourceEntryList", "==", "null", ")", "jcasType", ".", "jcas", ".", "throw...
getter for resourceEntryList - gets @generated @return value of the feature
[ "getter", "for", "resourceEntryList", "-", "gets" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ConceptMention.java#L131-L134
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ConceptMention.java
ConceptMention.setResourceEntryList
public void setResourceEntryList(FSArray v) { if (ConceptMention_Type.featOkTst && ((ConceptMention_Type)jcasType).casFeat_resourceEntryList == null) jcasType.jcas.throwFeatMissing("resourceEntryList", "de.julielab.jules.types.ConceptMention"); jcasType.ll_cas.ll_setRefValue(addr, ((ConceptMention_Type)jcasType).casFeatCode_resourceEntryList, jcasType.ll_cas.ll_getFSRef(v));}
java
public void setResourceEntryList(FSArray v) { if (ConceptMention_Type.featOkTst && ((ConceptMention_Type)jcasType).casFeat_resourceEntryList == null) jcasType.jcas.throwFeatMissing("resourceEntryList", "de.julielab.jules.types.ConceptMention"); jcasType.ll_cas.ll_setRefValue(addr, ((ConceptMention_Type)jcasType).casFeatCode_resourceEntryList, jcasType.ll_cas.ll_getFSRef(v));}
[ "public", "void", "setResourceEntryList", "(", "FSArray", "v", ")", "{", "if", "(", "ConceptMention_Type", ".", "featOkTst", "&&", "(", "(", "ConceptMention_Type", ")", "jcasType", ")", ".", "casFeat_resourceEntryList", "==", "null", ")", "jcasType", ".", "jcas"...
setter for resourceEntryList - sets @generated @param v value to set into the feature
[ "setter", "for", "resourceEntryList", "-", "sets" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ConceptMention.java#L140-L143
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ConceptMention.java
ConceptMention.getResourceEntryList
public ResourceEntry getResourceEntryList(int i) { if (ConceptMention_Type.featOkTst && ((ConceptMention_Type)jcasType).casFeat_resourceEntryList == null) jcasType.jcas.throwFeatMissing("resourceEntryList", "de.julielab.jules.types.ConceptMention"); jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((ConceptMention_Type)jcasType).casFeatCode_resourceEntryList), i); return (ResourceEntry)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((ConceptMention_Type)jcasType).casFeatCode_resourceEntryList), i)));}
java
public ResourceEntry getResourceEntryList(int i) { if (ConceptMention_Type.featOkTst && ((ConceptMention_Type)jcasType).casFeat_resourceEntryList == null) jcasType.jcas.throwFeatMissing("resourceEntryList", "de.julielab.jules.types.ConceptMention"); jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((ConceptMention_Type)jcasType).casFeatCode_resourceEntryList), i); return (ResourceEntry)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((ConceptMention_Type)jcasType).casFeatCode_resourceEntryList), i)));}
[ "public", "ResourceEntry", "getResourceEntryList", "(", "int", "i", ")", "{", "if", "(", "ConceptMention_Type", ".", "featOkTst", "&&", "(", "(", "ConceptMention_Type", ")", "jcasType", ")", ".", "casFeat_resourceEntryList", "==", "null", ")", "jcasType", ".", "...
indexed getter for resourceEntryList - gets an indexed value - @generated @param i index in the array to get @return value of the element at index i
[ "indexed", "getter", "for", "resourceEntryList", "-", "gets", "an", "indexed", "value", "-" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ConceptMention.java#L150-L154
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ConceptMention.java
ConceptMention.setResourceEntryList
public void setResourceEntryList(int i, ResourceEntry v) { if (ConceptMention_Type.featOkTst && ((ConceptMention_Type)jcasType).casFeat_resourceEntryList == null) jcasType.jcas.throwFeatMissing("resourceEntryList", "de.julielab.jules.types.ConceptMention"); jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((ConceptMention_Type)jcasType).casFeatCode_resourceEntryList), i); jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((ConceptMention_Type)jcasType).casFeatCode_resourceEntryList), i, jcasType.ll_cas.ll_getFSRef(v));}
java
public void setResourceEntryList(int i, ResourceEntry v) { if (ConceptMention_Type.featOkTst && ((ConceptMention_Type)jcasType).casFeat_resourceEntryList == null) jcasType.jcas.throwFeatMissing("resourceEntryList", "de.julielab.jules.types.ConceptMention"); jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((ConceptMention_Type)jcasType).casFeatCode_resourceEntryList), i); jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((ConceptMention_Type)jcasType).casFeatCode_resourceEntryList), i, jcasType.ll_cas.ll_getFSRef(v));}
[ "public", "void", "setResourceEntryList", "(", "int", "i", ",", "ResourceEntry", "v", ")", "{", "if", "(", "ConceptMention_Type", ".", "featOkTst", "&&", "(", "(", "ConceptMention_Type", ")", "jcasType", ")", ".", "casFeat_resourceEntryList", "==", "null", ")", ...
indexed setter for resourceEntryList - sets an indexed value - @generated @param i index in the array to set @param v value to set into the array
[ "indexed", "setter", "for", "resourceEntryList", "-", "sets", "an", "indexed", "value", "-" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/ConceptMention.java#L161-L165
train
BlueBrain/bluima
modules/bluima_pdf/src/main/java/edu/psu/seersuite/extractors/tableextractor/extraction/PdfBoxParser.java
PdfBoxParser.getTextPiecesByPage
@SuppressWarnings("unchecked") public ArrayList<ArrayList<TextPiece>> getTextPiecesByPage(File pdfFile) { assert (pdfFile.exists()) : "pdfFile does not exist"; m_wordsByPage = new ArrayList<ArrayList<TextPiece>>(); PDDocument document = null; try { document = PDDocument.load(pdfFile); resetEngine(); m_currentPageNo = 0; // No support for encrypted file in the current version if (document.isEncrypted()) { // TODO: log } else { ArrayList<PDPage> pages = (ArrayList<PDPage>) document .getDocumentCatalog().getAllPages(); for (PDPage page : pages) { m_currentPageNo++; PDStream contentStream = page.getContents(); if (contentStream != null) { COSStream contents = contentStream.getStream(); processPage(page, contents); } } } } catch (Exception e) { System.out.printf("[Error] Fail to extract words\n"); m_wordsByPage = null; } catch (OutOfMemoryError e) { System.out.printf("[Error] Out Of Memory\n"); m_wordsByPage = null; } finally { if (document != null) { try { document.close(); } catch (IOException e) { // ignore } } } return m_wordsByPage; }
java
@SuppressWarnings("unchecked") public ArrayList<ArrayList<TextPiece>> getTextPiecesByPage(File pdfFile) { assert (pdfFile.exists()) : "pdfFile does not exist"; m_wordsByPage = new ArrayList<ArrayList<TextPiece>>(); PDDocument document = null; try { document = PDDocument.load(pdfFile); resetEngine(); m_currentPageNo = 0; // No support for encrypted file in the current version if (document.isEncrypted()) { // TODO: log } else { ArrayList<PDPage> pages = (ArrayList<PDPage>) document .getDocumentCatalog().getAllPages(); for (PDPage page : pages) { m_currentPageNo++; PDStream contentStream = page.getContents(); if (contentStream != null) { COSStream contents = contentStream.getStream(); processPage(page, contents); } } } } catch (Exception e) { System.out.printf("[Error] Fail to extract words\n"); m_wordsByPage = null; } catch (OutOfMemoryError e) { System.out.printf("[Error] Out Of Memory\n"); m_wordsByPage = null; } finally { if (document != null) { try { document.close(); } catch (IOException e) { // ignore } } } return m_wordsByPage; }
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "public", "ArrayList", "<", "ArrayList", "<", "TextPiece", ">", ">", "getTextPiecesByPage", "(", "File", "pdfFile", ")", "{", "assert", "(", "pdfFile", ".", "exists", "(", ")", ")", ":", "\"pdfFile does not e...
Get text pieces from a PDF document @param pdfFile input PDF file @return lists of text pieces (one list per page) @throws IOException
[ "Get", "text", "pieces", "from", "a", "PDF", "document" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_pdf/src/main/java/edu/psu/seersuite/extractors/tableextractor/extraction/PdfBoxParser.java#L47-L93
train
BlueBrain/bluima
modules/bluima_utils/src/main/java/ch/epfl/bbp/uima/utils/SCharsStemmer.java
SCharsStemmer.stem
@Override public String stem(String token) { if (token != null && token.length() > 3 && token.endsWith("s")) { return token.substring(0, token.length() - 1); } return token; }
java
@Override public String stem(String token) { if (token != null && token.length() > 3 && token.endsWith("s")) { return token.substring(0, token.length() - 1); } return token; }
[ "@", "Override", "public", "String", "stem", "(", "String", "token", ")", "{", "if", "(", "token", "!=", "null", "&&", "token", ".", "length", "(", ")", ">", "3", "&&", "token", ".", "endsWith", "(", "\"s\"", ")", ")", "{", "return", "token", ".", ...
Removes ending s of words longer than 3 chars
[ "Removes", "ending", "s", "of", "words", "longer", "than", "3", "chars" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_utils/src/main/java/ch/epfl/bbp/uima/utils/SCharsStemmer.java#L16-L22
train
BlueBrain/bluima
modules/bluima_utils/src/main/java/ch/epfl/bbp/uima/uimafit/CpeBuilder.java
CpeBuilder.materializeDescriptor
private static File materializeDescriptor(ResourceSpecifier resource) throws IOException, SAXException { File tempDesc = File.createTempFile("desc", ".xml"); // tempDesc.deleteOnExit(); BufferedWriter out = new BufferedWriter(new OutputStreamWriter( new FileOutputStream(tempDesc), "UTF-8")); resource.toXML(out); out.close(); return tempDesc; }
java
private static File materializeDescriptor(ResourceSpecifier resource) throws IOException, SAXException { File tempDesc = File.createTempFile("desc", ".xml"); // tempDesc.deleteOnExit(); BufferedWriter out = new BufferedWriter(new OutputStreamWriter( new FileOutputStream(tempDesc), "UTF-8")); resource.toXML(out); out.close(); return tempDesc; }
[ "private", "static", "File", "materializeDescriptor", "(", "ResourceSpecifier", "resource", ")", "throws", "IOException", ",", "SAXException", "{", "File", "tempDesc", "=", "File", ".", "createTempFile", "(", "\"desc\"", ",", "\".xml\"", ")", ";", "// tempDesc.delet...
Writes a temporary file containing a xml descriptor of the given resource. Returns the file. @param resource A resource specifier that should we materialized. @return The file containing the xml representation of the given resource. @throws IOException @throws SAXException
[ "Writes", "a", "temporary", "file", "containing", "a", "xml", "descriptor", "of", "the", "given", "resource", ".", "Returns", "the", "file", "." ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_utils/src/main/java/ch/epfl/bbp/uima/uimafit/CpeBuilder.java#L210-L221
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/CoordinationElement.java
CoordinationElement.getCat
public String getCat() { if (CoordinationElement_Type.featOkTst && ((CoordinationElement_Type)jcasType).casFeat_cat == null) jcasType.jcas.throwFeatMissing("cat", "de.julielab.jules.types.CoordinationElement"); return jcasType.ll_cas.ll_getStringValue(addr, ((CoordinationElement_Type)jcasType).casFeatCode_cat);}
java
public String getCat() { if (CoordinationElement_Type.featOkTst && ((CoordinationElement_Type)jcasType).casFeat_cat == null) jcasType.jcas.throwFeatMissing("cat", "de.julielab.jules.types.CoordinationElement"); return jcasType.ll_cas.ll_getStringValue(addr, ((CoordinationElement_Type)jcasType).casFeatCode_cat);}
[ "public", "String", "getCat", "(", ")", "{", "if", "(", "CoordinationElement_Type", ".", "featOkTst", "&&", "(", "(", "CoordinationElement_Type", ")", "jcasType", ")", ".", "casFeat_cat", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatMissing", "("...
getter for cat - gets @generated @return value of the feature
[ "getter", "for", "cat", "-", "gets" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/CoordinationElement.java#L85-L88
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/CoordinationElement.java
CoordinationElement.setCat
public void setCat(String v) { if (CoordinationElement_Type.featOkTst && ((CoordinationElement_Type)jcasType).casFeat_cat == null) jcasType.jcas.throwFeatMissing("cat", "de.julielab.jules.types.CoordinationElement"); jcasType.ll_cas.ll_setStringValue(addr, ((CoordinationElement_Type)jcasType).casFeatCode_cat, v);}
java
public void setCat(String v) { if (CoordinationElement_Type.featOkTst && ((CoordinationElement_Type)jcasType).casFeat_cat == null) jcasType.jcas.throwFeatMissing("cat", "de.julielab.jules.types.CoordinationElement"); jcasType.ll_cas.ll_setStringValue(addr, ((CoordinationElement_Type)jcasType).casFeatCode_cat, v);}
[ "public", "void", "setCat", "(", "String", "v", ")", "{", "if", "(", "CoordinationElement_Type", ".", "featOkTst", "&&", "(", "(", "CoordinationElement_Type", ")", "jcasType", ")", ".", "casFeat_cat", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFe...
setter for cat - sets @generated @param v value to set into the feature
[ "setter", "for", "cat", "-", "sets" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/CoordinationElement.java#L94-L97
train
BlueBrain/bluima
modules/bluima_bbp/src/main/java/ch/epfl/bbp/uima/projects/brainregions/bams/FindSynonyms3.java
FindSynonyms3.getSynonyms
public Set<String> getSynonyms(final String canonical) { Set<String> syn = Sets.newHashSet(); for (Map<String, Concept> lexica : lexicon) { for (String lexCanonical : lexica.keySet()) { Set<String> variants = lexica.get(lexCanonical).getVariants(); for (String variant : variants) { if (canonical.equals(variant)) { for (String v : variants) { syn.add(v.toLowerCase()); } } } } } return syn; }
java
public Set<String> getSynonyms(final String canonical) { Set<String> syn = Sets.newHashSet(); for (Map<String, Concept> lexica : lexicon) { for (String lexCanonical : lexica.keySet()) { Set<String> variants = lexica.get(lexCanonical).getVariants(); for (String variant : variants) { if (canonical.equals(variant)) { for (String v : variants) { syn.add(v.toLowerCase()); } } } } } return syn; }
[ "public", "Set", "<", "String", ">", "getSynonyms", "(", "final", "String", "canonical", ")", "{", "Set", "<", "String", ">", "syn", "=", "Sets", ".", "newHashSet", "(", ")", ";", "for", "(", "Map", "<", "String", ",", "Concept", ">", "lexica", ":", ...
given a canonical form (found with a lex-NER, return all variants, if any
[ "given", "a", "canonical", "form", "(", "found", "with", "a", "lex", "-", "NER", "return", "all", "variants", "if", "any" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_bbp/src/main/java/ch/epfl/bbp/uima/projects/brainregions/bams/FindSynonyms3.java#L42-L59
train
BlueBrain/bluima
utils/pdf_glyph_mapping/src/main/java/org/xmlcml/pdf2svg/GlyphCorrector.java
GlyphCorrector.codePointConversion
public int codePointConversion(String fontName, int codePoint) { NonStandardFontFamily nonStandardFontFamily = get(fontName); if (nonStandardFontFamily == null) return codePoint; CodePointSet codePointSet = nonStandardFontFamily.getCodePointSet(); if (codePointSet == null) return codePoint; CodePoint decimalCodePoint = codePointSet.getByDecimal(codePoint); if (decimalCodePoint != null) // Fetches the correct unicode point return decimalCodePoint.getUnicodeDecimal(); CodePoint nameCodePoint = codePointSet.getByName(charNameByCodePoint .get(codePoint)); if (nameCodePoint != null) return nameCodePoint.getUnicodeDecimal(); return codePoint; }
java
public int codePointConversion(String fontName, int codePoint) { NonStandardFontFamily nonStandardFontFamily = get(fontName); if (nonStandardFontFamily == null) return codePoint; CodePointSet codePointSet = nonStandardFontFamily.getCodePointSet(); if (codePointSet == null) return codePoint; CodePoint decimalCodePoint = codePointSet.getByDecimal(codePoint); if (decimalCodePoint != null) // Fetches the correct unicode point return decimalCodePoint.getUnicodeDecimal(); CodePoint nameCodePoint = codePointSet.getByName(charNameByCodePoint .get(codePoint)); if (nameCodePoint != null) return nameCodePoint.getUnicodeDecimal(); return codePoint; }
[ "public", "int", "codePointConversion", "(", "String", "fontName", ",", "int", "codePoint", ")", "{", "NonStandardFontFamily", "nonStandardFontFamily", "=", "get", "(", "fontName", ")", ";", "if", "(", "nonStandardFontFamily", "==", "null", ")", "return", "codePoi...
Takes in argument a codepoint. If for the given police the codepoint doesn't correspond to what the font actually displays, the conversion is made. Otherwise, the old codepoint is return. @param fontName name of the font of the character in the pdf @param oldCodePoint unicode point in the original pdf @return
[ "Takes", "in", "argument", "a", "codepoint", ".", "If", "for", "the", "given", "police", "the", "codepoint", "doesn", "t", "correspond", "to", "what", "the", "font", "actually", "displays", "the", "conversion", "is", "made", ".", "Otherwise", "the", "old", ...
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/utils/pdf_glyph_mapping/src/main/java/org/xmlcml/pdf2svg/GlyphCorrector.java#L75-L96
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/VerbFeats.java
VerbFeats.getPerson
public String getPerson() { if (VerbFeats_Type.featOkTst && ((VerbFeats_Type)jcasType).casFeat_person == null) jcasType.jcas.throwFeatMissing("person", "de.julielab.jules.types.VerbFeats"); return jcasType.ll_cas.ll_getStringValue(addr, ((VerbFeats_Type)jcasType).casFeatCode_person);}
java
public String getPerson() { if (VerbFeats_Type.featOkTst && ((VerbFeats_Type)jcasType).casFeat_person == null) jcasType.jcas.throwFeatMissing("person", "de.julielab.jules.types.VerbFeats"); return jcasType.ll_cas.ll_getStringValue(addr, ((VerbFeats_Type)jcasType).casFeatCode_person);}
[ "public", "String", "getPerson", "(", ")", "{", "if", "(", "VerbFeats_Type", ".", "featOkTst", "&&", "(", "(", "VerbFeats_Type", ")", "jcasType", ")", ".", "casFeat_person", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatMissing", "(", "\"person\...
getter for person - gets Person @generated @return value of the feature
[ "getter", "for", "person", "-", "gets", "Person" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/VerbFeats.java#L107-L110
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/VerbFeats.java
VerbFeats.setPerson
public void setPerson(String v) { if (VerbFeats_Type.featOkTst && ((VerbFeats_Type)jcasType).casFeat_person == null) jcasType.jcas.throwFeatMissing("person", "de.julielab.jules.types.VerbFeats"); jcasType.ll_cas.ll_setStringValue(addr, ((VerbFeats_Type)jcasType).casFeatCode_person, v);}
java
public void setPerson(String v) { if (VerbFeats_Type.featOkTst && ((VerbFeats_Type)jcasType).casFeat_person == null) jcasType.jcas.throwFeatMissing("person", "de.julielab.jules.types.VerbFeats"); jcasType.ll_cas.ll_setStringValue(addr, ((VerbFeats_Type)jcasType).casFeatCode_person, v);}
[ "public", "void", "setPerson", "(", "String", "v", ")", "{", "if", "(", "VerbFeats_Type", ".", "featOkTst", "&&", "(", "(", "VerbFeats_Type", ")", "jcasType", ")", ".", "casFeat_person", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatMissing", ...
setter for person - sets Person @generated @param v value to set into the feature
[ "setter", "for", "person", "-", "sets", "Person" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/VerbFeats.java#L116-L119
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/VerbFeats.java
VerbFeats.getVoice
public String getVoice() { if (VerbFeats_Type.featOkTst && ((VerbFeats_Type)jcasType).casFeat_voice == null) jcasType.jcas.throwFeatMissing("voice", "de.julielab.jules.types.VerbFeats"); return jcasType.ll_cas.ll_getStringValue(addr, ((VerbFeats_Type)jcasType).casFeatCode_voice);}
java
public String getVoice() { if (VerbFeats_Type.featOkTst && ((VerbFeats_Type)jcasType).casFeat_voice == null) jcasType.jcas.throwFeatMissing("voice", "de.julielab.jules.types.VerbFeats"); return jcasType.ll_cas.ll_getStringValue(addr, ((VerbFeats_Type)jcasType).casFeatCode_voice);}
[ "public", "String", "getVoice", "(", ")", "{", "if", "(", "VerbFeats_Type", ".", "featOkTst", "&&", "(", "(", "VerbFeats_Type", ")", "jcasType", ")", ".", "casFeat_voice", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatMissing", "(", "\"voice\"",...
getter for voice - gets Voice @generated @return value of the feature
[ "getter", "for", "voice", "-", "gets", "Voice" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/VerbFeats.java#L151-L154
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/VerbFeats.java
VerbFeats.setVoice
public void setVoice(String v) { if (VerbFeats_Type.featOkTst && ((VerbFeats_Type)jcasType).casFeat_voice == null) jcasType.jcas.throwFeatMissing("voice", "de.julielab.jules.types.VerbFeats"); jcasType.ll_cas.ll_setStringValue(addr, ((VerbFeats_Type)jcasType).casFeatCode_voice, v);}
java
public void setVoice(String v) { if (VerbFeats_Type.featOkTst && ((VerbFeats_Type)jcasType).casFeat_voice == null) jcasType.jcas.throwFeatMissing("voice", "de.julielab.jules.types.VerbFeats"); jcasType.ll_cas.ll_setStringValue(addr, ((VerbFeats_Type)jcasType).casFeatCode_voice, v);}
[ "public", "void", "setVoice", "(", "String", "v", ")", "{", "if", "(", "VerbFeats_Type", ".", "featOkTst", "&&", "(", "(", "VerbFeats_Type", ")", "jcasType", ")", ".", "casFeat_voice", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatMissing", "(...
setter for voice - sets Voice @generated @param v value to set into the feature
[ "setter", "for", "voice", "-", "sets", "Voice" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/VerbFeats.java#L160-L163
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/VerbFeats.java
VerbFeats.getAspect
public String getAspect() { if (VerbFeats_Type.featOkTst && ((VerbFeats_Type)jcasType).casFeat_aspect == null) jcasType.jcas.throwFeatMissing("aspect", "de.julielab.jules.types.VerbFeats"); return jcasType.ll_cas.ll_getStringValue(addr, ((VerbFeats_Type)jcasType).casFeatCode_aspect);}
java
public String getAspect() { if (VerbFeats_Type.featOkTst && ((VerbFeats_Type)jcasType).casFeat_aspect == null) jcasType.jcas.throwFeatMissing("aspect", "de.julielab.jules.types.VerbFeats"); return jcasType.ll_cas.ll_getStringValue(addr, ((VerbFeats_Type)jcasType).casFeatCode_aspect);}
[ "public", "String", "getAspect", "(", ")", "{", "if", "(", "VerbFeats_Type", ".", "featOkTst", "&&", "(", "(", "VerbFeats_Type", ")", "jcasType", ")", ".", "casFeat_aspect", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatMissing", "(", "\"aspect\...
getter for aspect - gets Aspect @generated @return value of the feature
[ "getter", "for", "aspect", "-", "gets", "Aspect" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/VerbFeats.java#L173-L176
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/VerbFeats.java
VerbFeats.setAspect
public void setAspect(String v) { if (VerbFeats_Type.featOkTst && ((VerbFeats_Type)jcasType).casFeat_aspect == null) jcasType.jcas.throwFeatMissing("aspect", "de.julielab.jules.types.VerbFeats"); jcasType.ll_cas.ll_setStringValue(addr, ((VerbFeats_Type)jcasType).casFeatCode_aspect, v);}
java
public void setAspect(String v) { if (VerbFeats_Type.featOkTst && ((VerbFeats_Type)jcasType).casFeat_aspect == null) jcasType.jcas.throwFeatMissing("aspect", "de.julielab.jules.types.VerbFeats"); jcasType.ll_cas.ll_setStringValue(addr, ((VerbFeats_Type)jcasType).casFeatCode_aspect, v);}
[ "public", "void", "setAspect", "(", "String", "v", ")", "{", "if", "(", "VerbFeats_Type", ".", "featOkTst", "&&", "(", "(", "VerbFeats_Type", ")", "jcasType", ")", ".", "casFeat_aspect", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeatMissing", ...
setter for aspect - sets Aspect @generated @param v value to set into the feature
[ "setter", "for", "aspect", "-", "sets", "Aspect" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/VerbFeats.java#L182-L185
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/FullTextLinkList.java
FullTextLinkList.getFullTextLinks
public FSArray getFullTextLinks() { if (FullTextLinkList_Type.featOkTst && ((FullTextLinkList_Type)jcasType).casFeat_fullTextLinks == null) jcasType.jcas.throwFeatMissing("fullTextLinks", "de.julielab.jules.types.FullTextLinkList"); return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((FullTextLinkList_Type)jcasType).casFeatCode_fullTextLinks)));}
java
public FSArray getFullTextLinks() { if (FullTextLinkList_Type.featOkTst && ((FullTextLinkList_Type)jcasType).casFeat_fullTextLinks == null) jcasType.jcas.throwFeatMissing("fullTextLinks", "de.julielab.jules.types.FullTextLinkList"); return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((FullTextLinkList_Type)jcasType).casFeatCode_fullTextLinks)));}
[ "public", "FSArray", "getFullTextLinks", "(", ")", "{", "if", "(", "FullTextLinkList_Type", ".", "featOkTst", "&&", "(", "(", "FullTextLinkList_Type", ")", "jcasType", ")", ".", "casFeat_fullTextLinks", "==", "null", ")", "jcasType", ".", "jcas", ".", "throwFeat...
getter for fullTextLinks - gets @generated @return value of the feature
[ "getter", "for", "fullTextLinks", "-", "gets" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/FullTextLinkList.java#L86-L89
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/FullTextLinkList.java
FullTextLinkList.setFullTextLinks
public void setFullTextLinks(FSArray v) { if (FullTextLinkList_Type.featOkTst && ((FullTextLinkList_Type)jcasType).casFeat_fullTextLinks == null) jcasType.jcas.throwFeatMissing("fullTextLinks", "de.julielab.jules.types.FullTextLinkList"); jcasType.ll_cas.ll_setRefValue(addr, ((FullTextLinkList_Type)jcasType).casFeatCode_fullTextLinks, jcasType.ll_cas.ll_getFSRef(v));}
java
public void setFullTextLinks(FSArray v) { if (FullTextLinkList_Type.featOkTst && ((FullTextLinkList_Type)jcasType).casFeat_fullTextLinks == null) jcasType.jcas.throwFeatMissing("fullTextLinks", "de.julielab.jules.types.FullTextLinkList"); jcasType.ll_cas.ll_setRefValue(addr, ((FullTextLinkList_Type)jcasType).casFeatCode_fullTextLinks, jcasType.ll_cas.ll_getFSRef(v));}
[ "public", "void", "setFullTextLinks", "(", "FSArray", "v", ")", "{", "if", "(", "FullTextLinkList_Type", ".", "featOkTst", "&&", "(", "(", "FullTextLinkList_Type", ")", "jcasType", ")", ".", "casFeat_fullTextLinks", "==", "null", ")", "jcasType", ".", "jcas", ...
setter for fullTextLinks - sets @generated @param v value to set into the feature
[ "setter", "for", "fullTextLinks", "-", "sets" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/FullTextLinkList.java#L95-L98
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/FullTextLinkList.java
FullTextLinkList.getFullTextLinks
public FullTextLink getFullTextLinks(int i) { if (FullTextLinkList_Type.featOkTst && ((FullTextLinkList_Type)jcasType).casFeat_fullTextLinks == null) jcasType.jcas.throwFeatMissing("fullTextLinks", "de.julielab.jules.types.FullTextLinkList"); jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((FullTextLinkList_Type)jcasType).casFeatCode_fullTextLinks), i); return (FullTextLink)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((FullTextLinkList_Type)jcasType).casFeatCode_fullTextLinks), i)));}
java
public FullTextLink getFullTextLinks(int i) { if (FullTextLinkList_Type.featOkTst && ((FullTextLinkList_Type)jcasType).casFeat_fullTextLinks == null) jcasType.jcas.throwFeatMissing("fullTextLinks", "de.julielab.jules.types.FullTextLinkList"); jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((FullTextLinkList_Type)jcasType).casFeatCode_fullTextLinks), i); return (FullTextLink)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((FullTextLinkList_Type)jcasType).casFeatCode_fullTextLinks), i)));}
[ "public", "FullTextLink", "getFullTextLinks", "(", "int", "i", ")", "{", "if", "(", "FullTextLinkList_Type", ".", "featOkTst", "&&", "(", "(", "FullTextLinkList_Type", ")", "jcasType", ")", ".", "casFeat_fullTextLinks", "==", "null", ")", "jcasType", ".", "jcas"...
indexed getter for fullTextLinks - gets an indexed value - @generated @param i index in the array to get @return value of the element at index i
[ "indexed", "getter", "for", "fullTextLinks", "-", "gets", "an", "indexed", "value", "-" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/FullTextLinkList.java#L105-L109
train
BlueBrain/bluima
modules/bluima_typesystem/src/main/java/de/julielab/jules/types/FullTextLinkList.java
FullTextLinkList.setFullTextLinks
public void setFullTextLinks(int i, FullTextLink v) { if (FullTextLinkList_Type.featOkTst && ((FullTextLinkList_Type)jcasType).casFeat_fullTextLinks == null) jcasType.jcas.throwFeatMissing("fullTextLinks", "de.julielab.jules.types.FullTextLinkList"); jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((FullTextLinkList_Type)jcasType).casFeatCode_fullTextLinks), i); jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((FullTextLinkList_Type)jcasType).casFeatCode_fullTextLinks), i, jcasType.ll_cas.ll_getFSRef(v));}
java
public void setFullTextLinks(int i, FullTextLink v) { if (FullTextLinkList_Type.featOkTst && ((FullTextLinkList_Type)jcasType).casFeat_fullTextLinks == null) jcasType.jcas.throwFeatMissing("fullTextLinks", "de.julielab.jules.types.FullTextLinkList"); jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((FullTextLinkList_Type)jcasType).casFeatCode_fullTextLinks), i); jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((FullTextLinkList_Type)jcasType).casFeatCode_fullTextLinks), i, jcasType.ll_cas.ll_getFSRef(v));}
[ "public", "void", "setFullTextLinks", "(", "int", "i", ",", "FullTextLink", "v", ")", "{", "if", "(", "FullTextLinkList_Type", ".", "featOkTst", "&&", "(", "(", "FullTextLinkList_Type", ")", "jcasType", ")", ".", "casFeat_fullTextLinks", "==", "null", ")", "jc...
indexed setter for fullTextLinks - sets an indexed value - @generated @param i index in the array to set @param v value to set into the array
[ "indexed", "setter", "for", "fullTextLinks", "-", "sets", "an", "indexed", "value", "-" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_typesystem/src/main/java/de/julielab/jules/types/FullTextLinkList.java#L116-L120
train
BlueBrain/bluima
modules/bluima_lexica/src/main/java/ch/epfl/bbp/uima/obo/OBOOntology.java
OBOOntology.read
public void read(File f) throws IOException { FileInputStream fis = new FileInputStream(f); try { read(new BufferedReader(new InputStreamReader(fis, "UTF-8"))); } finally { IOUtils.closeQuietly(fis); } }
java
public void read(File f) throws IOException { FileInputStream fis = new FileInputStream(f); try { read(new BufferedReader(new InputStreamReader(fis, "UTF-8"))); } finally { IOUtils.closeQuietly(fis); } }
[ "public", "void", "read", "(", "File", "f", ")", "throws", "IOException", "{", "FileInputStream", "fis", "=", "new", "FileInputStream", "(", "f", ")", ";", "try", "{", "read", "(", "new", "BufferedReader", "(", "new", "InputStreamReader", "(", "fis", ",", ...
Read a .obo file @param f The .obo file to read. @throws Exception
[ "Read", "a", ".", "obo", "file" ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_lexica/src/main/java/ch/epfl/bbp/uima/obo/OBOOntology.java#L39-L46
train
BlueBrain/bluima
modules/bluima_lexica/src/main/java/ch/epfl/bbp/uima/obo/OBOOntology.java
OBOOntology.addTerm
public void addTerm(OntologyTerm term) { terms.put(term.getId(), term); indexTerm(term); isTypeOfIsBuilt = false; }
java
public void addTerm(OntologyTerm term) { terms.put(term.getId(), term); indexTerm(term); isTypeOfIsBuilt = false; }
[ "public", "void", "addTerm", "(", "OntologyTerm", "term", ")", "{", "terms", ".", "put", "(", "term", ".", "getId", "(", ")", ",", "term", ")", ";", "indexTerm", "(", "term", ")", ";", "isTypeOfIsBuilt", "=", "false", ";", "}" ]
Add a single OntologyTerm to the ontology. @param term The OntologyTerm.
[ "Add", "a", "single", "OntologyTerm", "to", "the", "ontology", "." ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_lexica/src/main/java/ch/epfl/bbp/uima/obo/OBOOntology.java#L81-L85
train
BlueBrain/bluima
modules/bluima_lexica/src/main/java/ch/epfl/bbp/uima/obo/OBOOntology.java
OBOOntology.addOntology
public void addOntology(OBOOntology ont) { for (String id : ont.terms.keySet()) { addTerm(ont.terms.get(id)); } }
java
public void addOntology(OBOOntology ont) { for (String id : ont.terms.keySet()) { addTerm(ont.terms.get(id)); } }
[ "public", "void", "addOntology", "(", "OBOOntology", "ont", ")", "{", "for", "(", "String", "id", ":", "ont", ".", "terms", ".", "keySet", "(", ")", ")", "{", "addTerm", "(", "ont", ".", "terms", ".", "get", "(", "id", ")", ")", ";", "}", "}" ]
Merge a whole ontology into the current one. @param ont The ontology to merge in.
[ "Merge", "a", "whole", "ontology", "into", "the", "current", "one", "." ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_lexica/src/main/java/ch/epfl/bbp/uima/obo/OBOOntology.java#L93-L97
train
BlueBrain/bluima
modules/bluima_lexica/src/main/java/ch/epfl/bbp/uima/obo/OBOOntology.java
OBOOntology.writeOntTxt
public void writeOntTxt(PrintWriter pw) { for (String id : terms.keySet()) { OntologyTerm term = terms.get(id); Set<String> synSet = new HashSet<String>(); synSet.add(term.getName()); for (Synonym s : term.getSynonyms()) { String st = s.getType(); if (id.startsWith("PTCO") || (st != null && !st .matches(".*(InChI|SMILES|FORMULA).*"))) { String synonym = s.getSyn(); if (!synonym.matches("\\S")) {// reject ontology terms // consisting of a single // letter as these produce too // many false positives synSet.add(synonym); } } } pw.println("[" + id + "]"); for (String syn : synSet) pw.println(syn); pw.println(); } pw.flush(); }
java
public void writeOntTxt(PrintWriter pw) { for (String id : terms.keySet()) { OntologyTerm term = terms.get(id); Set<String> synSet = new HashSet<String>(); synSet.add(term.getName()); for (Synonym s : term.getSynonyms()) { String st = s.getType(); if (id.startsWith("PTCO") || (st != null && !st .matches(".*(InChI|SMILES|FORMULA).*"))) { String synonym = s.getSyn(); if (!synonym.matches("\\S")) {// reject ontology terms // consisting of a single // letter as these produce too // many false positives synSet.add(synonym); } } } pw.println("[" + id + "]"); for (String syn : synSet) pw.println(syn); pw.println(); } pw.flush(); }
[ "public", "void", "writeOntTxt", "(", "PrintWriter", "pw", ")", "{", "for", "(", "String", "id", ":", "terms", ".", "keySet", "(", ")", ")", "{", "OntologyTerm", "term", "=", "terms", ".", "get", "(", "id", ")", ";", "Set", "<", "String", ">", "syn...
Writes a file suitable for use as onotology.txt. @param pw The PrintWriter to write to.
[ "Writes", "a", "file", "suitable", "for", "use", "as", "onotology", ".", "txt", "." ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_lexica/src/main/java/ch/epfl/bbp/uima/obo/OBOOntology.java#L136-L162
train
BlueBrain/bluima
modules/bluima_lexica/src/main/java/ch/epfl/bbp/uima/obo/OBOOntology.java
OBOOntology.getIdsForIdsWithAncestors
public Set<String> getIdsForIdsWithAncestors(Collection<String> termIds) { Stack<String> idsToConsider = new Stack<String>(); idsToConsider.addAll(termIds); Set<String> resultIds = new HashSet<String>(); while (!idsToConsider.isEmpty()) { String id = idsToConsider.pop(); if (!resultIds.contains(id)) { resultIds.add(id); if (terms.containsKey(id)) idsToConsider.addAll(terms.get(id).getIsA()); } } return resultIds; }
java
public Set<String> getIdsForIdsWithAncestors(Collection<String> termIds) { Stack<String> idsToConsider = new Stack<String>(); idsToConsider.addAll(termIds); Set<String> resultIds = new HashSet<String>(); while (!idsToConsider.isEmpty()) { String id = idsToConsider.pop(); if (!resultIds.contains(id)) { resultIds.add(id); if (terms.containsKey(id)) idsToConsider.addAll(terms.get(id).getIsA()); } } return resultIds; }
[ "public", "Set", "<", "String", ">", "getIdsForIdsWithAncestors", "(", "Collection", "<", "String", ">", "termIds", ")", "{", "Stack", "<", "String", ">", "idsToConsider", "=", "new", "Stack", "<", "String", ">", "(", ")", ";", "idsToConsider", ".", "addAl...
Given a set of IDs, return a set that contains all of the IDs, the parents of those IDs, the grandparents, etc. @param termIds The initial "seed" IDs. @return The full set of IDs.
[ "Given", "a", "set", "of", "IDs", "return", "a", "set", "that", "contains", "all", "of", "the", "IDs", "the", "parents", "of", "those", "IDs", "the", "grandparents", "etc", "." ]
793ea3f46761dce72094e057a56cddfa677156ae
https://github.com/BlueBrain/bluima/blob/793ea3f46761dce72094e057a56cddfa677156ae/modules/bluima_lexica/src/main/java/ch/epfl/bbp/uima/obo/OBOOntology.java#L183-L196
train