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);
}