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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
HeidelTime/heideltime | src/de/unihd/dbs/uima/annotator/heideltime/utilities/DateCalculator.java | DateCalculator.getWeekdayOfDate | public static int getWeekdayOfDate(String date) {
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
int weekday = 0;
Calendar c = Calendar.getInstance();
try {
c.setTime(formatter.parse(date));
weekday = c.get(Calendar.DAY_OF_WEEK);
} catch (ParseException e) {
e.printStackTrace();
}... | java | public static int getWeekdayOfDate(String date) {
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
int weekday = 0;
Calendar c = Calendar.getInstance();
try {
c.setTime(formatter.parse(date));
weekday = c.get(Calendar.DAY_OF_WEEK);
} catch (ParseException e) {
e.printStackTrace();
}... | [
"public",
"static",
"int",
"getWeekdayOfDate",
"(",
"String",
"date",
")",
"{",
"SimpleDateFormat",
"formatter",
"=",
"new",
"SimpleDateFormat",
"(",
"\"yyyy-MM-dd\"",
")",
";",
"int",
"weekday",
"=",
"0",
";",
"Calendar",
"c",
"=",
"Calendar",
".",
"getInstan... | Get the weekday of date
@param date current date
@return day of week | [
"Get",
"the",
"weekday",
"of",
"date"
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/de/unihd/dbs/uima/annotator/heideltime/utilities/DateCalculator.java#L237-L248 | train |
HeidelTime/heideltime | src/de/unihd/dbs/uima/annotator/heideltime/utilities/DateCalculator.java | DateCalculator.getWeekOfDate | public static int getWeekOfDate(String date) {
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
int week = 0;
;
Calendar c = Calendar.getInstance();
try {
c.setTime(formatter.parse(date));
week = c.get(Calendar.WEEK_OF_YEAR);
} catch (ParseException e) {
e.printStackTrace();
}
r... | java | public static int getWeekOfDate(String date) {
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
int week = 0;
;
Calendar c = Calendar.getInstance();
try {
c.setTime(formatter.parse(date));
week = c.get(Calendar.WEEK_OF_YEAR);
} catch (ParseException e) {
e.printStackTrace();
}
r... | [
"public",
"static",
"int",
"getWeekOfDate",
"(",
"String",
"date",
")",
"{",
"SimpleDateFormat",
"formatter",
"=",
"new",
"SimpleDateFormat",
"(",
"\"yyyy-MM-dd\"",
")",
";",
"int",
"week",
"=",
"0",
";",
";",
"Calendar",
"c",
"=",
"Calendar",
".",
"getInsta... | Get the week of date
@param date current date
@return week of year | [
"Get",
"the",
"week",
"of",
"date"
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/de/unihd/dbs/uima/annotator/heideltime/utilities/DateCalculator.java#L256-L268 | train |
HeidelTime/heideltime | src/de/unihd/dbs/uima/annotator/heideltime/utilities/DateCalculator.java | DateCalculator.getLocaleFromString | public static Locale getLocaleFromString(String locale) throws LocaleException {
for(Locale l : Locale.getAvailableLocales()) {
if(locale.toLowerCase().equals(l.toString().toLowerCase())) {
return l;
}
}
throw new LocaleException();
} | java | public static Locale getLocaleFromString(String locale) throws LocaleException {
for(Locale l : Locale.getAvailableLocales()) {
if(locale.toLowerCase().equals(l.toString().toLowerCase())) {
return l;
}
}
throw new LocaleException();
} | [
"public",
"static",
"Locale",
"getLocaleFromString",
"(",
"String",
"locale",
")",
"throws",
"LocaleException",
"{",
"for",
"(",
"Locale",
"l",
":",
"Locale",
".",
"getAvailableLocales",
"(",
")",
")",
"{",
"if",
"(",
"locale",
".",
"toLowerCase",
"(",
")",
... | takes a desired locale input string, iterates through available locales, returns a locale object
@param locale String to grab a locale for, i.e. en_US, en_GB, de_DE
@return Locale to represent the input String | [
"takes",
"a",
"desired",
"locale",
"input",
"string",
"iterates",
"through",
"available",
"locales",
"returns",
"a",
"locale",
"object"
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/de/unihd/dbs/uima/annotator/heideltime/utilities/DateCalculator.java#L275-L282 | train |
HeidelTime/heideltime | src/jflexcrf/Viterbi.java | Viterbi.allocateMemory | public void allocateMemory(int memorySize) {
this.memorySize = memorySize;
memory = new PairDblInt[memorySize][numLabels];
for (int i = 0; i < memorySize; i++) {
for (int j = 0; j < numLabels; j++) {
memory[i][j] = new PairDblInt();
}
}
} | java | public void allocateMemory(int memorySize) {
this.memorySize = memorySize;
memory = new PairDblInt[memorySize][numLabels];
for (int i = 0; i < memorySize; i++) {
for (int j = 0; j < numLabels; j++) {
memory[i][j] = new PairDblInt();
}
}
} | [
"public",
"void",
"allocateMemory",
"(",
"int",
"memorySize",
")",
"{",
"this",
".",
"memorySize",
"=",
"memorySize",
";",
"memory",
"=",
"new",
"PairDblInt",
"[",
"memorySize",
"]",
"[",
"numLabels",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i... | Allocate memory.
@param memorySize the memory size | [
"Allocate",
"memory",
"."
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/jflexcrf/Viterbi.java#L98-L107 | train |
HeidelTime/heideltime | src/jflexcrf/Viterbi.java | Viterbi.computeMi | public void computeMi() {
Mi.assign(0.0);
model.taggerFGen.startScanEFeatures();
while (model.taggerFGen.hasNextEFeature()) {
Feature f = model.taggerFGen.nextEFeature();
if (f.ftype == Feature.EDGE_FEATURE1) {
Mi.mtrx[f.yp][f.y] += model.lambda[f.idx] * f.val;
}
}
for (int i = 0; i < Mi... | java | public void computeMi() {
Mi.assign(0.0);
model.taggerFGen.startScanEFeatures();
while (model.taggerFGen.hasNextEFeature()) {
Feature f = model.taggerFGen.nextEFeature();
if (f.ftype == Feature.EDGE_FEATURE1) {
Mi.mtrx[f.yp][f.y] += model.lambda[f.idx] * f.val;
}
}
for (int i = 0; i < Mi... | [
"public",
"void",
"computeMi",
"(",
")",
"{",
"Mi",
".",
"assign",
"(",
"0.0",
")",
";",
"model",
".",
"taggerFGen",
".",
"startScanEFeatures",
"(",
")",
";",
"while",
"(",
"model",
".",
"taggerFGen",
".",
"hasNextEFeature",
"(",
")",
")",
"{",
"Featur... | Compute mi. | [
"Compute",
"mi",
"."
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/jflexcrf/Viterbi.java#L112-L129 | train |
HeidelTime/heideltime | src/jflexcrf/Viterbi.java | Viterbi.computeVi | public void computeVi(List seq, int pos, DoubleVector Vi, boolean isExp) {
Vi.assign(0.0);
// start scan features for sequence "seq" at position "pos"
model.taggerFGen.startScanSFeaturesAt(seq, pos);
// examine all features at position "pos"
while (model.taggerFGen.hasNextSFeature()) {
Feature f = model.tag... | java | public void computeVi(List seq, int pos, DoubleVector Vi, boolean isExp) {
Vi.assign(0.0);
// start scan features for sequence "seq" at position "pos"
model.taggerFGen.startScanSFeaturesAt(seq, pos);
// examine all features at position "pos"
while (model.taggerFGen.hasNextSFeature()) {
Feature f = model.tag... | [
"public",
"void",
"computeVi",
"(",
"List",
"seq",
",",
"int",
"pos",
",",
"DoubleVector",
"Vi",
",",
"boolean",
"isExp",
")",
"{",
"Vi",
".",
"assign",
"(",
"0.0",
")",
";",
"// start scan features for sequence \"seq\" at position \"pos\"",
"model",
".",
"tagge... | Compute vi.
@param seq the seq
@param pos the pos
@param Vi the vi
@param isExp the is exp | [
"Compute",
"vi",
"."
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/jflexcrf/Viterbi.java#L139-L159 | train |
HeidelTime/heideltime | src/jflexcrf/Viterbi.java | Viterbi.findMax | public int findMax(PairDblInt[] cols) {
int maxIdx = 0;
double maxVal = -1.0;
for (int i = 0; i < numLabels; i++) {
if (cols[i].first > maxVal) {
maxVal = cols[i].first;
maxIdx = i;
}
}
return maxIdx;
} | java | public int findMax(PairDblInt[] cols) {
int maxIdx = 0;
double maxVal = -1.0;
for (int i = 0; i < numLabels; i++) {
if (cols[i].first > maxVal) {
maxVal = cols[i].first;
maxIdx = i;
}
}
return maxIdx;
} | [
"public",
"int",
"findMax",
"(",
"PairDblInt",
"[",
"]",
"cols",
")",
"{",
"int",
"maxIdx",
"=",
"0",
";",
"double",
"maxVal",
"=",
"-",
"1.0",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"numLabels",
";",
"i",
"++",
")",
"{",
"if",
... | Find max.
@param cols the cols
@return the int | [
"Find",
"max",
"."
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/jflexcrf/Viterbi.java#L202-L214 | train |
HeidelTime/heideltime | src/jflexcrf/Viterbi.java | Viterbi.viterbiInference | public void viterbiInference(List seq) {
int i, j, k;
int seqLen = seq.size();
if (seqLen <= 0) {
return;
}
if (memorySize < seqLen) {
allocateMemory(seqLen);
}
// compute Vi for the first position in the sequence
computeVi(seq, 0, Vi, true);
for (j = 0; j < numLabels; j++) {
memory[0][j]... | java | public void viterbiInference(List seq) {
int i, j, k;
int seqLen = seq.size();
if (seqLen <= 0) {
return;
}
if (memorySize < seqLen) {
allocateMemory(seqLen);
}
// compute Vi for the first position in the sequence
computeVi(seq, 0, Vi, true);
for (j = 0; j < numLabels; j++) {
memory[0][j]... | [
"public",
"void",
"viterbiInference",
"(",
"List",
"seq",
")",
"{",
"int",
"i",
",",
"j",
",",
"k",
";",
"int",
"seqLen",
"=",
"seq",
".",
"size",
"(",
")",
";",
"if",
"(",
"seqLen",
"<=",
"0",
")",
"{",
"return",
";",
"}",
"if",
"(",
"memorySi... | Viterbi inference.
@param seq the seq | [
"Viterbi",
"inference",
"."
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/jflexcrf/Viterbi.java#L221-L277 | train |
HeidelTime/heideltime | src/de/unihd/dbs/uima/annotator/treetagger/TreeTaggerWrapper.java | TreeTaggerWrapper.tokenize | private void tokenize(JCas jcas) {
// read tokenized text to add tokens to the jcas
Logger.printDetail(component, "TreeTagger (tokenization) with: " + ttprops.abbFileName);
EnumSet<Flag> flags = Flag.getSet(ttprops.languageSwitch);
TreeTaggerTokenizer ttt; ttprops.abbFileName = "english-abbreviations";
if(... | java | private void tokenize(JCas jcas) {
// read tokenized text to add tokens to the jcas
Logger.printDetail(component, "TreeTagger (tokenization) with: " + ttprops.abbFileName);
EnumSet<Flag> flags = Flag.getSet(ttprops.languageSwitch);
TreeTaggerTokenizer ttt; ttprops.abbFileName = "english-abbreviations";
if(... | [
"private",
"void",
"tokenize",
"(",
"JCas",
"jcas",
")",
"{",
"// read tokenized text to add tokens to the jcas",
"Logger",
".",
"printDetail",
"(",
"component",
",",
"\"TreeTagger (tokenization) with: \"",
"+",
"ttprops",
".",
"abbFileName",
")",
";",
"EnumSet",
"<",
... | tokenizes a given JCas object's document text using the treetagger program
and adds the recognized tokens to the JCas object.
@param jcas JCas object supplied by the pipeline | [
"tokenizes",
"a",
"given",
"JCas",
"object",
"s",
"document",
"text",
"using",
"the",
"treetagger",
"program",
"and",
"adds",
"the",
"recognized",
"tokens",
"to",
"the",
"JCas",
"object",
"."
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/de/unihd/dbs/uima/annotator/treetagger/TreeTaggerWrapper.java#L259-L302 | train |
HeidelTime/heideltime | src/de/unihd/dbs/uima/annotator/treetagger/TreeTaggerWrapper.java | TreeTaggerWrapper.tokenizeChinese | private void tokenizeChinese(JCas jcas) {
try {
// read tokenized text to add tokens to the jcas
Process proc = ttprops.getChineseTokenizationProcess();
Logger.printDetail(component, "Chinese tokenization: " + ttprops.chineseTokenizerPath);
BufferedReader in = new BufferedReader(new InputStreamReader(... | java | private void tokenizeChinese(JCas jcas) {
try {
// read tokenized text to add tokens to the jcas
Process proc = ttprops.getChineseTokenizationProcess();
Logger.printDetail(component, "Chinese tokenization: " + ttprops.chineseTokenizerPath);
BufferedReader in = new BufferedReader(new InputStreamReader(... | [
"private",
"void",
"tokenizeChinese",
"(",
"JCas",
"jcas",
")",
"{",
"try",
"{",
"// read tokenized text to add tokens to the jcas",
"Process",
"proc",
"=",
"ttprops",
".",
"getChineseTokenizationProcess",
"(",
")",
";",
"Logger",
".",
"printDetail",
"(",
"component",... | tokenizes a given JCas object's document text using the chinese tokenization
script and adds the recognized tokens to the JCas object.
@param jcas JCas object supplied by the pipeline | [
"tokenizes",
"a",
"given",
"JCas",
"object",
"s",
"document",
"text",
"using",
"the",
"chinese",
"tokenization",
"script",
"and",
"adds",
"the",
"recognized",
"tokens",
"to",
"the",
"JCas",
"object",
"."
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/de/unihd/dbs/uima/annotator/treetagger/TreeTaggerWrapper.java#L309-L361 | train |
HeidelTime/heideltime | src/jvnsensegmenter/FeatureGenerator.java | FeatureGenerator.readAbbrList | public static void readAbbrList(String dataFile, Map map) throws IOException {
BufferedReader fin = new BufferedReader(new FileReader(dataFile));
String line;
while ((line = fin.readLine()) != null) {
StringTokenizer strTok = new StringTokenizer(line, " \t\r\n");
if (strTok.countToken... | java | public static void readAbbrList(String dataFile, Map map) throws IOException {
BufferedReader fin = new BufferedReader(new FileReader(dataFile));
String line;
while ((line = fin.readLine()) != null) {
StringTokenizer strTok = new StringTokenizer(line, " \t\r\n");
if (strTok.countToken... | [
"public",
"static",
"void",
"readAbbrList",
"(",
"String",
"dataFile",
",",
"Map",
"map",
")",
"throws",
"IOException",
"{",
"BufferedReader",
"fin",
"=",
"new",
"BufferedReader",
"(",
"new",
"FileReader",
"(",
"dataFile",
")",
")",
";",
"String",
"line",
";... | Read abbr list.
@param dataFile the data file
@param map the map
@throws IOException Signals that an I/O exception has occurred. | [
"Read",
"abbr",
"list",
"."
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/jvnsensegmenter/FeatureGenerator.java#L159-L174 | train |
HeidelTime/heideltime | src/jvnsensegmenter/FeatureGenerator.java | FeatureGenerator.doFeatureGen | public static List doFeatureGen(Map map, String text , List markList, boolean label){
markList.clear();
//Find out positions of .!? and store them in the markList
int nextPos = 0;
while( (nextPos = StringUtils.findFirstOf(text, ".!?", nextPos + 1)) != -1)
... | java | public static List doFeatureGen(Map map, String text , List markList, boolean label){
markList.clear();
//Find out positions of .!? and store them in the markList
int nextPos = 0;
while( (nextPos = StringUtils.findFirstOf(text, ".!?", nextPos + 1)) != -1)
... | [
"public",
"static",
"List",
"doFeatureGen",
"(",
"Map",
"map",
",",
"String",
"text",
",",
"List",
"markList",
",",
"boolean",
"label",
")",
"{",
"markList",
".",
"clear",
"(",
")",
";",
"//Find out positions of .!? and store them in the markList\r",
"int",
"nextP... | Generate context predicates for a specified text, return string representing the context predicates.
@param map the map
@param text the text
@param markList the mark list
@param label the label
@return the list | [
"Generate",
"context",
"predicates",
"for",
"a",
"specified",
"text",
"return",
"string",
"representing",
"the",
"context",
"predicates",
"."
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/jvnsensegmenter/FeatureGenerator.java#L185-L214 | train |
HeidelTime/heideltime | src/de/unihd/dbs/heideltime/standalone/HeidelTimeStandalone.java | HeidelTimeStandalone.initialize | public void initialize(Language language, DocumentType typeToProcess, OutputType outputType, String configPath) {
initialize(language, typeToProcess, outputType, configPath, POSTagger.TREETAGGER);
} | java | public void initialize(Language language, DocumentType typeToProcess, OutputType outputType, String configPath) {
initialize(language, typeToProcess, outputType, configPath, POSTagger.TREETAGGER);
} | [
"public",
"void",
"initialize",
"(",
"Language",
"language",
",",
"DocumentType",
"typeToProcess",
",",
"OutputType",
"outputType",
",",
"String",
"configPath",
")",
"{",
"initialize",
"(",
"language",
",",
"typeToProcess",
",",
"outputType",
",",
"configPath",
",... | Method that initializes all vital prerequisites
@param language Language to be processed with this copy of HeidelTime
@param typeToProcess Domain type to be processed
@param outputType Output type
@param configPath Path to the configuration file for HeidelTimeStandalone | [
"Method",
"that",
"initializes",
"all",
"vital",
"prerequisites"
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/de/unihd/dbs/heideltime/standalone/HeidelTimeStandalone.java#L190-L192 | train |
HeidelTime/heideltime | src/de/unihd/dbs/heideltime/standalone/HeidelTimeStandalone.java | HeidelTimeStandalone.runIntervalTagger | private void runIntervalTagger(JCas jcas) {
logger.log(Level.FINEST, "Running Interval Tagger...");
Integer beforeAnnotations = jcas.getAnnotationIndex().size();
// Prepare the options for IntervalTagger's execution
Properties settings = new Properties();
settings.put(IntervalTagger.PARAM_LANGUAGE, l... | java | private void runIntervalTagger(JCas jcas) {
logger.log(Level.FINEST, "Running Interval Tagger...");
Integer beforeAnnotations = jcas.getAnnotationIndex().size();
// Prepare the options for IntervalTagger's execution
Properties settings = new Properties();
settings.put(IntervalTagger.PARAM_LANGUAGE, l... | [
"private",
"void",
"runIntervalTagger",
"(",
"JCas",
"jcas",
")",
"{",
"logger",
".",
"log",
"(",
"Level",
".",
"FINEST",
",",
"\"Running Interval Tagger...\"",
")",
";",
"Integer",
"beforeAnnotations",
"=",
"jcas",
".",
"getAnnotationIndex",
"(",
")",
".",
"s... | Runs the IntervalTagger on the JCAS object.
@param jcas jcas object | [
"Runs",
"the",
"IntervalTagger",
"on",
"the",
"JCAS",
"object",
"."
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/de/unihd/dbs/heideltime/standalone/HeidelTimeStandalone.java#L267-L285 | train |
HeidelTime/heideltime | src/de/unihd/dbs/uima/annotator/treetagger/TreeTaggerProperties.java | TreeTaggerProperties.getTokenizationProcess | @Deprecated
public Process getTokenizationProcess(File inputFile) throws IOException {
// assemble a command line for the tokenization script and execute it
ArrayList<String> command = new ArrayList<String>();
command.add("perl");
if(this.utf8Switch != "")
command.add(this.utf8Switch);
command.add(this.ro... | java | @Deprecated
public Process getTokenizationProcess(File inputFile) throws IOException {
// assemble a command line for the tokenization script and execute it
ArrayList<String> command = new ArrayList<String>();
command.add("perl");
if(this.utf8Switch != "")
command.add(this.utf8Switch);
command.add(this.ro... | [
"@",
"Deprecated",
"public",
"Process",
"getTokenizationProcess",
"(",
"File",
"inputFile",
")",
"throws",
"IOException",
"{",
"// assemble a command line for the tokenization script and execute it",
"ArrayList",
"<",
"String",
">",
"command",
"=",
"new",
"ArrayList",
"<",
... | This method creates a process with some parameters for the tokenizer script.
Deprecated: We use TreeTaggerTokenizer in the same package nowadays which implements the utf8-tokenize.perl
script from the TreeTagger package. This fixes some issues with Perl's Unicode handling.
@param inputFile
@return
@throws IOException | [
"This",
"method",
"creates",
"a",
"process",
"with",
"some",
"parameters",
"for",
"the",
"tokenizer",
"script",
"."
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/de/unihd/dbs/uima/annotator/treetagger/TreeTaggerProperties.java#L59-L80 | train |
HeidelTime/heideltime | src/jmaxent/Dictionary.java | Dictionary.readDict | public void readDict(BufferedReader fin) throws IOException {
dict.clear();
String line;
// get dictionary size
if ((line = fin.readLine()) == null) {
System.out.println("No dictionary size information");
return;
}
int dictSize = Integer.parseInt(line);
if (dictSize <= 0) {
System.out.printl... | java | public void readDict(BufferedReader fin) throws IOException {
dict.clear();
String line;
// get dictionary size
if ((line = fin.readLine()) == null) {
System.out.println("No dictionary size information");
return;
}
int dictSize = Integer.parseInt(line);
if (dictSize <= 0) {
System.out.printl... | [
"public",
"void",
"readDict",
"(",
"BufferedReader",
"fin",
")",
"throws",
"IOException",
"{",
"dict",
".",
"clear",
"(",
")",
";",
"String",
"line",
";",
"// get dictionary size",
"if",
"(",
"(",
"line",
"=",
"fin",
".",
"readLine",
"(",
")",
")",
"==",... | Read dict.
@param fin the fin
@throws IOException Signals that an I/O exception has occurred. | [
"Read",
"dict",
"."
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/jmaxent/Dictionary.java#L74-L137 | train |
HeidelTime/heideltime | src/jmaxent/Dictionary.java | Dictionary.writeDict | public void writeDict(PrintWriter fout) throws IOException {
Iterator it = null;
int count = 0;
for (it = dict.keySet().iterator(); it.hasNext(); ) {
Integer cpInt = (Integer)it.next();
Element elem = (Element)dict.get(cpInt);
if (elem.chosen == 1) {
count++;
}
}
// write the diction... | java | public void writeDict(PrintWriter fout) throws IOException {
Iterator it = null;
int count = 0;
for (it = dict.keySet().iterator(); it.hasNext(); ) {
Integer cpInt = (Integer)it.next();
Element elem = (Element)dict.get(cpInt);
if (elem.chosen == 1) {
count++;
}
}
// write the diction... | [
"public",
"void",
"writeDict",
"(",
"PrintWriter",
"fout",
")",
"throws",
"IOException",
"{",
"Iterator",
"it",
"=",
"null",
";",
"int",
"count",
"=",
"0",
";",
"for",
"(",
"it",
"=",
"dict",
".",
"keySet",
"(",
")",
".",
"iterator",
"(",
")",
";",
... | Write dict.
@param fout the fout
@throws IOException Signals that an I/O exception has occurred. | [
"Write",
"dict",
"."
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/jmaxent/Dictionary.java#L146-L192 | train |
HeidelTime/heideltime | src/jmaxent/Dictionary.java | Dictionary.addDict | public void addDict(int cp, int label, int count) {
Element elem = (Element)dict.get(new Integer(cp));
if (elem == null) {
// if the context predicate is not found
elem = new Element();
elem.count = count;
CountFIdx cntFIdx = new CountFIdx(count, -1);
elem.lbCntFidxes.put(new Integer(... | java | public void addDict(int cp, int label, int count) {
Element elem = (Element)dict.get(new Integer(cp));
if (elem == null) {
// if the context predicate is not found
elem = new Element();
elem.count = count;
CountFIdx cntFIdx = new CountFIdx(count, -1);
elem.lbCntFidxes.put(new Integer(... | [
"public",
"void",
"addDict",
"(",
"int",
"cp",
",",
"int",
"label",
",",
"int",
"count",
")",
"{",
"Element",
"elem",
"=",
"(",
"Element",
")",
"dict",
".",
"get",
"(",
"new",
"Integer",
"(",
"cp",
")",
")",
";",
"if",
"(",
"elem",
"==",
"null",
... | Adds the dict.
@param cp the cp
@param label the label
@param count the count | [
"Adds",
"the",
"dict",
"."
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/jmaxent/Dictionary.java#L202-L231 | train |
HeidelTime/heideltime | src/jmaxent/Dictionary.java | Dictionary.generateDict | public void generateDict() {
if (data.trnData == null) {
System.out.println("No data available for generating dictionary");
return;
}
// scan all data observations of the training data
for (int i = 0; i < data.trnData.size(); i++) {
Observation obsr = (Observation)data.trnData.get(i);
fo... | java | public void generateDict() {
if (data.trnData == null) {
System.out.println("No data available for generating dictionary");
return;
}
// scan all data observations of the training data
for (int i = 0; i < data.trnData.size(); i++) {
Observation obsr = (Observation)data.trnData.get(i);
fo... | [
"public",
"void",
"generateDict",
"(",
")",
"{",
"if",
"(",
"data",
".",
"trnData",
"==",
"null",
")",
"{",
"System",
".",
"out",
".",
"println",
"(",
"\"No data available for generating dictionary\"",
")",
";",
"return",
";",
"}",
"// scan all data observations... | Generate dict. | [
"Generate",
"dict",
"."
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/jmaxent/Dictionary.java#L237-L251 | train |
HeidelTime/heideltime | src/hr/fer/zemris/takelab/splitter/TokenSplitter.java | TokenSplitter.getTokens | public static List<String> getTokens(String sentence) {
//Token container
List<String> tokens = new ArrayList<String>();
//Token building buffer
StringBuilder buff = new StringBuilder();
for(char c : sentence.toCharArray()) {
//Spaces delimit tokens (if non-empty token)
if(buff.length() > 0 && spaces... | java | public static List<String> getTokens(String sentence) {
//Token container
List<String> tokens = new ArrayList<String>();
//Token building buffer
StringBuilder buff = new StringBuilder();
for(char c : sentence.toCharArray()) {
//Spaces delimit tokens (if non-empty token)
if(buff.length() > 0 && spaces... | [
"public",
"static",
"List",
"<",
"String",
">",
"getTokens",
"(",
"String",
"sentence",
")",
"{",
"//Token container",
"List",
"<",
"String",
">",
"tokens",
"=",
"new",
"ArrayList",
"<",
"String",
">",
"(",
")",
";",
"//Token building buffer",
"StringBuilder",... | Takes a string and returns a List of all tokens contained within it.
Any non-whitespace string of characters delimited by punctuation or whitespace is considered a token.
Likewise, every instance of a punctuation character is also a token.
@param sentence A string from which tokens are extracted
@return List of tokens ... | [
"Takes",
"a",
"string",
"and",
"returns",
"a",
"List",
"of",
"all",
"tokens",
"contained",
"within",
"it",
".",
"Any",
"non",
"-",
"whitespace",
"string",
"of",
"characters",
"delimited",
"by",
"punctuation",
"or",
"whitespace",
"is",
"considered",
"a",
"tok... | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/hr/fer/zemris/takelab/splitter/TokenSplitter.java#L30-L62 | train |
HeidelTime/heideltime | src/de/unihd/dbs/uima/reader/tempeval2reader/Tempeval2Reader.java | Tempeval2Reader.addTokenAnnotation | public Integer addTokenAnnotation(String tokenString, String fileId, Integer sentId, Integer tokId, Integer positionCounter, JCas jcas){
Token token = new Token(jcas);
if (!((sentId == newTokSentNumber) && (tokId == newTokSentNumber))){
if(USE_SPACES) // in chinese, there are no spaces, so the +1 correction is u... | java | public Integer addTokenAnnotation(String tokenString, String fileId, Integer sentId, Integer tokId, Integer positionCounter, JCas jcas){
Token token = new Token(jcas);
if (!((sentId == newTokSentNumber) && (tokId == newTokSentNumber))){
if(USE_SPACES) // in chinese, there are no spaces, so the +1 correction is u... | [
"public",
"Integer",
"addTokenAnnotation",
"(",
"String",
"tokenString",
",",
"String",
"fileId",
",",
"Integer",
"sentId",
",",
"Integer",
"tokId",
",",
"Integer",
"positionCounter",
",",
"JCas",
"jcas",
")",
"{",
"Token",
"token",
"=",
"new",
"Token",
"(",
... | Add token annotation to jcas
@param tokenString
@param fileId
@param tokId
@param positionCounter
@param jcas
@return | [
"Add",
"token",
"annotation",
"to",
"jcas"
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/de/unihd/dbs/uima/reader/tempeval2reader/Tempeval2Reader.java#L391-L409 | train |
HeidelTime/heideltime | src/de/unihd/dbs/uima/reader/tempeval2reader/Tempeval2Reader.java | Tempeval2Reader.getNumberOfDocuments | private Integer getNumberOfDocuments(List<File> inputFiles) throws ResourceInitializationException{
String directory = (String) getConfigParameterValue(PARAM_INPUTDIR);
String filename = directory+"/"+FILE_BASE_SEGMENTATION;
for (File file : inputFiles) {
if (file.getAbsolutePath().equals(filename)){
try ... | java | private Integer getNumberOfDocuments(List<File> inputFiles) throws ResourceInitializationException{
String directory = (String) getConfigParameterValue(PARAM_INPUTDIR);
String filename = directory+"/"+FILE_BASE_SEGMENTATION;
for (File file : inputFiles) {
if (file.getAbsolutePath().equals(filename)){
try ... | [
"private",
"Integer",
"getNumberOfDocuments",
"(",
"List",
"<",
"File",
">",
"inputFiles",
")",
"throws",
"ResourceInitializationException",
"{",
"String",
"directory",
"=",
"(",
"String",
")",
"getConfigParameterValue",
"(",
"PARAM_INPUTDIR",
")",
";",
"String",
"f... | count the number of different "documents" and save doc names in filenames
@param inputFiles
@return
@throws ResourceInitializationException | [
"count",
"the",
"number",
"of",
"different",
"documents",
"and",
"save",
"doc",
"names",
"in",
"filenames"
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/de/unihd/dbs/uima/reader/tempeval2reader/Tempeval2Reader.java#L417-L439 | train |
HeidelTime/heideltime | src/jmaxent/Feature.java | Feature.strId2Idx | public int strId2Idx(Map fmap) {
Integer idxInt = (Integer)fmap.get(strId);
if (idxInt != null) {
this.idx = idxInt.intValue();
}
return this.idx;
} | java | public int strId2Idx(Map fmap) {
Integer idxInt = (Integer)fmap.get(strId);
if (idxInt != null) {
this.idx = idxInt.intValue();
}
return this.idx;
} | [
"public",
"int",
"strId2Idx",
"(",
"Map",
"fmap",
")",
"{",
"Integer",
"idxInt",
"=",
"(",
"Integer",
")",
"fmap",
".",
"get",
"(",
"strId",
")",
";",
"if",
"(",
"idxInt",
"!=",
"null",
")",
"{",
"this",
".",
"idx",
"=",
"idxInt",
".",
"intValue",
... | Str id2 idx.
@param fmap the fmap
@return the int | [
"Str",
"id2",
"idx",
"."
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/jmaxent/Feature.java#L160-L167 | train |
HeidelTime/heideltime | src/jmaxent/Feature.java | Feature.strId2IdxAdd | public int strId2IdxAdd(Map fmap) {
strId2Idx(fmap);
if (idx < 0) {
idx = fmap.size();
fmap.put(strId, new Integer(idx));
}
return idx;
} | java | public int strId2IdxAdd(Map fmap) {
strId2Idx(fmap);
if (idx < 0) {
idx = fmap.size();
fmap.put(strId, new Integer(idx));
}
return idx;
} | [
"public",
"int",
"strId2IdxAdd",
"(",
"Map",
"fmap",
")",
"{",
"strId2Idx",
"(",
"fmap",
")",
";",
"if",
"(",
"idx",
"<",
"0",
")",
"{",
"idx",
"=",
"fmap",
".",
"size",
"(",
")",
";",
"fmap",
".",
"put",
"(",
"strId",
",",
"new",
"Integer",
"(... | Str id2 idx add.
@param fmap the fmap
@return the int | [
"Str",
"id2",
"idx",
"add",
"."
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/jmaxent/Feature.java#L177-L186 | train |
HeidelTime/heideltime | src/de/unihd/dbs/uima/annotator/heideltime/resources/RePatternManager.java | RePatternManager.readRePatternResources | private void readRePatternResources(ResourceMap hmResourcesRePattern, Boolean load_temponym_resources) {
//////////////////////////////////////
// READ REGULAR EXPRESSION PATTERNS //
//////////////////////////////////////
InputStream is = null;
InputStreamReader isr = null;
BufferedReader br = null;
try ... | java | private void readRePatternResources(ResourceMap hmResourcesRePattern, Boolean load_temponym_resources) {
//////////////////////////////////////
// READ REGULAR EXPRESSION PATTERNS //
//////////////////////////////////////
InputStream is = null;
InputStreamReader isr = null;
BufferedReader br = null;
try ... | [
"private",
"void",
"readRePatternResources",
"(",
"ResourceMap",
"hmResourcesRePattern",
",",
"Boolean",
"load_temponym_resources",
")",
"{",
"//////////////////////////////////////",
"// READ REGULAR EXPRESSION PATTERNS //",
"//////////////////////////////////////",
"InputStream",
"is... | READ THE REPATTERN FROM THE FILES. The files have to be defined in the HashMap hmResourcesRePattern.
@param hmResourcesRePattern RePattern resources to be interpreted
@param load_temponym_resources whether temponym resources are to be read | [
"READ",
"THE",
"REPATTERN",
"FROM",
"THE",
"FILES",
".",
"The",
"files",
"have",
"to",
"be",
"defined",
"in",
"the",
"HashMap",
"hmResourcesRePattern",
"."
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/de/unihd/dbs/uima/annotator/heideltime/resources/RePatternManager.java#L70-L157 | train |
HeidelTime/heideltime | src/de/unihd/dbs/uima/annotator/heideltime/resources/RePatternManager.java | RePatternManager.finalizeRePattern | private void finalizeRePattern(String name, String rePattern) {
// create correct regular expression
rePattern = rePattern.replaceFirst("\\|", "");
/* this was added to reduce the danger of getting unusable groups from user-made repattern
* files with group-producing parentheses (i.e. "(foo|bar)" while matchin... | java | private void finalizeRePattern(String name, String rePattern) {
// create correct regular expression
rePattern = rePattern.replaceFirst("\\|", "");
/* this was added to reduce the danger of getting unusable groups from user-made repattern
* files with group-producing parentheses (i.e. "(foo|bar)" while matchin... | [
"private",
"void",
"finalizeRePattern",
"(",
"String",
"name",
",",
"String",
"rePattern",
")",
"{",
"// create correct regular expression",
"rePattern",
"=",
"rePattern",
".",
"replaceFirst",
"(",
"\"\\\\|\"",
",",
"\"\"",
")",
";",
"/* this was added to reduce the dan... | Pattern containing regular expression is finalized, i.e., created correctly and added to hmAllRePattern.
@param name key name
@param rePattern repattern value | [
"Pattern",
"containing",
"regular",
"expression",
"is",
"finalized",
"i",
".",
"e",
".",
"created",
"correctly",
"and",
"added",
"to",
"hmAllRePattern",
"."
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/de/unihd/dbs/uima/annotator/heideltime/resources/RePatternManager.java#L164-L174 | train |
HeidelTime/heideltime | src/de/unihd/dbs/uima/types/heideltime/Timex3.java | Timex3.getSentId | public int getSentId() {
if (Timex3_Type.featOkTst && ((Timex3_Type)jcasType).casFeat_sentId == null)
jcasType.jcas.throwFeatMissing("sentId", "de.unihd.dbs.uima.types.heideltime.Timex3");
return jcasType.ll_cas.ll_getIntValue(addr, ((Timex3_Type)jcasType).casFeatCode_sentId);} | java | public int getSentId() {
if (Timex3_Type.featOkTst && ((Timex3_Type)jcasType).casFeat_sentId == null)
jcasType.jcas.throwFeatMissing("sentId", "de.unihd.dbs.uima.types.heideltime.Timex3");
return jcasType.ll_cas.ll_getIntValue(addr, ((Timex3_Type)jcasType).casFeatCode_sentId);} | [
"public",
"int",
"getSentId",
"(",
")",
"{",
"if",
"(",
"Timex3_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"Timex3_Type",
")",
"jcasType",
")",
".",
"casFeat_sentId",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"sentId\"",
","... | getter for sentId - gets
@generated
@return value of the feature | [
"getter",
"for",
"sentId",
"-",
"gets"
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/de/unihd/dbs/uima/types/heideltime/Timex3.java#L94-L97 | train |
HeidelTime/heideltime | src/de/unihd/dbs/uima/types/heideltime/Timex3.java | Timex3.getFirstTokId | public int getFirstTokId() {
if (Timex3_Type.featOkTst && ((Timex3_Type)jcasType).casFeat_firstTokId == null)
jcasType.jcas.throwFeatMissing("firstTokId", "de.unihd.dbs.uima.types.heideltime.Timex3");
return jcasType.ll_cas.ll_getIntValue(addr, ((Timex3_Type)jcasType).casFeatCode_firstTokId);} | java | public int getFirstTokId() {
if (Timex3_Type.featOkTst && ((Timex3_Type)jcasType).casFeat_firstTokId == null)
jcasType.jcas.throwFeatMissing("firstTokId", "de.unihd.dbs.uima.types.heideltime.Timex3");
return jcasType.ll_cas.ll_getIntValue(addr, ((Timex3_Type)jcasType).casFeatCode_firstTokId);} | [
"public",
"int",
"getFirstTokId",
"(",
")",
"{",
"if",
"(",
"Timex3_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"Timex3_Type",
")",
"jcasType",
")",
".",
"casFeat_firstTokId",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"firstTok... | getter for firstTokId - gets
@generated
@return value of the feature | [
"getter",
"for",
"firstTokId",
"-",
"gets"
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/de/unihd/dbs/uima/types/heideltime/Timex3.java#L116-L119 | train |
HeidelTime/heideltime | src/de/unihd/dbs/uima/types/heideltime/Timex3.java | Timex3.setFirstTokId | public void setFirstTokId(int v) {
if (Timex3_Type.featOkTst && ((Timex3_Type)jcasType).casFeat_firstTokId == null)
jcasType.jcas.throwFeatMissing("firstTokId", "de.unihd.dbs.uima.types.heideltime.Timex3");
jcasType.ll_cas.ll_setIntValue(addr, ((Timex3_Type)jcasType).casFeatCode_firstTokId, v);} | java | public void setFirstTokId(int v) {
if (Timex3_Type.featOkTst && ((Timex3_Type)jcasType).casFeat_firstTokId == null)
jcasType.jcas.throwFeatMissing("firstTokId", "de.unihd.dbs.uima.types.heideltime.Timex3");
jcasType.ll_cas.ll_setIntValue(addr, ((Timex3_Type)jcasType).casFeatCode_firstTokId, v);} | [
"public",
"void",
"setFirstTokId",
"(",
"int",
"v",
")",
"{",
"if",
"(",
"Timex3_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"Timex3_Type",
")",
"jcasType",
")",
".",
"casFeat_firstTokId",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"... | setter for firstTokId - sets
@generated
@param v value to set into the feature | [
"setter",
"for",
"firstTokId",
"-",
"sets"
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/de/unihd/dbs/uima/types/heideltime/Timex3.java#L125-L128 | train |
HeidelTime/heideltime | src/de/unihd/dbs/uima/types/heideltime/Timex3.java | Timex3.getAllTokIds | public String getAllTokIds() {
if (Timex3_Type.featOkTst && ((Timex3_Type)jcasType).casFeat_allTokIds == null)
jcasType.jcas.throwFeatMissing("allTokIds", "de.unihd.dbs.uima.types.heideltime.Timex3");
return jcasType.ll_cas.ll_getStringValue(addr, ((Timex3_Type)jcasType).casFeatCode_allTokIds);} | java | public String getAllTokIds() {
if (Timex3_Type.featOkTst && ((Timex3_Type)jcasType).casFeat_allTokIds == null)
jcasType.jcas.throwFeatMissing("allTokIds", "de.unihd.dbs.uima.types.heideltime.Timex3");
return jcasType.ll_cas.ll_getStringValue(addr, ((Timex3_Type)jcasType).casFeatCode_allTokIds);} | [
"public",
"String",
"getAllTokIds",
"(",
")",
"{",
"if",
"(",
"Timex3_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"Timex3_Type",
")",
"jcasType",
")",
".",
"casFeat_allTokIds",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"allTokI... | getter for allTokIds - gets
@generated
@return value of the feature | [
"getter",
"for",
"allTokIds",
"-",
"gets"
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/de/unihd/dbs/uima/types/heideltime/Timex3.java#L138-L141 | train |
HeidelTime/heideltime | src/de/unihd/dbs/uima/types/heideltime/Timex3.java | Timex3.setAllTokIds | public void setAllTokIds(String v) {
if (Timex3_Type.featOkTst && ((Timex3_Type)jcasType).casFeat_allTokIds == null)
jcasType.jcas.throwFeatMissing("allTokIds", "de.unihd.dbs.uima.types.heideltime.Timex3");
jcasType.ll_cas.ll_setStringValue(addr, ((Timex3_Type)jcasType).casFeatCode_allTokIds, v);} | java | public void setAllTokIds(String v) {
if (Timex3_Type.featOkTst && ((Timex3_Type)jcasType).casFeat_allTokIds == null)
jcasType.jcas.throwFeatMissing("allTokIds", "de.unihd.dbs.uima.types.heideltime.Timex3");
jcasType.ll_cas.ll_setStringValue(addr, ((Timex3_Type)jcasType).casFeatCode_allTokIds, v);} | [
"public",
"void",
"setAllTokIds",
"(",
"String",
"v",
")",
"{",
"if",
"(",
"Timex3_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"Timex3_Type",
")",
"jcasType",
")",
".",
"casFeat_allTokIds",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
... | setter for allTokIds - sets
@generated
@param v value to set into the feature | [
"setter",
"for",
"allTokIds",
"-",
"sets"
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/de/unihd/dbs/uima/types/heideltime/Timex3.java#L147-L150 | train |
HeidelTime/heideltime | src/de/unihd/dbs/uima/types/heideltime/Timex3.java | Timex3.getTimexInstance | public int getTimexInstance() {
if (Timex3_Type.featOkTst && ((Timex3_Type)jcasType).casFeat_timexInstance == null)
jcasType.jcas.throwFeatMissing("timexInstance", "de.unihd.dbs.uima.types.heideltime.Timex3");
return jcasType.ll_cas.ll_getIntValue(addr, ((Timex3_Type)jcasType).casFeatCode_timexInstance);} | java | public int getTimexInstance() {
if (Timex3_Type.featOkTst && ((Timex3_Type)jcasType).casFeat_timexInstance == null)
jcasType.jcas.throwFeatMissing("timexInstance", "de.unihd.dbs.uima.types.heideltime.Timex3");
return jcasType.ll_cas.ll_getIntValue(addr, ((Timex3_Type)jcasType).casFeatCode_timexInstance);} | [
"public",
"int",
"getTimexInstance",
"(",
")",
"{",
"if",
"(",
"Timex3_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"Timex3_Type",
")",
"jcasType",
")",
".",
"casFeat_timexInstance",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"ti... | getter for timexInstance - gets
@generated
@return value of the feature | [
"getter",
"for",
"timexInstance",
"-",
"gets"
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/de/unihd/dbs/uima/types/heideltime/Timex3.java#L182-L185 | train |
HeidelTime/heideltime | src/de/unihd/dbs/uima/types/heideltime/Timex3.java | Timex3.setTimexInstance | public void setTimexInstance(int v) {
if (Timex3_Type.featOkTst && ((Timex3_Type)jcasType).casFeat_timexInstance == null)
jcasType.jcas.throwFeatMissing("timexInstance", "de.unihd.dbs.uima.types.heideltime.Timex3");
jcasType.ll_cas.ll_setIntValue(addr, ((Timex3_Type)jcasType).casFeatCode_timexInstance, v)... | java | public void setTimexInstance(int v) {
if (Timex3_Type.featOkTst && ((Timex3_Type)jcasType).casFeat_timexInstance == null)
jcasType.jcas.throwFeatMissing("timexInstance", "de.unihd.dbs.uima.types.heideltime.Timex3");
jcasType.ll_cas.ll_setIntValue(addr, ((Timex3_Type)jcasType).casFeatCode_timexInstance, v)... | [
"public",
"void",
"setTimexInstance",
"(",
"int",
"v",
")",
"{",
"if",
"(",
"Timex3_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"Timex3_Type",
")",
"jcasType",
")",
".",
"casFeat_timexInstance",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing... | setter for timexInstance - sets
@generated
@param v value to set into the feature | [
"setter",
"for",
"timexInstance",
"-",
"sets"
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/de/unihd/dbs/uima/types/heideltime/Timex3.java#L191-L194 | train |
HeidelTime/heideltime | src/de/unihd/dbs/uima/types/heideltime/Timex3.java | Timex3.getTimexType | public String getTimexType() {
if (Timex3_Type.featOkTst && ((Timex3_Type)jcasType).casFeat_timexType == null)
jcasType.jcas.throwFeatMissing("timexType", "de.unihd.dbs.uima.types.heideltime.Timex3");
return jcasType.ll_cas.ll_getStringValue(addr, ((Timex3_Type)jcasType).casFeatCode_timexType);} | java | public String getTimexType() {
if (Timex3_Type.featOkTst && ((Timex3_Type)jcasType).casFeat_timexType == null)
jcasType.jcas.throwFeatMissing("timexType", "de.unihd.dbs.uima.types.heideltime.Timex3");
return jcasType.ll_cas.ll_getStringValue(addr, ((Timex3_Type)jcasType).casFeatCode_timexType);} | [
"public",
"String",
"getTimexType",
"(",
")",
"{",
"if",
"(",
"Timex3_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"Timex3_Type",
")",
"jcasType",
")",
".",
"casFeat_timexType",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"timexTy... | getter for timexType - gets
@generated
@return value of the feature | [
"getter",
"for",
"timexType",
"-",
"gets"
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/de/unihd/dbs/uima/types/heideltime/Timex3.java#L204-L207 | train |
HeidelTime/heideltime | src/de/unihd/dbs/uima/types/heideltime/Timex3.java | Timex3.setTimexType | public void setTimexType(String v) {
if (Timex3_Type.featOkTst && ((Timex3_Type)jcasType).casFeat_timexType == null)
jcasType.jcas.throwFeatMissing("timexType", "de.unihd.dbs.uima.types.heideltime.Timex3");
jcasType.ll_cas.ll_setStringValue(addr, ((Timex3_Type)jcasType).casFeatCode_timexType, v);} | java | public void setTimexType(String v) {
if (Timex3_Type.featOkTst && ((Timex3_Type)jcasType).casFeat_timexType == null)
jcasType.jcas.throwFeatMissing("timexType", "de.unihd.dbs.uima.types.heideltime.Timex3");
jcasType.ll_cas.ll_setStringValue(addr, ((Timex3_Type)jcasType).casFeatCode_timexType, v);} | [
"public",
"void",
"setTimexType",
"(",
"String",
"v",
")",
"{",
"if",
"(",
"Timex3_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"Timex3_Type",
")",
"jcasType",
")",
".",
"casFeat_timexType",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
... | setter for timexType - sets
@generated
@param v value to set into the feature | [
"setter",
"for",
"timexType",
"-",
"sets"
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/de/unihd/dbs/uima/types/heideltime/Timex3.java#L213-L216 | train |
HeidelTime/heideltime | src/de/unihd/dbs/uima/types/heideltime/Timex3.java | Timex3.getTimexValue | public String getTimexValue() {
if (Timex3_Type.featOkTst && ((Timex3_Type)jcasType).casFeat_timexValue == null)
jcasType.jcas.throwFeatMissing("timexValue", "de.unihd.dbs.uima.types.heideltime.Timex3");
return jcasType.ll_cas.ll_getStringValue(addr, ((Timex3_Type)jcasType).casFeatCode_timexValue);} | java | public String getTimexValue() {
if (Timex3_Type.featOkTst && ((Timex3_Type)jcasType).casFeat_timexValue == null)
jcasType.jcas.throwFeatMissing("timexValue", "de.unihd.dbs.uima.types.heideltime.Timex3");
return jcasType.ll_cas.ll_getStringValue(addr, ((Timex3_Type)jcasType).casFeatCode_timexValue);} | [
"public",
"String",
"getTimexValue",
"(",
")",
"{",
"if",
"(",
"Timex3_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"Timex3_Type",
")",
"jcasType",
")",
".",
"casFeat_timexValue",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"timex... | getter for timexValue - gets
@generated
@return value of the feature | [
"getter",
"for",
"timexValue",
"-",
"gets"
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/de/unihd/dbs/uima/types/heideltime/Timex3.java#L226-L229 | train |
HeidelTime/heideltime | src/de/unihd/dbs/uima/types/heideltime/Timex3.java | Timex3.setTimexValue | public void setTimexValue(String v) {
if (Timex3_Type.featOkTst && ((Timex3_Type)jcasType).casFeat_timexValue == null)
jcasType.jcas.throwFeatMissing("timexValue", "de.unihd.dbs.uima.types.heideltime.Timex3");
jcasType.ll_cas.ll_setStringValue(addr, ((Timex3_Type)jcasType).casFeatCode_timexValue, v);} | java | public void setTimexValue(String v) {
if (Timex3_Type.featOkTst && ((Timex3_Type)jcasType).casFeat_timexValue == null)
jcasType.jcas.throwFeatMissing("timexValue", "de.unihd.dbs.uima.types.heideltime.Timex3");
jcasType.ll_cas.ll_setStringValue(addr, ((Timex3_Type)jcasType).casFeatCode_timexValue, v);} | [
"public",
"void",
"setTimexValue",
"(",
"String",
"v",
")",
"{",
"if",
"(",
"Timex3_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"Timex3_Type",
")",
"jcasType",
")",
".",
"casFeat_timexValue",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
... | setter for timexValue - sets
@generated
@param v value to set into the feature | [
"setter",
"for",
"timexValue",
"-",
"sets"
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/de/unihd/dbs/uima/types/heideltime/Timex3.java#L235-L238 | train |
HeidelTime/heideltime | src/de/unihd/dbs/uima/types/heideltime/Timex3.java | Timex3.getFoundByRule | public String getFoundByRule() {
if (Timex3_Type.featOkTst && ((Timex3_Type)jcasType).casFeat_foundByRule == null)
jcasType.jcas.throwFeatMissing("foundByRule", "de.unihd.dbs.uima.types.heideltime.Timex3");
return jcasType.ll_cas.ll_getStringValue(addr, ((Timex3_Type)jcasType).casFeatCode_foundByRule);} | java | public String getFoundByRule() {
if (Timex3_Type.featOkTst && ((Timex3_Type)jcasType).casFeat_foundByRule == null)
jcasType.jcas.throwFeatMissing("foundByRule", "de.unihd.dbs.uima.types.heideltime.Timex3");
return jcasType.ll_cas.ll_getStringValue(addr, ((Timex3_Type)jcasType).casFeatCode_foundByRule);} | [
"public",
"String",
"getFoundByRule",
"(",
")",
"{",
"if",
"(",
"Timex3_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"Timex3_Type",
")",
"jcasType",
")",
".",
"casFeat_foundByRule",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"fou... | getter for foundByRule - gets
@generated
@return value of the feature | [
"getter",
"for",
"foundByRule",
"-",
"gets"
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/de/unihd/dbs/uima/types/heideltime/Timex3.java#L248-L251 | train |
HeidelTime/heideltime | src/de/unihd/dbs/uima/types/heideltime/Timex3.java | Timex3.setFoundByRule | public void setFoundByRule(String v) {
if (Timex3_Type.featOkTst && ((Timex3_Type)jcasType).casFeat_foundByRule == null)
jcasType.jcas.throwFeatMissing("foundByRule", "de.unihd.dbs.uima.types.heideltime.Timex3");
jcasType.ll_cas.ll_setStringValue(addr, ((Timex3_Type)jcasType).casFeatCode_foundByRule, v);} | java | public void setFoundByRule(String v) {
if (Timex3_Type.featOkTst && ((Timex3_Type)jcasType).casFeat_foundByRule == null)
jcasType.jcas.throwFeatMissing("foundByRule", "de.unihd.dbs.uima.types.heideltime.Timex3");
jcasType.ll_cas.ll_setStringValue(addr, ((Timex3_Type)jcasType).casFeatCode_foundByRule, v);} | [
"public",
"void",
"setFoundByRule",
"(",
"String",
"v",
")",
"{",
"if",
"(",
"Timex3_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"Timex3_Type",
")",
"jcasType",
")",
".",
"casFeat_foundByRule",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing"... | setter for foundByRule - sets
@generated
@param v value to set into the feature | [
"setter",
"for",
"foundByRule",
"-",
"sets"
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/de/unihd/dbs/uima/types/heideltime/Timex3.java#L257-L260 | train |
HeidelTime/heideltime | src/de/unihd/dbs/uima/types/heideltime/Timex3.java | Timex3.getTimexQuant | public String getTimexQuant() {
if (Timex3_Type.featOkTst && ((Timex3_Type)jcasType).casFeat_timexQuant == null)
jcasType.jcas.throwFeatMissing("timexQuant", "de.unihd.dbs.uima.types.heideltime.Timex3");
return jcasType.ll_cas.ll_getStringValue(addr, ((Timex3_Type)jcasType).casFeatCode_timexQuant);} | java | public String getTimexQuant() {
if (Timex3_Type.featOkTst && ((Timex3_Type)jcasType).casFeat_timexQuant == null)
jcasType.jcas.throwFeatMissing("timexQuant", "de.unihd.dbs.uima.types.heideltime.Timex3");
return jcasType.ll_cas.ll_getStringValue(addr, ((Timex3_Type)jcasType).casFeatCode_timexQuant);} | [
"public",
"String",
"getTimexQuant",
"(",
")",
"{",
"if",
"(",
"Timex3_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"Timex3_Type",
")",
"jcasType",
")",
".",
"casFeat_timexQuant",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"timex... | getter for timexQuant - gets
@generated
@return value of the feature | [
"getter",
"for",
"timexQuant",
"-",
"gets"
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/de/unihd/dbs/uima/types/heideltime/Timex3.java#L270-L273 | train |
HeidelTime/heideltime | src/de/unihd/dbs/uima/types/heideltime/Timex3.java | Timex3.setTimexQuant | public void setTimexQuant(String v) {
if (Timex3_Type.featOkTst && ((Timex3_Type)jcasType).casFeat_timexQuant == null)
jcasType.jcas.throwFeatMissing("timexQuant", "de.unihd.dbs.uima.types.heideltime.Timex3");
jcasType.ll_cas.ll_setStringValue(addr, ((Timex3_Type)jcasType).casFeatCode_timexQuant, v);} | java | public void setTimexQuant(String v) {
if (Timex3_Type.featOkTst && ((Timex3_Type)jcasType).casFeat_timexQuant == null)
jcasType.jcas.throwFeatMissing("timexQuant", "de.unihd.dbs.uima.types.heideltime.Timex3");
jcasType.ll_cas.ll_setStringValue(addr, ((Timex3_Type)jcasType).casFeatCode_timexQuant, v);} | [
"public",
"void",
"setTimexQuant",
"(",
"String",
"v",
")",
"{",
"if",
"(",
"Timex3_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"Timex3_Type",
")",
"jcasType",
")",
".",
"casFeat_timexQuant",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
... | setter for timexQuant - sets
@generated
@param v value to set into the feature | [
"setter",
"for",
"timexQuant",
"-",
"sets"
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/de/unihd/dbs/uima/types/heideltime/Timex3.java#L279-L282 | train |
HeidelTime/heideltime | src/de/unihd/dbs/uima/types/heideltime/Timex3.java | Timex3.getTimexFreq | public String getTimexFreq() {
if (Timex3_Type.featOkTst && ((Timex3_Type)jcasType).casFeat_timexFreq == null)
jcasType.jcas.throwFeatMissing("timexFreq", "de.unihd.dbs.uima.types.heideltime.Timex3");
return jcasType.ll_cas.ll_getStringValue(addr, ((Timex3_Type)jcasType).casFeatCode_timexFreq);} | java | public String getTimexFreq() {
if (Timex3_Type.featOkTst && ((Timex3_Type)jcasType).casFeat_timexFreq == null)
jcasType.jcas.throwFeatMissing("timexFreq", "de.unihd.dbs.uima.types.heideltime.Timex3");
return jcasType.ll_cas.ll_getStringValue(addr, ((Timex3_Type)jcasType).casFeatCode_timexFreq);} | [
"public",
"String",
"getTimexFreq",
"(",
")",
"{",
"if",
"(",
"Timex3_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"Timex3_Type",
")",
"jcasType",
")",
".",
"casFeat_timexFreq",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"timexFr... | getter for timexFreq - gets
@generated
@return value of the feature | [
"getter",
"for",
"timexFreq",
"-",
"gets"
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/de/unihd/dbs/uima/types/heideltime/Timex3.java#L292-L295 | train |
HeidelTime/heideltime | src/de/unihd/dbs/uima/types/heideltime/Timex3.java | Timex3.setTimexFreq | public void setTimexFreq(String v) {
if (Timex3_Type.featOkTst && ((Timex3_Type)jcasType).casFeat_timexFreq == null)
jcasType.jcas.throwFeatMissing("timexFreq", "de.unihd.dbs.uima.types.heideltime.Timex3");
jcasType.ll_cas.ll_setStringValue(addr, ((Timex3_Type)jcasType).casFeatCode_timexFreq, v);} | java | public void setTimexFreq(String v) {
if (Timex3_Type.featOkTst && ((Timex3_Type)jcasType).casFeat_timexFreq == null)
jcasType.jcas.throwFeatMissing("timexFreq", "de.unihd.dbs.uima.types.heideltime.Timex3");
jcasType.ll_cas.ll_setStringValue(addr, ((Timex3_Type)jcasType).casFeatCode_timexFreq, v);} | [
"public",
"void",
"setTimexFreq",
"(",
"String",
"v",
")",
"{",
"if",
"(",
"Timex3_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"Timex3_Type",
")",
"jcasType",
")",
".",
"casFeat_timexFreq",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
... | setter for timexFreq - sets
@generated
@param v value to set into the feature | [
"setter",
"for",
"timexFreq",
"-",
"sets"
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/de/unihd/dbs/uima/types/heideltime/Timex3.java#L301-L304 | train |
HeidelTime/heideltime | src/de/unihd/dbs/uima/types/heideltime/Timex3.java | Timex3.getTimexMod | public String getTimexMod() {
if (Timex3_Type.featOkTst && ((Timex3_Type)jcasType).casFeat_timexMod == null)
jcasType.jcas.throwFeatMissing("timexMod", "de.unihd.dbs.uima.types.heideltime.Timex3");
return jcasType.ll_cas.ll_getStringValue(addr, ((Timex3_Type)jcasType).casFeatCode_timexMod);} | java | public String getTimexMod() {
if (Timex3_Type.featOkTst && ((Timex3_Type)jcasType).casFeat_timexMod == null)
jcasType.jcas.throwFeatMissing("timexMod", "de.unihd.dbs.uima.types.heideltime.Timex3");
return jcasType.ll_cas.ll_getStringValue(addr, ((Timex3_Type)jcasType).casFeatCode_timexMod);} | [
"public",
"String",
"getTimexMod",
"(",
")",
"{",
"if",
"(",
"Timex3_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"Timex3_Type",
")",
"jcasType",
")",
".",
"casFeat_timexMod",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"timexMod\... | getter for timexMod - gets
@generated
@return value of the feature | [
"getter",
"for",
"timexMod",
"-",
"gets"
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/de/unihd/dbs/uima/types/heideltime/Timex3.java#L314-L317 | train |
HeidelTime/heideltime | src/de/unihd/dbs/uima/types/heideltime/Timex3.java | Timex3.setTimexMod | public void setTimexMod(String v) {
if (Timex3_Type.featOkTst && ((Timex3_Type)jcasType).casFeat_timexMod == null)
jcasType.jcas.throwFeatMissing("timexMod", "de.unihd.dbs.uima.types.heideltime.Timex3");
jcasType.ll_cas.ll_setStringValue(addr, ((Timex3_Type)jcasType).casFeatCode_timexMod, v);} | java | public void setTimexMod(String v) {
if (Timex3_Type.featOkTst && ((Timex3_Type)jcasType).casFeat_timexMod == null)
jcasType.jcas.throwFeatMissing("timexMod", "de.unihd.dbs.uima.types.heideltime.Timex3");
jcasType.ll_cas.ll_setStringValue(addr, ((Timex3_Type)jcasType).casFeatCode_timexMod, v);} | [
"public",
"void",
"setTimexMod",
"(",
"String",
"v",
")",
"{",
"if",
"(",
"Timex3_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"Timex3_Type",
")",
"jcasType",
")",
".",
"casFeat_timexMod",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(... | setter for timexMod - sets
@generated
@param v value to set into the feature | [
"setter",
"for",
"timexMod",
"-",
"sets"
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/de/unihd/dbs/uima/types/heideltime/Timex3.java#L323-L326 | train |
HeidelTime/heideltime | src/jmaxent/FeatureGen.java | FeatureGen.generateFeatures | public void generateFeatures() {
if (features != null) {
features.clear();
} else {
features = new ArrayList();
}
if (fmap != null) {
fmap.clear();
} else {
fmap = new HashMap();
}
if (currentFeatures != null) {
currentFeatures.clear();
} else {
currentFeatures = new ArrayL... | java | public void generateFeatures() {
if (features != null) {
features.clear();
} else {
features = new ArrayList();
}
if (fmap != null) {
fmap.clear();
} else {
fmap = new HashMap();
}
if (currentFeatures != null) {
currentFeatures.clear();
} else {
currentFeatures = new ArrayL... | [
"public",
"void",
"generateFeatures",
"(",
")",
"{",
"if",
"(",
"features",
"!=",
"null",
")",
"{",
"features",
".",
"clear",
"(",
")",
";",
"}",
"else",
"{",
"features",
"=",
"new",
"ArrayList",
"(",
")",
";",
"}",
"if",
"(",
"fmap",
"!=",
"null",... | Generate features. | [
"Generate",
"features",
"."
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/jmaxent/FeatureGen.java#L89-L160 | train |
HeidelTime/heideltime | src/jmaxent/FeatureGen.java | FeatureGen.readFeatures | public void readFeatures(BufferedReader fin) throws IOException {
if (features != null) {
features.clear();
} else {
features = new ArrayList();
}
if (fmap != null) {
fmap.clear();
} else {
fmap = new HashMap();
}
if (currentFeatures != null) {
currentFeatures.clear();
} else {
... | java | public void readFeatures(BufferedReader fin) throws IOException {
if (features != null) {
features.clear();
} else {
features = new ArrayList();
}
if (fmap != null) {
fmap.clear();
} else {
fmap = new HashMap();
}
if (currentFeatures != null) {
currentFeatures.clear();
} else {
... | [
"public",
"void",
"readFeatures",
"(",
"BufferedReader",
"fin",
")",
"throws",
"IOException",
"{",
"if",
"(",
"features",
"!=",
"null",
")",
"{",
"features",
".",
"clear",
"(",
")",
";",
"}",
"else",
"{",
"features",
"=",
"new",
"ArrayList",
"(",
")",
... | Read features.
@param fin the fin
@throws IOException Signals that an I/O exception has occurred. | [
"Read",
"features",
"."
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/jmaxent/FeatureGen.java#L181-L251 | train |
HeidelTime/heideltime | src/jmaxent/FeatureGen.java | FeatureGen.writeFeatures | public void writeFeatures(PrintWriter fout) throws IOException {
// write the number of features
fout.println(Integer.toString(features.size()));
for (int i = 0; i < features.size(); i++) {
Feature f = (Feature)features.get(i);
fout.println(f.toString(data.cpInt2Str, data.lbInt2Str));
}
// wirte the ... | java | public void writeFeatures(PrintWriter fout) throws IOException {
// write the number of features
fout.println(Integer.toString(features.size()));
for (int i = 0; i < features.size(); i++) {
Feature f = (Feature)features.get(i);
fout.println(f.toString(data.cpInt2Str, data.lbInt2Str));
}
// wirte the ... | [
"public",
"void",
"writeFeatures",
"(",
"PrintWriter",
"fout",
")",
"throws",
"IOException",
"{",
"// write the number of features",
"fout",
".",
"println",
"(",
"Integer",
".",
"toString",
"(",
"features",
".",
"size",
"(",
")",
")",
")",
";",
"for",
"(",
"... | Write features.
@param fout the fout
@throws IOException Signals that an I/O exception has occurred. | [
"Write",
"features",
"."
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/jmaxent/FeatureGen.java#L259-L270 | train |
HeidelTime/heideltime | src/jmaxent/FeatureGen.java | FeatureGen.startScanFeatures | public void startScanFeatures(Observation obsr) {
currentFeatures.clear();
currentFeatureIdx = 0;
// scan over all context predicates
for (int i = 0; i < obsr.cps.length; i++) {
Element elem = (Element)dict.dict.get(new Integer(obsr.cps[i]));
if (elem == null) {//this context predicate doesn't appear i... | java | public void startScanFeatures(Observation obsr) {
currentFeatures.clear();
currentFeatureIdx = 0;
// scan over all context predicates
for (int i = 0; i < obsr.cps.length; i++) {
Element elem = (Element)dict.dict.get(new Integer(obsr.cps[i]));
if (elem == null) {//this context predicate doesn't appear i... | [
"public",
"void",
"startScanFeatures",
"(",
"Observation",
"obsr",
")",
"{",
"currentFeatures",
".",
"clear",
"(",
")",
";",
"currentFeatureIdx",
"=",
"0",
";",
"// scan over all context predicates",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"obsr",
"... | Start scan features.
@param obsr the obsr | [
"Start",
"scan",
"features",
"."
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/jmaxent/FeatureGen.java#L284-L318 | train |
HeidelTime/heideltime | src/jmaxent/Classification.java | Classification.classify | public String classify(String cps) {
// cps contains a list of context predicates
String modelLabel = "";
int i;
intCps.clear();
StringTokenizer strTok = new StringTokenizer(cps, " \t\r\n");
int count = strTok.countTokens();
for (i = 0; i < count; i++) {
String cpStr = strTok.nextToke... | java | public String classify(String cps) {
// cps contains a list of context predicates
String modelLabel = "";
int i;
intCps.clear();
StringTokenizer strTok = new StringTokenizer(cps, " \t\r\n");
int count = strTok.countTokens();
for (i = 0; i < count; i++) {
String cpStr = strTok.nextToke... | [
"public",
"String",
"classify",
"(",
"String",
"cps",
")",
"{",
"// cps contains a list of context predicates",
"String",
"modelLabel",
"=",
"\"\"",
";",
"int",
"i",
";",
"intCps",
".",
"clear",
"(",
")",
";",
"StringTokenizer",
"strTok",
"=",
"new",
"StringToke... | classify an observation.
@param cps contains a list of context predicates
@return label | [
"classify",
"an",
"observation",
"."
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/jmaxent/Classification.java#L139-L169 | train |
HeidelTime/heideltime | src/jmaxent/Classification.java | Classification.classify | public List classify(List data) {
List list = new ArrayList();
for (int i = 0; i < data.size(); i++) {
list.add(classify((String)data.get(i)));
}
return list;
} | java | public List classify(List data) {
List list = new ArrayList();
for (int i = 0; i < data.size(); i++) {
list.add(classify((String)data.get(i)));
}
return list;
} | [
"public",
"List",
"classify",
"(",
"List",
"data",
")",
"{",
"List",
"list",
"=",
"new",
"ArrayList",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"data",
".",
"size",
"(",
")",
";",
"i",
"++",
")",
"{",
"list",
".",
"add",... | classify a list of observation.
@param data contains a list of cps
@return the list | [
"classify",
"a",
"list",
"of",
"observation",
"."
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/jmaxent/Classification.java#L258-L266 | train |
HeidelTime/heideltime | src/de/unihd/dbs/uima/annotator/heideltime/ProcessorManager.java | ProcessorManager.registerProcessor | public void registerProcessor(String processor, Priority prio) {
this.processorNames.get(prio).add(processor);
} | java | public void registerProcessor(String processor, Priority prio) {
this.processorNames.get(prio).add(processor);
} | [
"public",
"void",
"registerProcessor",
"(",
"String",
"processor",
",",
"Priority",
"prio",
")",
"{",
"this",
".",
"processorNames",
".",
"get",
"(",
"prio",
")",
".",
"add",
"(",
"processor",
")",
";",
"}"
] | method to register a processor
@param processor processor to be registered in the processormanager's list
@param p priority for the process to take | [
"method",
"to",
"register",
"a",
"processor"
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/de/unihd/dbs/uima/annotator/heideltime/ProcessorManager.java#L51-L53 | train |
HeidelTime/heideltime | src/de/unihd/dbs/uima/annotator/heideltime/ProcessorManager.java | ProcessorManager.initializeAllProcessors | public void initializeAllProcessors(UimaContext aContext) {
for(Priority prio : processorNames.keySet()) {
for(String pn : processorNames.get(prio)) {
try {
Class<?> c = Class.forName(pn);
GenericProcessor p = (GenericProcessor) c.newInstance();
p.initialize(aContext);
processors.get(prio).... | java | public void initializeAllProcessors(UimaContext aContext) {
for(Priority prio : processorNames.keySet()) {
for(String pn : processorNames.get(prio)) {
try {
Class<?> c = Class.forName(pn);
GenericProcessor p = (GenericProcessor) c.newInstance();
p.initialize(aContext);
processors.get(prio).... | [
"public",
"void",
"initializeAllProcessors",
"(",
"UimaContext",
"aContext",
")",
"{",
"for",
"(",
"Priority",
"prio",
":",
"processorNames",
".",
"keySet",
"(",
")",
")",
"{",
"for",
"(",
"String",
"pn",
":",
"processorNames",
".",
"get",
"(",
"prio",
")"... | Based on reflection, this method instantiates and initializes all of the
registered Processors.
@param jcas | [
"Based",
"on",
"reflection",
"this",
"method",
"instantiates",
"and",
"initializes",
"all",
"of",
"the",
"registered",
"Processors",
"."
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/de/unihd/dbs/uima/annotator/heideltime/ProcessorManager.java#L68-L85 | train |
HeidelTime/heideltime | src/de/unihd/dbs/uima/annotator/heideltime/ProcessorManager.java | ProcessorManager.executeProcessors | public void executeProcessors(JCas jcas, ProcessorManager.Priority prio) {
if(!this.initialized) {
Logger.printError(component, "Unable to execute Processors; initialization was not concluded successfully.");
System.exit(-1);
}
LinkedList<GenericProcessor> myList = processors.get(prio);
for(GenericProc... | java | public void executeProcessors(JCas jcas, ProcessorManager.Priority prio) {
if(!this.initialized) {
Logger.printError(component, "Unable to execute Processors; initialization was not concluded successfully.");
System.exit(-1);
}
LinkedList<GenericProcessor> myList = processors.get(prio);
for(GenericProc... | [
"public",
"void",
"executeProcessors",
"(",
"JCas",
"jcas",
",",
"ProcessorManager",
".",
"Priority",
"prio",
")",
"{",
"if",
"(",
"!",
"this",
".",
"initialized",
")",
"{",
"Logger",
".",
"printError",
"(",
"component",
",",
"\"Unable to execute Processors; ini... | Based on reflection, this method instantiates and executes all of the
registered Processors.
@param jcas | [
"Based",
"on",
"reflection",
"this",
"method",
"instantiates",
"and",
"executes",
"all",
"of",
"the",
"registered",
"Processors",
"."
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/de/unihd/dbs/uima/annotator/heideltime/ProcessorManager.java#L92-L108 | train |
HeidelTime/heideltime | src/de/unihd/dbs/uima/types/heideltime/Timex3Interval.java | Timex3Interval.getTimexValueEB | public String getTimexValueEB() {
if (Timex3Interval_Type.featOkTst && ((Timex3Interval_Type)jcasType).casFeat_TimexValueEB == null)
jcasType.jcas.throwFeatMissing("TimexValueEB", "de.unihd.dbs.uima.types.heideltime.Timex3Interval");
return jcasType.ll_cas.ll_getStringValue(addr, ((Timex3Interval_Type)jca... | java | public String getTimexValueEB() {
if (Timex3Interval_Type.featOkTst && ((Timex3Interval_Type)jcasType).casFeat_TimexValueEB == null)
jcasType.jcas.throwFeatMissing("TimexValueEB", "de.unihd.dbs.uima.types.heideltime.Timex3Interval");
return jcasType.ll_cas.ll_getStringValue(addr, ((Timex3Interval_Type)jca... | [
"public",
"String",
"getTimexValueEB",
"(",
")",
"{",
"if",
"(",
"Timex3Interval_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"Timex3Interval_Type",
")",
"jcasType",
")",
".",
"casFeat_TimexValueEB",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing... | getter for TimexValueEB - gets
@generated
@return value of the feature | [
"getter",
"for",
"TimexValueEB",
"-",
"gets"
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/de/unihd/dbs/uima/types/heideltime/Timex3Interval.java#L72-L75 | train |
HeidelTime/heideltime | src/de/unihd/dbs/uima/types/heideltime/Timex3Interval.java | Timex3Interval.setTimexValueEB | public void setTimexValueEB(String v) {
if (Timex3Interval_Type.featOkTst && ((Timex3Interval_Type)jcasType).casFeat_TimexValueEB == null)
jcasType.jcas.throwFeatMissing("TimexValueEB", "de.unihd.dbs.uima.types.heideltime.Timex3Interval");
jcasType.ll_cas.ll_setStringValue(addr, ((Timex3Interval_Type)jcas... | java | public void setTimexValueEB(String v) {
if (Timex3Interval_Type.featOkTst && ((Timex3Interval_Type)jcasType).casFeat_TimexValueEB == null)
jcasType.jcas.throwFeatMissing("TimexValueEB", "de.unihd.dbs.uima.types.heideltime.Timex3Interval");
jcasType.ll_cas.ll_setStringValue(addr, ((Timex3Interval_Type)jcas... | [
"public",
"void",
"setTimexValueEB",
"(",
"String",
"v",
")",
"{",
"if",
"(",
"Timex3Interval_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"Timex3Interval_Type",
")",
"jcasType",
")",
".",
"casFeat_TimexValueEB",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
... | setter for TimexValueEB - sets
@generated
@param v value to set into the feature | [
"setter",
"for",
"TimexValueEB",
"-",
"sets"
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/de/unihd/dbs/uima/types/heideltime/Timex3Interval.java#L81-L84 | train |
HeidelTime/heideltime | src/de/unihd/dbs/uima/types/heideltime/Timex3Interval.java | Timex3Interval.getTimexValueLE | public String getTimexValueLE() {
if (Timex3Interval_Type.featOkTst && ((Timex3Interval_Type)jcasType).casFeat_TimexValueLE == null)
jcasType.jcas.throwFeatMissing("TimexValueLE", "de.unihd.dbs.uima.types.heideltime.Timex3Interval");
return jcasType.ll_cas.ll_getStringValue(addr, ((Timex3Interval_Type)jca... | java | public String getTimexValueLE() {
if (Timex3Interval_Type.featOkTst && ((Timex3Interval_Type)jcasType).casFeat_TimexValueLE == null)
jcasType.jcas.throwFeatMissing("TimexValueLE", "de.unihd.dbs.uima.types.heideltime.Timex3Interval");
return jcasType.ll_cas.ll_getStringValue(addr, ((Timex3Interval_Type)jca... | [
"public",
"String",
"getTimexValueLE",
"(",
")",
"{",
"if",
"(",
"Timex3Interval_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"Timex3Interval_Type",
")",
"jcasType",
")",
".",
"casFeat_TimexValueLE",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing... | getter for TimexValueLE - gets
@generated
@return value of the feature | [
"getter",
"for",
"TimexValueLE",
"-",
"gets"
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/de/unihd/dbs/uima/types/heideltime/Timex3Interval.java#L94-L97 | train |
HeidelTime/heideltime | src/de/unihd/dbs/uima/types/heideltime/Timex3Interval.java | Timex3Interval.setTimexValueLE | public void setTimexValueLE(String v) {
if (Timex3Interval_Type.featOkTst && ((Timex3Interval_Type)jcasType).casFeat_TimexValueLE == null)
jcasType.jcas.throwFeatMissing("TimexValueLE", "de.unihd.dbs.uima.types.heideltime.Timex3Interval");
jcasType.ll_cas.ll_setStringValue(addr, ((Timex3Interval_Type)jcas... | java | public void setTimexValueLE(String v) {
if (Timex3Interval_Type.featOkTst && ((Timex3Interval_Type)jcasType).casFeat_TimexValueLE == null)
jcasType.jcas.throwFeatMissing("TimexValueLE", "de.unihd.dbs.uima.types.heideltime.Timex3Interval");
jcasType.ll_cas.ll_setStringValue(addr, ((Timex3Interval_Type)jcas... | [
"public",
"void",
"setTimexValueLE",
"(",
"String",
"v",
")",
"{",
"if",
"(",
"Timex3Interval_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"Timex3Interval_Type",
")",
"jcasType",
")",
".",
"casFeat_TimexValueLE",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
... | setter for TimexValueLE - sets
@generated
@param v value to set into the feature | [
"setter",
"for",
"TimexValueLE",
"-",
"sets"
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/de/unihd/dbs/uima/types/heideltime/Timex3Interval.java#L103-L106 | train |
HeidelTime/heideltime | src/de/unihd/dbs/uima/types/heideltime/Timex3Interval.java | Timex3Interval.getTimexValueEE | public String getTimexValueEE() {
if (Timex3Interval_Type.featOkTst && ((Timex3Interval_Type)jcasType).casFeat_TimexValueEE == null)
jcasType.jcas.throwFeatMissing("TimexValueEE", "de.unihd.dbs.uima.types.heideltime.Timex3Interval");
return jcasType.ll_cas.ll_getStringValue(addr, ((Timex3Interval_Type)jca... | java | public String getTimexValueEE() {
if (Timex3Interval_Type.featOkTst && ((Timex3Interval_Type)jcasType).casFeat_TimexValueEE == null)
jcasType.jcas.throwFeatMissing("TimexValueEE", "de.unihd.dbs.uima.types.heideltime.Timex3Interval");
return jcasType.ll_cas.ll_getStringValue(addr, ((Timex3Interval_Type)jca... | [
"public",
"String",
"getTimexValueEE",
"(",
")",
"{",
"if",
"(",
"Timex3Interval_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"Timex3Interval_Type",
")",
"jcasType",
")",
".",
"casFeat_TimexValueEE",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing... | getter for TimexValueEE - gets
@generated
@return value of the feature | [
"getter",
"for",
"TimexValueEE",
"-",
"gets"
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/de/unihd/dbs/uima/types/heideltime/Timex3Interval.java#L116-L119 | train |
HeidelTime/heideltime | src/de/unihd/dbs/uima/types/heideltime/Timex3Interval.java | Timex3Interval.setTimexValueEE | public void setTimexValueEE(String v) {
if (Timex3Interval_Type.featOkTst && ((Timex3Interval_Type)jcasType).casFeat_TimexValueEE == null)
jcasType.jcas.throwFeatMissing("TimexValueEE", "de.unihd.dbs.uima.types.heideltime.Timex3Interval");
jcasType.ll_cas.ll_setStringValue(addr, ((Timex3Interval_Type)jcas... | java | public void setTimexValueEE(String v) {
if (Timex3Interval_Type.featOkTst && ((Timex3Interval_Type)jcasType).casFeat_TimexValueEE == null)
jcasType.jcas.throwFeatMissing("TimexValueEE", "de.unihd.dbs.uima.types.heideltime.Timex3Interval");
jcasType.ll_cas.ll_setStringValue(addr, ((Timex3Interval_Type)jcas... | [
"public",
"void",
"setTimexValueEE",
"(",
"String",
"v",
")",
"{",
"if",
"(",
"Timex3Interval_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"Timex3Interval_Type",
")",
"jcasType",
")",
".",
"casFeat_TimexValueEE",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
... | setter for TimexValueEE - sets
@generated
@param v value to set into the feature | [
"setter",
"for",
"TimexValueEE",
"-",
"sets"
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/de/unihd/dbs/uima/types/heideltime/Timex3Interval.java#L125-L128 | train |
HeidelTime/heideltime | src/de/unihd/dbs/uima/types/heideltime/Timex3Interval.java | Timex3Interval.getTimexValueLB | public String getTimexValueLB() {
if (Timex3Interval_Type.featOkTst && ((Timex3Interval_Type)jcasType).casFeat_TimexValueLB == null)
jcasType.jcas.throwFeatMissing("TimexValueLB", "de.unihd.dbs.uima.types.heideltime.Timex3Interval");
return jcasType.ll_cas.ll_getStringValue(addr, ((Timex3Interval_Type)jca... | java | public String getTimexValueLB() {
if (Timex3Interval_Type.featOkTst && ((Timex3Interval_Type)jcasType).casFeat_TimexValueLB == null)
jcasType.jcas.throwFeatMissing("TimexValueLB", "de.unihd.dbs.uima.types.heideltime.Timex3Interval");
return jcasType.ll_cas.ll_getStringValue(addr, ((Timex3Interval_Type)jca... | [
"public",
"String",
"getTimexValueLB",
"(",
")",
"{",
"if",
"(",
"Timex3Interval_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"Timex3Interval_Type",
")",
"jcasType",
")",
".",
"casFeat_TimexValueLB",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing... | getter for TimexValueLB - gets
@generated
@return value of the feature | [
"getter",
"for",
"TimexValueLB",
"-",
"gets"
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/de/unihd/dbs/uima/types/heideltime/Timex3Interval.java#L138-L141 | train |
HeidelTime/heideltime | src/de/unihd/dbs/uima/types/heideltime/Timex3Interval.java | Timex3Interval.setTimexValueLB | public void setTimexValueLB(String v) {
if (Timex3Interval_Type.featOkTst && ((Timex3Interval_Type)jcasType).casFeat_TimexValueLB == null)
jcasType.jcas.throwFeatMissing("TimexValueLB", "de.unihd.dbs.uima.types.heideltime.Timex3Interval");
jcasType.ll_cas.ll_setStringValue(addr, ((Timex3Interval_Type)jcas... | java | public void setTimexValueLB(String v) {
if (Timex3Interval_Type.featOkTst && ((Timex3Interval_Type)jcasType).casFeat_TimexValueLB == null)
jcasType.jcas.throwFeatMissing("TimexValueLB", "de.unihd.dbs.uima.types.heideltime.Timex3Interval");
jcasType.ll_cas.ll_setStringValue(addr, ((Timex3Interval_Type)jcas... | [
"public",
"void",
"setTimexValueLB",
"(",
"String",
"v",
")",
"{",
"if",
"(",
"Timex3Interval_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"Timex3Interval_Type",
")",
"jcasType",
")",
".",
"casFeat_TimexValueLB",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
... | setter for TimexValueLB - sets
@generated
@param v value to set into the feature | [
"setter",
"for",
"TimexValueLB",
"-",
"sets"
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/de/unihd/dbs/uima/types/heideltime/Timex3Interval.java#L147-L150 | train |
HeidelTime/heideltime | src/de/unihd/dbs/uima/types/heideltime/Timex3Interval.java | Timex3Interval.getEmptyValue | public String getEmptyValue() {
if (Timex3Interval_Type.featOkTst && ((Timex3Interval_Type)jcasType).casFeat_emptyValue == null)
jcasType.jcas.throwFeatMissing("emptyValue", "de.unihd.dbs.uima.types.heideltime.Timex3Interval");
return jcasType.ll_cas.ll_getStringValue(addr, ((Timex3Interval_Type)jcasType)... | java | public String getEmptyValue() {
if (Timex3Interval_Type.featOkTst && ((Timex3Interval_Type)jcasType).casFeat_emptyValue == null)
jcasType.jcas.throwFeatMissing("emptyValue", "de.unihd.dbs.uima.types.heideltime.Timex3Interval");
return jcasType.ll_cas.ll_getStringValue(addr, ((Timex3Interval_Type)jcasType)... | [
"public",
"String",
"getEmptyValue",
"(",
")",
"{",
"if",
"(",
"Timex3Interval_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"Timex3Interval_Type",
")",
"jcasType",
")",
".",
"casFeat_emptyValue",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
... | getter for emptyValue - gets
@generated
@return value of the feature | [
"getter",
"for",
"emptyValue",
"-",
"gets"
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/de/unihd/dbs/uima/types/heideltime/Timex3Interval.java#L160-L163 | train |
HeidelTime/heideltime | src/de/unihd/dbs/uima/types/heideltime/Timex3Interval.java | Timex3Interval.setEmptyValue | public void setEmptyValue(String v) {
if (Timex3Interval_Type.featOkTst && ((Timex3Interval_Type)jcasType).casFeat_emptyValue == null)
jcasType.jcas.throwFeatMissing("emptyValue", "de.unihd.dbs.uima.types.heideltime.Timex3Interval");
jcasType.ll_cas.ll_setStringValue(addr, ((Timex3Interval_Type)jcasType).... | java | public void setEmptyValue(String v) {
if (Timex3Interval_Type.featOkTst && ((Timex3Interval_Type)jcasType).casFeat_emptyValue == null)
jcasType.jcas.throwFeatMissing("emptyValue", "de.unihd.dbs.uima.types.heideltime.Timex3Interval");
jcasType.ll_cas.ll_setStringValue(addr, ((Timex3Interval_Type)jcasType).... | [
"public",
"void",
"setEmptyValue",
"(",
"String",
"v",
")",
"{",
"if",
"(",
"Timex3Interval_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"Timex3Interval_Type",
")",
"jcasType",
")",
".",
"casFeat_emptyValue",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"thr... | setter for emptyValue - sets
@generated
@param v value to set into the feature | [
"setter",
"for",
"emptyValue",
"-",
"sets"
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/de/unihd/dbs/uima/types/heideltime/Timex3Interval.java#L169-L172 | train |
HeidelTime/heideltime | src/de/unihd/dbs/uima/types/heideltime/Timex3Interval.java | Timex3Interval.getBeginTimex | public String getBeginTimex() {
if (Timex3Interval_Type.featOkTst && ((Timex3Interval_Type)jcasType).casFeat_beginTimex == null)
jcasType.jcas.throwFeatMissing("beginTimex", "de.unihd.dbs.uima.types.heideltime.Timex3Interval");
return jcasType.ll_cas.ll_getStringValue(addr, ((Timex3Interval_Type)jcasType)... | java | public String getBeginTimex() {
if (Timex3Interval_Type.featOkTst && ((Timex3Interval_Type)jcasType).casFeat_beginTimex == null)
jcasType.jcas.throwFeatMissing("beginTimex", "de.unihd.dbs.uima.types.heideltime.Timex3Interval");
return jcasType.ll_cas.ll_getStringValue(addr, ((Timex3Interval_Type)jcasType)... | [
"public",
"String",
"getBeginTimex",
"(",
")",
"{",
"if",
"(",
"Timex3Interval_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"Timex3Interval_Type",
")",
"jcasType",
")",
".",
"casFeat_beginTimex",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
... | getter for beginTimex - gets
@generated
@return value of the feature | [
"getter",
"for",
"beginTimex",
"-",
"gets"
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/de/unihd/dbs/uima/types/heideltime/Timex3Interval.java#L182-L185 | train |
HeidelTime/heideltime | src/de/unihd/dbs/uima/types/heideltime/Timex3Interval.java | Timex3Interval.setBeginTimex | public void setBeginTimex(String v) {
if (Timex3Interval_Type.featOkTst && ((Timex3Interval_Type)jcasType).casFeat_beginTimex == null)
jcasType.jcas.throwFeatMissing("beginTimex", "de.unihd.dbs.uima.types.heideltime.Timex3Interval");
jcasType.ll_cas.ll_setStringValue(addr, ((Timex3Interval_Type)jcasType).... | java | public void setBeginTimex(String v) {
if (Timex3Interval_Type.featOkTst && ((Timex3Interval_Type)jcasType).casFeat_beginTimex == null)
jcasType.jcas.throwFeatMissing("beginTimex", "de.unihd.dbs.uima.types.heideltime.Timex3Interval");
jcasType.ll_cas.ll_setStringValue(addr, ((Timex3Interval_Type)jcasType).... | [
"public",
"void",
"setBeginTimex",
"(",
"String",
"v",
")",
"{",
"if",
"(",
"Timex3Interval_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"Timex3Interval_Type",
")",
"jcasType",
")",
".",
"casFeat_beginTimex",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"thr... | setter for beginTimex - sets
@generated
@param v value to set into the feature | [
"setter",
"for",
"beginTimex",
"-",
"sets"
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/de/unihd/dbs/uima/types/heideltime/Timex3Interval.java#L191-L194 | train |
HeidelTime/heideltime | src/de/unihd/dbs/uima/types/heideltime/Timex3Interval.java | Timex3Interval.getEndTimex | public String getEndTimex() {
if (Timex3Interval_Type.featOkTst && ((Timex3Interval_Type)jcasType).casFeat_endTimex == null)
jcasType.jcas.throwFeatMissing("endTimex", "de.unihd.dbs.uima.types.heideltime.Timex3Interval");
return jcasType.ll_cas.ll_getStringValue(addr, ((Timex3Interval_Type)jcasType).casFe... | java | public String getEndTimex() {
if (Timex3Interval_Type.featOkTst && ((Timex3Interval_Type)jcasType).casFeat_endTimex == null)
jcasType.jcas.throwFeatMissing("endTimex", "de.unihd.dbs.uima.types.heideltime.Timex3Interval");
return jcasType.ll_cas.ll_getStringValue(addr, ((Timex3Interval_Type)jcasType).casFe... | [
"public",
"String",
"getEndTimex",
"(",
")",
"{",
"if",
"(",
"Timex3Interval_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"Timex3Interval_Type",
")",
"jcasType",
")",
".",
"casFeat_endTimex",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"("... | getter for endTimex - gets
@generated
@return value of the feature | [
"getter",
"for",
"endTimex",
"-",
"gets"
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/de/unihd/dbs/uima/types/heideltime/Timex3Interval.java#L204-L207 | train |
HeidelTime/heideltime | src/de/unihd/dbs/uima/types/heideltime/Timex3Interval.java | Timex3Interval.setEndTimex | public void setEndTimex(String v) {
if (Timex3Interval_Type.featOkTst && ((Timex3Interval_Type)jcasType).casFeat_endTimex == null)
jcasType.jcas.throwFeatMissing("endTimex", "de.unihd.dbs.uima.types.heideltime.Timex3Interval");
jcasType.ll_cas.ll_setStringValue(addr, ((Timex3Interval_Type)jcasType).casFea... | java | public void setEndTimex(String v) {
if (Timex3Interval_Type.featOkTst && ((Timex3Interval_Type)jcasType).casFeat_endTimex == null)
jcasType.jcas.throwFeatMissing("endTimex", "de.unihd.dbs.uima.types.heideltime.Timex3Interval");
jcasType.ll_cas.ll_setStringValue(addr, ((Timex3Interval_Type)jcasType).casFea... | [
"public",
"void",
"setEndTimex",
"(",
"String",
"v",
")",
"{",
"if",
"(",
"Timex3Interval_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"Timex3Interval_Type",
")",
"jcasType",
")",
".",
"casFeat_endTimex",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFe... | setter for endTimex - sets
@generated
@param v value to set into the feature | [
"setter",
"for",
"endTimex",
"-",
"sets"
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/de/unihd/dbs/uima/types/heideltime/Timex3Interval.java#L213-L216 | train |
HeidelTime/heideltime | src/de/unihd/dbs/heideltime/standalone/components/impl/IntervalTaggerWrapper.java | IntervalTaggerWrapper.process | public void process(JCas jcas) {
try {
tagger.process(jcas);
} catch(AnalysisEngineProcessException e) {
e.printStackTrace();
}
} | java | public void process(JCas jcas) {
try {
tagger.process(jcas);
} catch(AnalysisEngineProcessException e) {
e.printStackTrace();
}
} | [
"public",
"void",
"process",
"(",
"JCas",
"jcas",
")",
"{",
"try",
"{",
"tagger",
".",
"process",
"(",
"jcas",
")",
";",
"}",
"catch",
"(",
"AnalysisEngineProcessException",
"e",
")",
"{",
"e",
".",
"printStackTrace",
"(",
")",
";",
"}",
"}"
] | invokes the IntervalTagger's process method. | [
"invokes",
"the",
"IntervalTagger",
"s",
"process",
"method",
"."
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/de/unihd/dbs/heideltime/standalone/components/impl/IntervalTaggerWrapper.java#L34-L40 | train |
HeidelTime/heideltime | src/de/unihd/dbs/uima/types/heideltime/Dct.java | Dct.getTimexId | public String getTimexId() {
if (Dct_Type.featOkTst && ((Dct_Type)jcasType).casFeat_timexId == null)
jcasType.jcas.throwFeatMissing("timexId", "de.unihd.dbs.uima.types.heideltime.Dct");
return jcasType.ll_cas.ll_getStringValue(addr, ((Dct_Type)jcasType).casFeatCode_timexId);} | java | public String getTimexId() {
if (Dct_Type.featOkTst && ((Dct_Type)jcasType).casFeat_timexId == null)
jcasType.jcas.throwFeatMissing("timexId", "de.unihd.dbs.uima.types.heideltime.Dct");
return jcasType.ll_cas.ll_getStringValue(addr, ((Dct_Type)jcasType).casFeatCode_timexId);} | [
"public",
"String",
"getTimexId",
"(",
")",
"{",
"if",
"(",
"Dct_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"Dct_Type",
")",
"jcasType",
")",
".",
"casFeat_timexId",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"timexId\"",
","... | getter for timexId - gets
@generated
@return value of the feature | [
"getter",
"for",
"timexId",
"-",
"gets"
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/de/unihd/dbs/uima/types/heideltime/Dct.java#L116-L119 | train |
HeidelTime/heideltime | src/de/unihd/dbs/uima/types/heideltime/Dct.java | Dct.setTimexId | public void setTimexId(String v) {
if (Dct_Type.featOkTst && ((Dct_Type)jcasType).casFeat_timexId == null)
jcasType.jcas.throwFeatMissing("timexId", "de.unihd.dbs.uima.types.heideltime.Dct");
jcasType.ll_cas.ll_setStringValue(addr, ((Dct_Type)jcasType).casFeatCode_timexId, v);} | java | public void setTimexId(String v) {
if (Dct_Type.featOkTst && ((Dct_Type)jcasType).casFeat_timexId == null)
jcasType.jcas.throwFeatMissing("timexId", "de.unihd.dbs.uima.types.heideltime.Dct");
jcasType.ll_cas.ll_setStringValue(addr, ((Dct_Type)jcasType).casFeatCode_timexId, v);} | [
"public",
"void",
"setTimexId",
"(",
"String",
"v",
")",
"{",
"if",
"(",
"Dct_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"Dct_Type",
")",
"jcasType",
")",
".",
"casFeat_timexId",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"... | setter for timexId - sets
@generated
@param v value to set into the feature | [
"setter",
"for",
"timexId",
"-",
"sets"
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/de/unihd/dbs/uima/types/heideltime/Dct.java#L125-L128 | train |
HeidelTime/heideltime | src/jvnsegmenter/RegexContextGenerator.java | RegexContextGenerator.patternCompile | private static void patternCompile() {
try {
ptnNumber = Pattern.compile(strNumberPattern);
ptnShortDate = Pattern.compile(strShortDatePattern);
ptnLongDate = Pattern.compile(strLongDatePattern);
ptnPercentage = Pattern.compile(strPercentagePattern);
ptnCurrency = Pattern.compile(strCurrencyPatte... | java | private static void patternCompile() {
try {
ptnNumber = Pattern.compile(strNumberPattern);
ptnShortDate = Pattern.compile(strShortDatePattern);
ptnLongDate = Pattern.compile(strLongDatePattern);
ptnPercentage = Pattern.compile(strPercentagePattern);
ptnCurrency = Pattern.compile(strCurrencyPatte... | [
"private",
"static",
"void",
"patternCompile",
"(",
")",
"{",
"try",
"{",
"ptnNumber",
"=",
"Pattern",
".",
"compile",
"(",
"strNumberPattern",
")",
";",
"ptnShortDate",
"=",
"Pattern",
".",
"compile",
"(",
"strShortDatePattern",
")",
";",
"ptnLongDate",
"=",
... | Pattern compile. | [
"Pattern",
"compile",
"."
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/jvnsegmenter/RegexContextGenerator.java#L150-L163 | train |
HeidelTime/heideltime | src/jvnsegmenter/RegexContextGenerator.java | RegexContextGenerator.patternMatching | private static String patternMatching(String ptnName, String input) {
String suffix = "";
if (ptnNumber == null)
patternCompile();
Matcher matcher;
if (ptnName.equals("number")) {
matcher = ptnNumber.matcher(input);
if (matcher.matches())
suffix = ":number";
} else if (ptnName.equals("... | java | private static String patternMatching(String ptnName, String input) {
String suffix = "";
if (ptnNumber == null)
patternCompile();
Matcher matcher;
if (ptnName.equals("number")) {
matcher = ptnNumber.matcher(input);
if (matcher.matches())
suffix = ":number";
} else if (ptnName.equals("... | [
"private",
"static",
"String",
"patternMatching",
"(",
"String",
"ptnName",
",",
"String",
"input",
")",
"{",
"String",
"suffix",
"=",
"\"\"",
";",
"if",
"(",
"ptnNumber",
"==",
"null",
")",
"patternCompile",
"(",
")",
";",
"Matcher",
"matcher",
";",
"if",... | Pattern matching.
@param ptnName the ptn name
@param input the input
@return the string | [
"Pattern",
"matching",
"."
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/jvnsegmenter/RegexContextGenerator.java#L172-L206 | train |
HeidelTime/heideltime | src/jvntextpro/util/VnSyllParser.java | VnSyllParser.parseVnSyllable | public void parseVnSyllable(String syll) {
strSyllable = syll;
strMainVowel = "";
strSecondaryVowel = "";
strFirstConsonant = "";
strLastConsonant = "";
iCurPos = 0;
validViSyll = true;
parseFirstConsonant();
parseSecondaryVowel();
parseMainVowel();
parseLastConsonant();
} | java | public void parseVnSyllable(String syll) {
strSyllable = syll;
strMainVowel = "";
strSecondaryVowel = "";
strFirstConsonant = "";
strLastConsonant = "";
iCurPos = 0;
validViSyll = true;
parseFirstConsonant();
parseSecondaryVowel();
parseMainVowel();
parseLastConsonant();
} | [
"public",
"void",
"parseVnSyllable",
"(",
"String",
"syll",
")",
"{",
"strSyllable",
"=",
"syll",
";",
"strMainVowel",
"=",
"\"\"",
";",
"strSecondaryVowel",
"=",
"\"\"",
";",
"strFirstConsonant",
"=",
"\"\"",
";",
"strLastConsonant",
"=",
"\"\"",
";",
"iCurPo... | Parses the vn syllable.
@param syll the syll | [
"Parses",
"the",
"vn",
"syllable",
"."
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/jvntextpro/util/VnSyllParser.java#L173-L186 | train |
HeidelTime/heideltime | src/jvntextpro/util/VnSyllParser.java | VnSyllParser.parseFirstConsonant | private void parseFirstConsonant() {
// find first of (vnfirstconsonant)
// if not found, first consonant = ZERO
// else the found consonant
Iterator iter = alFirstConsonants.iterator();
while (iter.hasNext()) {
String strFirstCon = (String) iter.next();
if (strSyllable.startsWith(strFirstCon, iCurPos))... | java | private void parseFirstConsonant() {
// find first of (vnfirstconsonant)
// if not found, first consonant = ZERO
// else the found consonant
Iterator iter = alFirstConsonants.iterator();
while (iter.hasNext()) {
String strFirstCon = (String) iter.next();
if (strSyllable.startsWith(strFirstCon, iCurPos))... | [
"private",
"void",
"parseFirstConsonant",
"(",
")",
"{",
"// find first of (vnfirstconsonant)",
"// if not found, first consonant = ZERO",
"// else the found consonant",
"Iterator",
"iter",
"=",
"alFirstConsonants",
".",
"iterator",
"(",
")",
";",
"while",
"(",
"iter",
".",... | Parses the first consonant. | [
"Parses",
"the",
"first",
"consonant",
"."
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/jvntextpro/util/VnSyllParser.java#L264-L278 | train |
HeidelTime/heideltime | src/jvntextpro/util/VnSyllParser.java | VnSyllParser.parseSecondaryVowel | private void parseSecondaryVowel() {
if (!validViSyll)
return;
// get the current and next character in the syllable string
char curChar, nextChar;
if (iCurPos > strSyllable.length() - 1) {
validViSyll = false;
return;
}
curChar = strSyllable.charAt(iCurPos);
if (iCurPos == strSyllable.length() ... | java | private void parseSecondaryVowel() {
if (!validViSyll)
return;
// get the current and next character in the syllable string
char curChar, nextChar;
if (iCurPos > strSyllable.length() - 1) {
validViSyll = false;
return;
}
curChar = strSyllable.charAt(iCurPos);
if (iCurPos == strSyllable.length() ... | [
"private",
"void",
"parseSecondaryVowel",
"(",
")",
"{",
"if",
"(",
"!",
"validViSyll",
")",
"return",
";",
"// get the current and next character in the syllable string",
"char",
"curChar",
",",
"nextChar",
";",
"if",
"(",
"iCurPos",
">",
"strSyllable",
".",
"lengt... | Parses the secondary vowel. | [
"Parses",
"the",
"secondary",
"vowel",
"."
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/jvntextpro/util/VnSyllParser.java#L283-L333 | train |
HeidelTime/heideltime | src/jvntextpro/util/VnSyllParser.java | VnSyllParser.parseMainVowel | private void parseMainVowel() {
if (!validViSyll)
return;
if (iCurPos > strSyllable.length() - 1) {
validViSyll = false;
return;
}
String strVowel = "";
for (int i = iCurPos; i < strSyllable.length(); ++i) {
int idx = vnVowels.indexOf(strSyllable.charAt(i));
if (idx == -1)
break;
strVo... | java | private void parseMainVowel() {
if (!validViSyll)
return;
if (iCurPos > strSyllable.length() - 1) {
validViSyll = false;
return;
}
String strVowel = "";
for (int i = iCurPos; i < strSyllable.length(); ++i) {
int idx = vnVowels.indexOf(strSyllable.charAt(i));
if (idx == -1)
break;
strVo... | [
"private",
"void",
"parseMainVowel",
"(",
")",
"{",
"if",
"(",
"!",
"validViSyll",
")",
"return",
";",
"if",
"(",
"iCurPos",
">",
"strSyllable",
".",
"length",
"(",
")",
"-",
"1",
")",
"{",
"validViSyll",
"=",
"false",
";",
"return",
";",
"}",
"Strin... | Parses the main vowel. | [
"Parses",
"the",
"main",
"vowel",
"."
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/jvntextpro/util/VnSyllParser.java#L338-L368 | train |
HeidelTime/heideltime | src/jvntextpro/util/VnSyllParser.java | VnSyllParser.parseLastConsonant | private void parseLastConsonant() {
if (!validViSyll)
return;
if (iCurPos > strSyllable.length())
strLastConsonant = ZERO;
String strCon = strSyllable.substring(iCurPos, strSyllable.length());
if (strCon.length() > 3) {
validViSyll = false;
return;
}
Iterator iter = alLastConsonants.iterator()... | java | private void parseLastConsonant() {
if (!validViSyll)
return;
if (iCurPos > strSyllable.length())
strLastConsonant = ZERO;
String strCon = strSyllable.substring(iCurPos, strSyllable.length());
if (strCon.length() > 3) {
validViSyll = false;
return;
}
Iterator iter = alLastConsonants.iterator()... | [
"private",
"void",
"parseLastConsonant",
"(",
")",
"{",
"if",
"(",
"!",
"validViSyll",
")",
"return",
";",
"if",
"(",
"iCurPos",
">",
"strSyllable",
".",
"length",
"(",
")",
")",
"strLastConsonant",
"=",
"ZERO",
";",
"String",
"strCon",
"=",
"strSyllable",... | Parses the last consonant. | [
"Parses",
"the",
"last",
"consonant",
"."
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/jvntextpro/util/VnSyllParser.java#L373-L400 | train |
HeidelTime/heideltime | src/jvntextpro/util/VnSyllParser.java | VnSyllParser.initArrayList | private static void initArrayList(ArrayList al, String str) {
StringTokenizer strTknr = new StringTokenizer(str, "|");
while (strTknr.hasMoreTokens()) {
al.add(strTknr.nextToken());
}
} | java | private static void initArrayList(ArrayList al, String str) {
StringTokenizer strTknr = new StringTokenizer(str, "|");
while (strTknr.hasMoreTokens()) {
al.add(strTknr.nextToken());
}
} | [
"private",
"static",
"void",
"initArrayList",
"(",
"ArrayList",
"al",
",",
"String",
"str",
")",
"{",
"StringTokenizer",
"strTknr",
"=",
"new",
"StringTokenizer",
"(",
"str",
",",
"\"|\"",
")",
";",
"while",
"(",
"strTknr",
".",
"hasMoreTokens",
"(",
")",
... | Inits the array list.
@param al the al
@param str the str | [
"Inits",
"the",
"array",
"list",
"."
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/jvntextpro/util/VnSyllParser.java#L425-L430 | train |
HeidelTime/heideltime | src/jvnsegmenter/WordSegmenting.java | WordSegmenting.displayCopyright | public static void displayCopyright() {
System.out.println("Vietnamese Word Segmentation:");
System.out.println("\tusing Conditional Random Fields");
System.out.println("\ttesting our dataset of 8000 sentences with the highest F1-measure of 94%");
System.out.println("Copyright (C) by... | java | public static void displayCopyright() {
System.out.println("Vietnamese Word Segmentation:");
System.out.println("\tusing Conditional Random Fields");
System.out.println("\ttesting our dataset of 8000 sentences with the highest F1-measure of 94%");
System.out.println("Copyright (C) by... | [
"public",
"static",
"void",
"displayCopyright",
"(",
")",
"{",
"System",
".",
"out",
".",
"println",
"(",
"\"Vietnamese Word Segmentation:\"",
")",
";",
"System",
".",
"out",
".",
"println",
"(",
"\"\\tusing Conditional Random Fields\"",
")",
";",
"System",
".",
... | Display copyright. | [
"Display",
"copyright",
"."
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/jvnsegmenter/WordSegmenting.java#L133-L142 | train |
HeidelTime/heideltime | src/jvnsegmenter/WordSegmenting.java | WordSegmenting.displayHelp | public static void displayHelp() {
System.out.println("Usage:");
System.out.println("\tCase 1: WordSegmenting -modeldir <model directory> -inputfile <input data file>");
System.out.println("\tCase 2: WordSegmenting -modeldir <model directory> -inputdir <input data directory>");
Syste... | java | public static void displayHelp() {
System.out.println("Usage:");
System.out.println("\tCase 1: WordSegmenting -modeldir <model directory> -inputfile <input data file>");
System.out.println("\tCase 2: WordSegmenting -modeldir <model directory> -inputdir <input data directory>");
Syste... | [
"public",
"static",
"void",
"displayHelp",
"(",
")",
"{",
"System",
".",
"out",
".",
"println",
"(",
"\"Usage:\"",
")",
";",
"System",
".",
"out",
".",
"println",
"(",
"\"\\tCase 1: WordSegmenting -modeldir <model directory> -inputfile <input data file>\"",
")",
";",
... | Display help. | [
"Display",
"help",
"."
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/jvnsegmenter/WordSegmenting.java#L147-L157 | train |
HeidelTime/heideltime | src/de/unihd/dbs/uima/annotator/heideltime/utilities/ContextAnalyzer.java | ContextAnalyzer.checkInfrontBehind | public static Boolean checkInfrontBehind(MatchResult r, Sentence s) {
Boolean ok = true;
// get rid of expressions such as "1999" in 53453.1999
if (r.start() > 1) {
if ((s.getCoveredText().substring(r.start() - 2, r.start()).matches("\\d\\."))){
ok = false;
}
}
// get rid of expressions if the... | java | public static Boolean checkInfrontBehind(MatchResult r, Sentence s) {
Boolean ok = true;
// get rid of expressions such as "1999" in 53453.1999
if (r.start() > 1) {
if ((s.getCoveredText().substring(r.start() - 2, r.start()).matches("\\d\\."))){
ok = false;
}
}
// get rid of expressions if the... | [
"public",
"static",
"Boolean",
"checkInfrontBehind",
"(",
"MatchResult",
"r",
",",
"Sentence",
"s",
")",
"{",
"Boolean",
"ok",
"=",
"true",
";",
"// get rid of expressions such as \"1999\" in 53453.1999",
"if",
"(",
"r",
".",
"start",
"(",
")",
">",
"1",
")",
... | Check token boundaries of expressions.
@param r MatchResult
@param s Respective sentence
@return whether or not the MatchResult is a clean one | [
"Check",
"token",
"boundaries",
"of",
"expressions",
"."
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/de/unihd/dbs/uima/annotator/heideltime/utilities/ContextAnalyzer.java#L525-L556 | train |
HeidelTime/heideltime | src/jflexcrf/Model.java | Model.inferenceAll | public void inferenceAll(List data) {
System.out.println("Starting inference ...");
long start, stop, elapsed;
start = System.currentTimeMillis();
for (int i = 0; i < data.size(); i++) {
System.out.println("sequence " + Integer.toString(i + 1));
List seq = (List)data.get(i);
inference(seq);
... | java | public void inferenceAll(List data) {
System.out.println("Starting inference ...");
long start, stop, elapsed;
start = System.currentTimeMillis();
for (int i = 0; i < data.size(); i++) {
System.out.println("sequence " + Integer.toString(i + 1));
List seq = (List)data.get(i);
inference(seq);
... | [
"public",
"void",
"inferenceAll",
"(",
"List",
"data",
")",
"{",
"System",
".",
"out",
".",
"println",
"(",
"\"Starting inference ...\"",
")",
";",
"long",
"start",
",",
"stop",
",",
"elapsed",
";",
"start",
"=",
"System",
".",
"currentTimeMillis",
"(",
")... | Inference all.
@param data the data | [
"Inference",
"all",
"."
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/jflexcrf/Model.java#L157-L174 | train |
HeidelTime/heideltime | src/jflexcrf/Maps.java | Maps.readCpMaps | public void readCpMaps(BufferedReader fin) throws IOException {
if (cpStr2Int != null) {
cpStr2Int.clear();
} else {
cpStr2Int = new HashMap();
}
if (cpInt2Str != null) {
cpInt2Str.clear();
} else {
cpInt2Str = new HashMap();
}
String line;
// get size of context predicate map
if ((li... | java | public void readCpMaps(BufferedReader fin) throws IOException {
if (cpStr2Int != null) {
cpStr2Int.clear();
} else {
cpStr2Int = new HashMap();
}
if (cpInt2Str != null) {
cpInt2Str.clear();
} else {
cpInt2Str = new HashMap();
}
String line;
// get size of context predicate map
if ((li... | [
"public",
"void",
"readCpMaps",
"(",
"BufferedReader",
"fin",
")",
"throws",
"IOException",
"{",
"if",
"(",
"cpStr2Int",
"!=",
"null",
")",
"{",
"cpStr2Int",
".",
"clear",
"(",
")",
";",
"}",
"else",
"{",
"cpStr2Int",
"=",
"new",
"HashMap",
"(",
")",
"... | Read cp maps.
@param fin the fin
@throws IOException Signals that an I/O exception has occurred. | [
"Read",
"cp",
"maps",
"."
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/jflexcrf/Maps.java#L62-L114 | train |
HeidelTime/heideltime | src/jflexcrf/Maps.java | Maps.readLbMaps | public void readLbMaps(BufferedReader fin) throws IOException {
if (lbStr2Int != null) {
lbStr2Int.clear();
} else {
lbStr2Int = new HashMap();
}
if (lbInt2Str != null) {
lbInt2Str.clear();
} else {
lbInt2Str = new HashMap();
}
String line;
// get size of label map
if ((line = fin.read... | java | public void readLbMaps(BufferedReader fin) throws IOException {
if (lbStr2Int != null) {
lbStr2Int.clear();
} else {
lbStr2Int = new HashMap();
}
if (lbInt2Str != null) {
lbInt2Str.clear();
} else {
lbInt2Str = new HashMap();
}
String line;
// get size of label map
if ((line = fin.read... | [
"public",
"void",
"readLbMaps",
"(",
"BufferedReader",
"fin",
")",
"throws",
"IOException",
"{",
"if",
"(",
"lbStr2Int",
"!=",
"null",
")",
"{",
"lbStr2Int",
".",
"clear",
"(",
")",
";",
"}",
"else",
"{",
"lbStr2Int",
"=",
"new",
"HashMap",
"(",
")",
"... | Read lb maps.
@param fin the fin
@throws IOException Signals that an I/O exception has occurred. | [
"Read",
"lb",
"maps",
"."
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/jflexcrf/Maps.java#L122-L174 | train |
HeidelTime/heideltime | src/de/unihd/dbs/uima/types/heideltime/Sentence.java | Sentence.getSentenceId | public int getSentenceId() {
if (Sentence_Type.featOkTst && ((Sentence_Type)jcasType).casFeat_sentenceId == null)
jcasType.jcas.throwFeatMissing("sentenceId", "de.unihd.dbs.uima.types.heideltime.Sentence");
return jcasType.ll_cas.ll_getIntValue(addr, ((Sentence_Type)jcasType).casFeatCode_sentenceId);} | java | public int getSentenceId() {
if (Sentence_Type.featOkTst && ((Sentence_Type)jcasType).casFeat_sentenceId == null)
jcasType.jcas.throwFeatMissing("sentenceId", "de.unihd.dbs.uima.types.heideltime.Sentence");
return jcasType.ll_cas.ll_getIntValue(addr, ((Sentence_Type)jcasType).casFeatCode_sentenceId);} | [
"public",
"int",
"getSentenceId",
"(",
")",
"{",
"if",
"(",
"Sentence_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"Sentence_Type",
")",
"jcasType",
")",
".",
"casFeat_sentenceId",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"sent... | getter for sentenceId - gets
@generated
@return value of the feature | [
"getter",
"for",
"sentenceId",
"-",
"gets"
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/de/unihd/dbs/uima/types/heideltime/Sentence.java#L94-L97 | train |
HeidelTime/heideltime | src/de/unihd/dbs/uima/types/heideltime/Sentence.java | Sentence.setSentenceId | public void setSentenceId(int v) {
if (Sentence_Type.featOkTst && ((Sentence_Type)jcasType).casFeat_sentenceId == null)
jcasType.jcas.throwFeatMissing("sentenceId", "de.unihd.dbs.uima.types.heideltime.Sentence");
jcasType.ll_cas.ll_setIntValue(addr, ((Sentence_Type)jcasType).casFeatCode_sentenceId, v);} | java | public void setSentenceId(int v) {
if (Sentence_Type.featOkTst && ((Sentence_Type)jcasType).casFeat_sentenceId == null)
jcasType.jcas.throwFeatMissing("sentenceId", "de.unihd.dbs.uima.types.heideltime.Sentence");
jcasType.ll_cas.ll_setIntValue(addr, ((Sentence_Type)jcasType).casFeatCode_sentenceId, v);} | [
"public",
"void",
"setSentenceId",
"(",
"int",
"v",
")",
"{",
"if",
"(",
"Sentence_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"Sentence_Type",
")",
"jcasType",
")",
".",
"casFeat_sentenceId",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",... | setter for sentenceId - sets
@generated
@param v value to set into the feature | [
"setter",
"for",
"sentenceId",
"-",
"sets"
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/de/unihd/dbs/uima/types/heideltime/Sentence.java#L103-L106 | train |
HeidelTime/heideltime | src/de/unihd/dbs/uima/types/heideltime/SourceDocInfo.java | SourceDocInfo.getUri | public String getUri() {
if (SourceDocInfo_Type.featOkTst && ((SourceDocInfo_Type)jcasType).casFeat_uri == null)
jcasType.jcas.throwFeatMissing("uri", "de.unihd.dbs.uima.types.heideltime.SourceDocInfo");
return jcasType.ll_cas.ll_getStringValue(addr, ((SourceDocInfo_Type)jcasType).casFeatCode_uri);} | java | public String getUri() {
if (SourceDocInfo_Type.featOkTst && ((SourceDocInfo_Type)jcasType).casFeat_uri == null)
jcasType.jcas.throwFeatMissing("uri", "de.unihd.dbs.uima.types.heideltime.SourceDocInfo");
return jcasType.ll_cas.ll_getStringValue(addr, ((SourceDocInfo_Type)jcasType).casFeatCode_uri);} | [
"public",
"String",
"getUri",
"(",
")",
"{",
"if",
"(",
"SourceDocInfo_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"SourceDocInfo_Type",
")",
"jcasType",
")",
".",
"casFeat_uri",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing",
"(",
"\"uri\"... | getter for uri - gets
@generated
@return value of the feature | [
"getter",
"for",
"uri",
"-",
"gets"
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/de/unihd/dbs/uima/types/heideltime/SourceDocInfo.java#L72-L75 | train |
HeidelTime/heideltime | src/de/unihd/dbs/uima/types/heideltime/SourceDocInfo.java | SourceDocInfo.getOffsetInSource | public int getOffsetInSource() {
if (SourceDocInfo_Type.featOkTst && ((SourceDocInfo_Type)jcasType).casFeat_offsetInSource == null)
jcasType.jcas.throwFeatMissing("offsetInSource", "de.unihd.dbs.uima.types.heideltime.SourceDocInfo");
return jcasType.ll_cas.ll_getIntValue(addr, ((SourceDocInfo_Type)jcasTyp... | java | public int getOffsetInSource() {
if (SourceDocInfo_Type.featOkTst && ((SourceDocInfo_Type)jcasType).casFeat_offsetInSource == null)
jcasType.jcas.throwFeatMissing("offsetInSource", "de.unihd.dbs.uima.types.heideltime.SourceDocInfo");
return jcasType.ll_cas.ll_getIntValue(addr, ((SourceDocInfo_Type)jcasTyp... | [
"public",
"int",
"getOffsetInSource",
"(",
")",
"{",
"if",
"(",
"SourceDocInfo_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"SourceDocInfo_Type",
")",
"jcasType",
")",
".",
"casFeat_offsetInSource",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"throwFeatMissing"... | getter for offsetInSource - gets
@generated
@return value of the feature | [
"getter",
"for",
"offsetInSource",
"-",
"gets"
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/de/unihd/dbs/uima/types/heideltime/SourceDocInfo.java#L94-L97 | train |
HeidelTime/heideltime | src/de/unihd/dbs/uima/types/heideltime/SourceDocInfo.java | SourceDocInfo.setOffsetInSource | public void setOffsetInSource(int v) {
if (SourceDocInfo_Type.featOkTst && ((SourceDocInfo_Type)jcasType).casFeat_offsetInSource == null)
jcasType.jcas.throwFeatMissing("offsetInSource", "de.unihd.dbs.uima.types.heideltime.SourceDocInfo");
jcasType.ll_cas.ll_setIntValue(addr, ((SourceDocInfo_Type)jcasType... | java | public void setOffsetInSource(int v) {
if (SourceDocInfo_Type.featOkTst && ((SourceDocInfo_Type)jcasType).casFeat_offsetInSource == null)
jcasType.jcas.throwFeatMissing("offsetInSource", "de.unihd.dbs.uima.types.heideltime.SourceDocInfo");
jcasType.ll_cas.ll_setIntValue(addr, ((SourceDocInfo_Type)jcasType... | [
"public",
"void",
"setOffsetInSource",
"(",
"int",
"v",
")",
"{",
"if",
"(",
"SourceDocInfo_Type",
".",
"featOkTst",
"&&",
"(",
"(",
"SourceDocInfo_Type",
")",
"jcasType",
")",
".",
"casFeat_offsetInSource",
"==",
"null",
")",
"jcasType",
".",
"jcas",
".",
"... | setter for offsetInSource - sets
@generated
@param v value to set into the feature | [
"setter",
"for",
"offsetInSource",
"-",
"sets"
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/de/unihd/dbs/uima/types/heideltime/SourceDocInfo.java#L103-L106 | train |
HeidelTime/heideltime | src/de/unihd/dbs/heideltime/standalone/Config.java | Config.setProps | @SuppressWarnings({"unchecked","rawtypes"})
public static void setProps(Properties prop) {
properties = prop;
Iterator propIt = properties.entrySet().iterator();
while(propIt.hasNext()) {
Entry<String, String> entry = (Entry<String, String>) propIt.next();
properties.setProperty(entry.getKey... | java | @SuppressWarnings({"unchecked","rawtypes"})
public static void setProps(Properties prop) {
properties = prop;
Iterator propIt = properties.entrySet().iterator();
while(propIt.hasNext()) {
Entry<String, String> entry = (Entry<String, String>) propIt.next();
properties.setProperty(entry.getKey... | [
"@",
"SuppressWarnings",
"(",
"{",
"\"unchecked\"",
",",
"\"rawtypes\"",
"}",
")",
"public",
"static",
"void",
"setProps",
"(",
"Properties",
"prop",
")",
"{",
"properties",
"=",
"prop",
";",
"Iterator",
"propIt",
"=",
"properties",
".",
"entrySet",
"(",
")"... | Sets properties once
@param prop
Properties | [
"Sets",
"properties",
"once"
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/de/unihd/dbs/heideltime/standalone/Config.java#L106-L116 | train |
HeidelTime/heideltime | src/jvntextpro/JVnTextPro.java | JVnTextPro.initSenSegmenter | public boolean initSenSegmenter(String modelDir){
System.out.println("Initilize JVnSenSegmenter ...");
//initialize sentence segmentation
vnSenSegmenter = new JVnSenSegmenter();
if (!vnSenSegmenter.init(modelDir)){
System.out.println("Error while initilizing JVnSenSegmenter");
vnSenSegmenter =... | java | public boolean initSenSegmenter(String modelDir){
System.out.println("Initilize JVnSenSegmenter ...");
//initialize sentence segmentation
vnSenSegmenter = new JVnSenSegmenter();
if (!vnSenSegmenter.init(modelDir)){
System.out.println("Error while initilizing JVnSenSegmenter");
vnSenSegmenter =... | [
"public",
"boolean",
"initSenSegmenter",
"(",
"String",
"modelDir",
")",
"{",
"System",
".",
"out",
".",
"println",
"(",
"\"Initilize JVnSenSegmenter ...\"",
")",
";",
"//initialize sentence segmentation\r",
"vnSenSegmenter",
"=",
"new",
"JVnSenSegmenter",
"(",
")",
"... | Initialize the sentence segmetation for Vietnamese
return true if the initialization is successful and false otherwise.
@param modelDir the model dir
@return true, if successful | [
"Initialize",
"the",
"sentence",
"segmetation",
"for",
"Vietnamese",
"return",
"true",
"if",
"the",
"initialization",
"is",
"successful",
"and",
"false",
"otherwise",
"."
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/jvntextpro/JVnTextPro.java#L86-L98 | train |
HeidelTime/heideltime | src/jvntextpro/JVnTextPro.java | JVnTextPro.initSegmenter | public boolean initSegmenter(String modelDir){
System.out.println("Initilize JVnSegmenter ...");
System.out.println(modelDir);
vnSegmenter = new CRFSegmenter();
try{
vnSegmenter.init(modelDir);
}
catch (Exception e){
System.out.println("Error while initializing JVnSegmenter");
vnSegm... | java | public boolean initSegmenter(String modelDir){
System.out.println("Initilize JVnSegmenter ...");
System.out.println(modelDir);
vnSegmenter = new CRFSegmenter();
try{
vnSegmenter.init(modelDir);
}
catch (Exception e){
System.out.println("Error while initializing JVnSegmenter");
vnSegm... | [
"public",
"boolean",
"initSegmenter",
"(",
"String",
"modelDir",
")",
"{",
"System",
".",
"out",
".",
"println",
"(",
"\"Initilize JVnSegmenter ...\"",
")",
";",
"System",
".",
"out",
".",
"println",
"(",
"modelDir",
")",
";",
"vnSegmenter",
"=",
"new",
"CRF... | Initialize the word segmetation for Vietnamese.
@param modelDir the model dir
@return true if the initialization is successful and false otherwise | [
"Initialize",
"the",
"word",
"segmetation",
"for",
"Vietnamese",
"."
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/jvntextpro/JVnTextPro.java#L106-L122 | train |
HeidelTime/heideltime | src/jvntextpro/JVnTextPro.java | JVnTextPro.initPosTagger | public boolean initPosTagger(String modelDir){
try{
this.vnPosTagger = new MaxentTagger(modelDir);
}
catch (Exception e){
System.out.println("Error while initializing POS TAgger");
vnPosTagger = null;
return false;
}
return true;
} | java | public boolean initPosTagger(String modelDir){
try{
this.vnPosTagger = new MaxentTagger(modelDir);
}
catch (Exception e){
System.out.println("Error while initializing POS TAgger");
vnPosTagger = null;
return false;
}
return true;
} | [
"public",
"boolean",
"initPosTagger",
"(",
"String",
"modelDir",
")",
"{",
"try",
"{",
"this",
".",
"vnPosTagger",
"=",
"new",
"MaxentTagger",
"(",
"modelDir",
")",
";",
"}",
"catch",
"(",
"Exception",
"e",
")",
"{",
"System",
".",
"out",
".",
"println",... | Initialize the pos tagger for Vietnamese.
@param modelDir the model dir
@return true if the initialization is successful and false otherwise | [
"Initialize",
"the",
"pos",
"tagger",
"for",
"Vietnamese",
"."
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/jvntextpro/JVnTextPro.java#L130-L140 | train |
HeidelTime/heideltime | src/jvntextpro/JVnTextPro.java | JVnTextPro.senSegment | public String senSegment(String text){
String ret = text;
//Segment sentences
if (vnSenSegmenter != null){
ret = vnSenSegmenter.senSegment(text);
}
return ret.trim();
} | java | public String senSegment(String text){
String ret = text;
//Segment sentences
if (vnSenSegmenter != null){
ret = vnSenSegmenter.senSegment(text);
}
return ret.trim();
} | [
"public",
"String",
"senSegment",
"(",
"String",
"text",
")",
"{",
"String",
"ret",
"=",
"text",
";",
"//Segment sentences\r",
"if",
"(",
"vnSenSegmenter",
"!=",
"null",
")",
"{",
"ret",
"=",
"vnSenSegmenter",
".",
"senSegment",
"(",
"text",
")",
";",
"}",... | Do sentence segmentation.
@param text text to have sentences segmented
@return the string | [
"Do",
"sentence",
"segmentation",
"."
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/jvntextpro/JVnTextPro.java#L206-L215 | train |
HeidelTime/heideltime | src/jvntextpro/JVnTextPro.java | JVnTextPro.senTokenize | public String senTokenize(String text){
String ret = text;
if (isTokenization){
ret = PennTokenizer.tokenize(text);
}
return ret.trim();
} | java | public String senTokenize(String text){
String ret = text;
if (isTokenization){
ret = PennTokenizer.tokenize(text);
}
return ret.trim();
} | [
"public",
"String",
"senTokenize",
"(",
"String",
"text",
")",
"{",
"String",
"ret",
"=",
"text",
";",
"if",
"(",
"isTokenization",
")",
"{",
"ret",
"=",
"PennTokenizer",
".",
"tokenize",
"(",
"text",
")",
";",
"}",
"return",
"ret",
".",
"trim",
"(",
... | Do sentence tokenization.
@param text to be tokenized
@return the string | [
"Do",
"sentence",
"tokenization",
"."
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/jvntextpro/JVnTextPro.java#L223-L231 | train |
HeidelTime/heideltime | src/jvntextpro/JVnTextPro.java | JVnTextPro.wordSegment | public String wordSegment(String text){
String ret = text;
if (vnSegmenter == null) return ret;
ret = vnSegmenter.segmenting(ret);
return ret;
} | java | public String wordSegment(String text){
String ret = text;
if (vnSegmenter == null) return ret;
ret = vnSegmenter.segmenting(ret);
return ret;
} | [
"public",
"String",
"wordSegment",
"(",
"String",
"text",
")",
"{",
"String",
"ret",
"=",
"text",
";",
"if",
"(",
"vnSegmenter",
"==",
"null",
")",
"return",
"ret",
";",
"ret",
"=",
"vnSegmenter",
".",
"segmenting",
"(",
"ret",
")",
";",
"return",
"ret... | Do word segmentation.
@param text to be segmented by words
@return text with words segmented, syllables in words are joined by '_' | [
"Do",
"word",
"segmentation",
"."
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/jvntextpro/JVnTextPro.java#L239-L245 | train |
HeidelTime/heideltime | src/jvntextpro/JVnTextPro.java | JVnTextPro.posTagging | public String posTagging(String text){
String ret = text;
if (vnPosTagger != null){
ret = vnPosTagger.tagging(text);
}
return ret;
} | java | public String posTagging(String text){
String ret = text;
if (vnPosTagger != null){
ret = vnPosTagger.tagging(text);
}
return ret;
} | [
"public",
"String",
"posTagging",
"(",
"String",
"text",
")",
"{",
"String",
"ret",
"=",
"text",
";",
"if",
"(",
"vnPosTagger",
"!=",
"null",
")",
"{",
"ret",
"=",
"vnPosTagger",
".",
"tagging",
"(",
"text",
")",
";",
"}",
"return",
"ret",
";",
"}"
] | Do pos tagging.
@param text to be tagged with POS of speech (need to have words segmented)
@return the string | [
"Do",
"pos",
"tagging",
"."
] | 4ef5002eb5ecfeb818086ff7e394e792ee360335 | https://github.com/HeidelTime/heideltime/blob/4ef5002eb5ecfeb818086ff7e394e792ee360335/src/jvntextpro/JVnTextPro.java#L253-L260 | train |
jenetics/jpx | jpx/src/main/java/io/jenetics/jpx/WayPoint.java | WayPoint.of | @Deprecated
public static WayPoint of(
final Latitude latitude,
final Longitude longitude,
final Length elevation,
final Speed speed,
final ZonedDateTime time,
final Degrees magneticVariation,
final Length geoidHeight,
final String name,
final String comment,
final String description,
final Strin... | java | @Deprecated
public static WayPoint of(
final Latitude latitude,
final Longitude longitude,
final Length elevation,
final Speed speed,
final ZonedDateTime time,
final Degrees magneticVariation,
final Length geoidHeight,
final String name,
final String comment,
final String description,
final Strin... | [
"@",
"Deprecated",
"public",
"static",
"WayPoint",
"of",
"(",
"final",
"Latitude",
"latitude",
",",
"final",
"Longitude",
"longitude",
",",
"final",
"Length",
"elevation",
",",
"final",
"Speed",
"speed",
",",
"final",
"ZonedDateTime",
"time",
",",
"final",
"De... | Create a new way-point with the given parameter.
@param latitude the latitude of the point, WGS84 datum (mandatory)
@param longitude the longitude of the point, WGS84 datum (mandatory)
@param elevation the elevation (in meters) of the point (optional)
@param speed the current GPS speed (optional)
@param time creation/... | [
"Create",
"a",
"new",
"way",
"-",
"point",
"with",
"the",
"given",
"parameter",
"."
] | 58fefc10580602d07f1480d6a5886d13a553ff8f | https://github.com/jenetics/jpx/blob/58fefc10580602d07f1480d6a5886d13a553ff8f/jpx/src/main/java/io/jenetics/jpx/WayPoint.java#L1595-L1643 | train |
jenetics/jpx | jpx/src/main/java/io/jenetics/jpx/format/Location.java | Location.of | public static Location of(final Point point) {
requireNonNull(point);
return of(
point.getLatitude(),
point.getLongitude(),
point.getElevation().orElse(null)
);
} | java | public static Location of(final Point point) {
requireNonNull(point);
return of(
point.getLatitude(),
point.getLongitude(),
point.getElevation().orElse(null)
);
} | [
"public",
"static",
"Location",
"of",
"(",
"final",
"Point",
"point",
")",
"{",
"requireNonNull",
"(",
"point",
")",
";",
"return",
"of",
"(",
"point",
".",
"getLatitude",
"(",
")",
",",
"point",
".",
"getLongitude",
"(",
")",
",",
"point",
".",
"getEl... | Create a new location form the given GPS point.
@param point the GPS point
@return a new location form the given GPS point
@throws NullPointerException if the given {@code point} is {@code null} | [
"Create",
"a",
"new",
"location",
"form",
"the",
"given",
"GPS",
"point",
"."
] | 58fefc10580602d07f1480d6a5886d13a553ff8f | https://github.com/jenetics/jpx/blob/58fefc10580602d07f1480d6a5886d13a553ff8f/jpx/src/main/java/io/jenetics/jpx/format/Location.java#L124-L131 | train |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.