gpt4 book ai didi

de.tudarmstadt.ukp.jwktl.parser.ru.wikokit.base.wikt.multi.ru.quote.YearsRange.stringToInt()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-18 10:41:31 26 4
gpt4 key购买 nike

本文整理了Java中de.tudarmstadt.ukp.jwktl.parser.ru.wikokit.base.wikt.multi.ru.quote.YearsRange.stringToInt()方法的一些代码示例,展示了YearsRange.stringToInt()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YearsRange.stringToInt()方法的具体详情如下:
包路径:de.tudarmstadt.ukp.jwktl.parser.ru.wikokit.base.wikt.multi.ru.quote.YearsRange
类名称:YearsRange
方法名:stringToInt

YearsRange.stringToInt介绍

[英]Converts string to integer, if there is any problem then return -1.
[中]将字符串转换为整数,如果有任何问题,则返回-1。

代码示例

代码示例来源:origin: dkpro/dkpro-jwktl

/** Parses source text (e.g. "1882" or "08-07-2011" or "06.05.2006") 
 * and extracts four digits.
 * 
 * @return -1 If text was not parsed successfully
 */
private int extractFourDigits (String page_title, String text) {
  
  int i = -1;
  
  Matcher m = pattern_contains_4_year.matcher(text);
  if(m.find()) {
    text = m.group();
    i = stringToInt(page_title, text);
  }
  return i;
}

代码示例来源:origin: de.tudarmstadt.ukp.jwktl/jwktl

/** Parses source text (e.g. "1882" or "08-07-2011" or "06.05.2006") 
 * and extracts four digits.
 * 
 * @return -1 If text was not parsed successfully
 */
private int extractFourDigits (String page_title, String text) {
  
  int i = -1;
  
  Matcher m = pattern_contains_4_year.matcher(text);
  if(m.find()) {
    text = m.group();
    i = stringToInt(page_title, text);
  }
  return i;
}

代码示例来源:origin: de.tudarmstadt.ukp.jwktl/jwktl

year_from = stringToInt(page_title, text);
  year_to = year_from;
} else {
    year_from = stringToInt(page_title, str_from);
    year_to = year_from;
    year_to = stringToInt(page_title, str_to);

代码示例来源:origin: dkpro/dkpro-jwktl

year_from = stringToInt(page_title, text);
  year_to = year_from;
} else {
    year_from = stringToInt(page_title, str_from);
    year_to = year_from;
    year_to = stringToInt(page_title, str_to);

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com