当前位置: 首页>>代码示例>>Java>>正文


Java TreebankLangParserParams.setInputEncoding方法代码示例

本文整理汇总了Java中edu.stanford.nlp.parser.lexparser.TreebankLangParserParams.setInputEncoding方法的典型用法代码示例。如果您正苦于以下问题:Java TreebankLangParserParams.setInputEncoding方法的具体用法?Java TreebankLangParserParams.setInputEncoding怎么用?Java TreebankLangParserParams.setInputEncoding使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在edu.stanford.nlp.parser.lexparser.TreebankLangParserParams的用法示例。


在下文中一共展示了TreebankLangParserParams.setInputEncoding方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: IncrementalSemanticsPerformance

import edu.stanford.nlp.parser.lexparser.TreebankLangParserParams; //导入方法依赖的package包/类
public IncrementalSemanticsPerformance()
{                
    predResultMap = new TreeMap<Integer, EvalResult>();
    predWithSenseResultMap = new TreeMap<Integer, EvalResult>();
    argWordResultMap = new TreeMap<Integer, EvalResult>(); // Unlabelled Argument score (UAS)
    argRoleResultMap = new TreeMap<Integer, EvalResult>();
    argPredWordResultMap = new TreeMap<Integer, EvalResult>(); // Unlabelled Prediction score (UPS)
    incompleteTripleMap = new TreeMap<Integer, EvalResult>(); // Unlabelled Incomplete score (UIS)
    srlResultMap = new TreeMap<Integer, EvalResult>(); // Combined Incremental SRL (CIS) score
    predResult = new EvalResult();
    argsResult = new EvalResult();
    srlResult = new EvalResult();
    
    evalbF1Map = new TreeMap<Integer, Double>();
    evalbNumExamplesMap = new HashMap<Integer, Double>();
    fullSentEvalb = new EvalbImpl("Evalb LP/LR", true);
    partialEvalb = new EvalbImpl("Evalb LP/LR", true);
    TreebankLangParserParams tlpp = Languages.getLanguageParams(Languages.Language.English);
    tlpp.setInputEncoding("UTF-8");
    treeCollinizer = tlpp.collinizer();
}
 
开发者ID:sinantie,项目名称:PLTAG,代码行数:22,代码来源:IncrementalSemanticsPerformance.java

示例2: SemanticsPerformance

import edu.stanford.nlp.parser.lexparser.TreebankLangParserParams; //导入方法依赖的package包/类
public SemanticsPerformance(Indexer<String> roleIndexer, Map<Integer, Integer> roleFreqs)
{
    evalb = new EvalbImpl("Evalb LP/LR", true);
    TreebankLangParserParams tlpp = Languages.getLanguageParams(Languages.Language.English);
    tlpp.setInputEncoding("UTF-8");
    treeCollinizer = tlpp.collinizer(); 
    
    conllRoleIndexer = roleIndexer;
    numOfRoles = roleIndexer.size();
    this.roleFreqs = roleFreqs;
    counts = new int[numOfRoles + 1][numOfRoles + 1];
    correctCounts = new int[numOfRoles];
    goldCounts = new int[numOfRoles];
    srlResult = new EvalResult();
    predResult = new EvalResult();
    argsResult = new EvalResult();
    errorsMap = new MultiValueMap<String, String>();
}
 
开发者ID:sinantie,项目名称:PLTAG,代码行数:19,代码来源:SemanticsPerformance.java

示例3: BracketPerformance

import edu.stanford.nlp.parser.lexparser.TreebankLangParserParams; //导入方法依赖的package包/类
public BracketPerformance()
{
    evalb = new EvalbImpl("Evalb LP/LR", true);
    TreebankLangParserParams tlpp = Languages.getLanguageParams(Language.English);
    tlpp.setInputEncoding("UTF-8");
    treeCollinizer = tlpp.collinizer();                   
}
 
开发者ID:sinantie,项目名称:PLTAG,代码行数:8,代码来源:BracketPerformance.java

示例4: BracketPerformanceOracle

import edu.stanford.nlp.parser.lexparser.TreebankLangParserParams; //导入方法依赖的package包/类
public BracketPerformanceOracle()
{
    evalb = new EvalbImpl("Evalb LP/LR", true);
    curEvalb = new EvalbImpl("Evalb LP/LR", true);
    TreebankLangParserParams tlpp = Languages.getLanguageParams(Language.English);
    tlpp.setInputEncoding("UTF-8");
    treeCollinizer = tlpp.collinizer();                   
}
 
开发者ID:sinantie,项目名称:PLTAG,代码行数:9,代码来源:BracketPerformanceOracle.java

示例5: IncrementalBracketPerformance

import edu.stanford.nlp.parser.lexparser.TreebankLangParserParams; //导入方法依赖的package包/类
public IncrementalBracketPerformance()
{
    evalbF1Map = new TreeMap<Integer, Double>();
    evalbNumExamplesMap = new HashMap<Integer, Double>();
    fullSentEvalb = new EvalbImpl("Evalb LP/LR", true);
    partialEvalb = new EvalbImpl("Evalb LP/LR", true);
    TreebankLangParserParams tlpp = Languages.getLanguageParams(Languages.Language.English);
    tlpp.setInputEncoding("UTF-8");
    treeCollinizer = tlpp.collinizer();
}
 
开发者ID:sinantie,项目名称:PLTAG,代码行数:11,代码来源:IncrementalBracketPerformance.java

示例6: SemanticsOraclePerformance

import edu.stanford.nlp.parser.lexparser.TreebankLangParserParams; //导入方法依赖的package包/类
public SemanticsOraclePerformance(Indexer<String> roleIndexer, Map<Integer, Integer> roleFreqs)
{
    super(roleIndexer, roleFreqs);
    curEvalb = new EvalbImpl("Evalb LP/LR", true);
    TreebankLangParserParams tlpp = Languages.getLanguageParams(Languages.Language.English);
    tlpp.setInputEncoding("UTF-8");
    treeCollinizer = tlpp.collinizer();                   
}
 
开发者ID:sinantie,项目名称:PLTAG,代码行数:9,代码来源:SemanticsOraclePerformance.java


注:本文中的edu.stanford.nlp.parser.lexparser.TreebankLangParserParams.setInputEncoding方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。