de.tudarmstadt.ukp.wikipedia.api.Wikipedia.getLanguage()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(2.4k)|赞(0)|评价(0)|浏览(108)

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

Wikipedia.getLanguage介绍

暂无

代码示例

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

/**
   * @return The language of this wikipedia.
   */
  public Language getLanguage()
  {
    return wiki.getLanguage();
  }
}

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

/**
 * Deleted the root path map file.
 * @throws WikiApiException Thrown if errors occurred.
 */
public void deleteRootPathMap() throws WikiApiException {
  File rootPathFile = new File(this.rootPathMapFilename + "_" + wiki.getLanguage() + "_" + wiki.getMetaData().getVersion());
  rootPathFile.delete();
}

代码示例来源:origin: de.tudarmstadt.ukp.uby/de.tudarmstadt.ukp.uby.integration.wikipedia-asl

@Override
protected Lexicon createNextLexicon() {
  if(!pageIterator.hasNext() /*|| currentEntryNr > 100*/) {
    return null;
  }
  Lexicon lexicon = new Lexicon();
  String lmfLang = WikipediaLMFMap.mapLanguage(wiki.getLanguage());
  lexicon.setId(getLmfId(Lexicon.class, "lexiconWiki"+lmfLang));
  lexicon.setLanguageIdentifier(lmfLang);
  lexicon.setName("Wikipedia_deu");
  return lexicon;
}

代码示例来源:origin: de.tudarmstadt.ukp.uby/de.tudarmstadt.ukp.uby.integration.wikipedia-asl

@Override
protected Lexicon createNextLexicon() {
  if(!pageIterator.hasNext() /*|| currentEntryNr > 100*/) {
    return null;
  }
  Lexicon lexicon = new Lexicon();
  String lmfLang = WikipediaLMFMap.mapLanguage(wiki.getLanguage());
  lexicon.setId(getLmfId(Lexicon.class, "lexiconWiki"+lmfLang));
  lexicon.setLanguageIdentifier(lmfLang);
  lexicon.setName("Wikipedia_eng");
  return lexicon;
}

代码示例来源:origin: de.tudarmstadt.ukp.uby/de.tudarmstadt.ukp.uby.integration.wikipedia-asl

@Override
protected Lexicon createNextLexicon() {
  if(!pageIterator.hasNext() /*|| currentEntryNr > 100*/) {
    return null;
  }
  Lexicon lexicon = new Lexicon();
  String lmfLang = WikipediaLMFMap.mapLanguage(wiki.getLanguage());
  lexicon.setId(getLmfId(Lexicon.class, "lexiconWiki" + lmfLang));
  lexicon.setLanguageIdentifier(lmfLang);
  lexicon.setName("Wikipedia");
  return lexicon;
}

代码示例来源:origin: de.tudarmstadt.ukp.uby/de.tudarmstadt.ukp.uby.integration.wikipedia-asl

String wikiLmfLang = WikipediaLMFMap.mapLanguage(wiki.getLanguage());
pageTitle = page.getTitle().getPlainTitle();
String name = page.getTitle().getEntity();

相关文章