public NLPDecoder(InputStream configuration) { super(new DecodeConfig(configuration)); }
public TSVReader<N> createTSVReader() { return new TSVReader<N>(decode_config.getReaderFieldMap()) { @Override protected N create() {return AbstractNLPDecoder.this.create();} }; }
public DecodeConfig(InputStream in) { super(in); initComponents(); }
public void init(DecodeConfig decode_config) Language language = decode_config.getLanguage(); readerFieldMap = decode_config.getReaderFieldMap(); components.add(new GlobalLexica<>(decode_config.getDocumentElement())); if (decode_config.getPartOfSpeechTagging() != null) components.add(edu.emory.mathcs.nlp.common.util.NLPUtils.getComponent(decode_config.getPartOfSpeechTagging())); if (decode_config.getNamedEntityRecognition() != null) components.add(edu.emory.mathcs.nlp.common.util.NLPUtils.getComponent(decode_config.getNamedEntityRecognition())); if (decode_config.getDependencyParsing() != null) components.add(edu.emory.mathcs.nlp.common.util.NLPUtils.getComponent(decode_config.getDependencyParsing()));
public void initComponents() { Element eModels = XMLUtils.getFirstElementByTagName(xml, "models"); setPartOfSpeechTagging (XMLUtils.getTextContentFromFirstElementByTagName(eModels, "pos")); setNamedEntityRecognition(XMLUtils.getTextContentFromFirstElementByTagName(eModels, "ner")); setDependencyParsing (XMLUtils.getTextContentFromFirstElementByTagName(eModels, "dep")); setSemanticRoleLabeling (XMLUtils.getTextContentFromFirstElementByTagName(eModels, "srl")); }
decodeConfig = new DecodeConfig(config); TSVReader<NLPNode> reader = new TSVReader<NLPNode>(decodeConfig.getReaderFieldMap())
public void init(DecodeConfig config) Language language = config.getLanguage(); decode_config = config; components.add(new GlobalLexica<>(decode_config.getDocumentElement())); if (decode_config.getPartOfSpeechTagging() != null) components.add(NLPUtils.getComponent(IOUtils.getInputStream(decode_config.getPartOfSpeechTagging()))); if (decode_config.getNamedEntityRecognition() != null) components.add(NLPUtils.getComponent(IOUtils.getInputStream(decode_config.getNamedEntityRecognition()))); if (decode_config.getDependencyParsing() != null) components.add(NLPUtils.getComponent(IOUtils.getInputStream(decode_config.getDependencyParsing())));
public void initComponents() { Element eModels = XMLUtils.getFirstElementByTagName(xml, "models"); setPartOfSpeechTagging (XMLUtils.getTextContentFromFirstElementByTagName(eModels, "pos")); setNamedEntityRecognition(XMLUtils.getTextContentFromFirstElementByTagName(eModels, "ner")); setDependencyParsing (XMLUtils.getTextContentFromFirstElementByTagName(eModels, "dep")); setSemanticRoleLabeling (XMLUtils.getTextContentFromFirstElementByTagName(eModels, "srl")); }
decodeConfig = new DecodeConfig(config); TSVReader<NLPNode> reader = new TSVReader<NLPNode>(decodeConfig.getReaderFieldMap())
public NLPDecoder(InputStream configuration) { super(new DecodeConfig(configuration)); }
public DecodeConfig(InputStream in) { super(in); initComponents(); }
public AbstractNLPDecoder(InputStream configuration) { init(new DecodeConfig(configuration)); }
public AbstractNLPDecoder(InputStream configuration) { init(new DecodeConfig(configuration)); }