本文整理汇总了Java中de.tudarmstadt.ukp.wikipedia.parser.mediawiki.ShowTemplateNamesAndParameters类的典型用法代码示例。如果您正苦于以下问题:Java ShowTemplateNamesAndParameters类的具体用法?Java ShowTemplateNamesAndParameters怎么用?Java ShowTemplateNamesAndParameters使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ShowTemplateNamesAndParameters类属于de.tudarmstadt.ukp.wikipedia.parser.mediawiki包,在下文中一共展示了ShowTemplateNamesAndParameters类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initVariables
import de.tudarmstadt.ukp.wikipedia.parser.mediawiki.ShowTemplateNamesAndParameters; //导入依赖的package包/类
private void initVariables(){
lineSeparator = "LF";
parserClass = ModularParser.class;
imageIdentifers = new ArrayList<String>();
categoryIdentifers = new ArrayList<String>();
languageIdentifers = new ArrayList<String>();
deleteTemplates = new ArrayList<String>();
parseTemplates = new ArrayList<String>();
showImageText = false;
deleteTags = true;
showMathTagContent = true;
calculateSrcSpans = true;
templateParserClass = ShowTemplateNamesAndParameters.class;
initLanguages();
}
示例2: WikipediaTemplateInfoGenerator
import de.tudarmstadt.ukp.wikipedia.parser.mediawiki.ShowTemplateNamesAndParameters; //导入依赖的package包/类
public WikipediaTemplateInfoGenerator(DatabaseConfiguration dbc, int pageBuffer,
String charset, String outputPath, long maxAllowedPacket,
TemplateFilter pageFilter, TemplateFilter revisionFilter,
GeneratorMode mode)
throws WikiApiException
{
this.dbConf = dbc;
this.pageBuffer=pageBuffer;
MediaWikiParserFactory pf = new MediaWikiParserFactory(
dbc.getLanguage());
pf.setTemplateParserClass(ShowTemplateNamesAndParameters.class);
parser = pf.createParser();
// this.maxAllowedPacket = maxAllowedPacket;
this.charset = charset;
this.outputPath = outputPath;
// Filters
this.pageFilter = pageFilter;
this.revisionFilter = revisionFilter;
//
this.mode = mode;
}