Package com.clearnlp.component.srl

Examples of com.clearnlp.component.srl.DefaultSRLabeler


  static public AbstractSRLabeler getSRLabeler(ObjectInputStream in, String language)
  {
    if (language.equals(AbstractReader.LANG_EN))
      return new EnglishSRLabeler(in);
   
    return new DefaultSRLabeler(in);
  }
View Full Code Here


  protected AbstractStatisticalComponent<?> getComponent(Element eTrain, String language, JointFtrXml[] xmls, StringModel[] models, Object[] lexica)
  {
    if (language.equals(AbstractReader.LANG_EN))
      return new EnglishSRLabeler(xmls, models, lexica);
   
    return new DefaultSRLabeler(xmls, models, lexica);
  }
View Full Code Here

  protected AbstractStatisticalComponent<?> getComponent(Element eTrain, String language, JointFtrXml[] xmls, StringTrainSpace[] spaces, StringModel[] models, Object[] lexica)
  {
    if (language.equals(AbstractReader.LANG_EN))
      return (models == null) ? new EnglishSRLabeler(xmls, spaces, lexica) : new EnglishSRLabeler(xmls, spaces, models, lexica);
   
    return (models == null) ? new DefaultSRLabeler(xmls, spaces, lexica) : new DefaultSRLabeler(xmls, spaces, models, lexica);
  }
View Full Code Here

  protected AbstractSRLabeler getCollector(JointFtrXml[] xmls, String language, String frameDir)
  {
    if (language.equals(AbstractReader.LANG_EN))
      return new EnglishSRLabeler(xmls, getFrames(frameDir));
    else
      return new DefaultSRLabeler(xmls, getFrames(frameDir));
  }
View Full Code Here

  protected AbstractStatisticalComponent<?> getComponent(Element eTrain, String language, JointFtrXml[] xmls, StringModel[] models, Object[] lexica)
  {
    if (language.equals(AbstractReader.LANG_EN))
      return new EnglishSRLabeler(xmls, models, lexica);
   
    return new DefaultSRLabeler(xmls, models, lexica);
  }
View Full Code Here

  protected AbstractStatisticalComponent<?> getComponent(Element eTrain, String language, JointFtrXml[] xmls, StringTrainSpace[] spaces, StringModel[] models, Object[] lexica)
  {
    if (language.equals(AbstractReader.LANG_EN))
      return (models == null) ? new EnglishSRLabeler(xmls, spaces, lexica) : new EnglishSRLabeler(xmls, spaces, models, lexica);
   
    return (models == null) ? new DefaultSRLabeler(xmls, spaces, lexica) : new DefaultSRLabeler(xmls, spaces, models, lexica);
  }
View Full Code Here

  protected AbstractSRLabeler getCollector(JointFtrXml[] xmls, String language, String frameDir)
  {
    if (language.equals(AbstractReader.LANG_EN))
      return new EnglishSRLabeler(xmls, getFrames(frameDir));
    else
      return new DefaultSRLabeler(xmls, getFrames(frameDir));
  }
View Full Code Here

  static public AbstractSRLabeler getSRLabeler(ObjectInputStream in, String language)
  {
    if (language.equals(AbstractReader.LANG_EN))
      return new EnglishSRLabeler(in);
   
    return new DefaultSRLabeler(in);
  }
View Full Code Here

TOP

Related Classes of com.clearnlp.component.srl.DefaultSRLabeler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.