public void startup() throws Exception { // local startup goes here super.startup(); }
public void startup() throws Exception { // local startup goes here super.startup(); }
public synchronized void startup() throws Exception { super.startup(); }
public void startup() throws Exception { if (factory == null) { factory = DocumentBuilderFactory.newInstance(); factory.setNamespaceAware(true); } if (docBuilder == null) { docBuilder = factory.newDocumentBuilder(); } super.startup(); }
public void startup() throws Exception { if (factory == null) { factory = DocumentBuilderFactory.newInstance(); factory.setNamespaceAware(true); } if (docBuilder == null) { docBuilder = factory.newDocumentBuilder(); } super.startup(); }
public void startup() throws Exception { super.startup(); Properties jtokProperties = new Properties(); jtokProperties.setProperty("languages", jtokLocale); jtokProperties.setProperty(jtokLocale, "jtok/" + jtokLocale); jtok = new JTok(jtokProperties); }
public void startup() throws Exception { super.startup(); Properties jtokProperties = new Properties(); jtokProperties.setProperty("languages", jtokLocale); jtokProperties.setProperty(jtokLocale, "jtok/" + jtokLocale); jtok = new JTok(jtokProperties); }
public void startup() throws Exception { startupSynthesizers(); super.startup(); }
public void startup() throws Exception { startupSynthesizers(); super.startup(); }
public void startup() throws Exception { setWarnClient(true); // !! where should that be decided? if (stylesheet == null) { TransformerFactory tFactory = TransformerFactory.newInstance(); StreamSource stylesheetStream = new StreamSource(this.getClass().getResourceAsStream("sable-to-mary.xsl")); stylesheet = tFactory.newTemplates(stylesheetStream); } if (dbFactory == null) { dbFactory = DocumentBuilderFactory.newInstance(); } if (docBuilder == null) { docBuilder = dbFactory.newDocumentBuilder(); } super.startup(); }
public void startup() throws Exception { setWarnClient(true); // !! where should that be decided? if (stylesheet == null) { TransformerFactory tFactory = TransformerFactory.newInstance(); StreamSource stylesheetStream = new StreamSource(this.getClass().getResourceAsStream("ssml-to-mary.xsl")); stylesheet = tFactory.newTemplates(stylesheetStream); } if (dbFactory == null) { dbFactory = DocumentBuilderFactory.newInstance(); } if (docBuilder == null) { docBuilder = dbFactory.newDocumentBuilder(); } super.startup(); }
public void startup() throws Exception { allophoneSet = MaryRuntimeUtils.needAllophoneSet(MaryProperties.localePrefix(getLocale()) + ".allophoneset"); if (factory == null) { factory = DocumentBuilderFactory.newInstance(); factory.setNamespaceAware(true); } if (docBuilder == null) { docBuilder = factory.newDocumentBuilder(); } super.startup(); }
public void startup() throws Exception { allophoneSet = MaryRuntimeUtils.needAllophoneSet(MaryProperties.localePrefix(getLocale()) + ".allophoneset"); if (factory == null) { factory = DocumentBuilderFactory.newInstance(); factory.setNamespaceAware(true); } if (docBuilder == null) { docBuilder = factory.newDocumentBuilder(); } super.startup(); }
public void startup() throws Exception { super.startup(); setPunctuationPosRegex(); setUnpronounceablePosRegex(); }
public void startup() throws Exception { super.startup(); setPunctuationPosRegex(); setUnpronounceablePosRegex(); }
public void startup() throws Exception { super.startup(); InputStream posFSTStream = MaryProperties.getStream(propertyPrefix + "fst"); if (posFSTStream != null) { posFST = new FSTLookup(posFSTStream, MaryProperties.getProperty(propertyPrefix + "fst")); } punctuationList = MaryProperties.getProperty(propertyPrefix + "punctuation", ",.?!;"); }
public void startup() throws Exception { super.startup(); InputStream posFSTStream = MaryProperties.getStream(propertyPrefix + "fst"); if (posFSTStream != null) { posFST = new FSTLookup(posFSTStream, MaryProperties.getProperty(propertyPrefix + "fst")); } punctuationList = MaryProperties.getProperty(propertyPrefix + "punctuation", ",.?!;"); }
public void startup() throws Exception { super.startup(); try { targetFeatureLister = (TargetFeatureLister) ModuleRegistry.getModule(TargetFeatureLister.class); } catch (NullPointerException npe) { targetFeatureLister = null; } if (targetFeatureLister == null) { logger.info("Starting my own TargetFeatureLister"); targetFeatureLister = new TargetFeatureLister(); targetFeatureLister.startup(); } else if (targetFeatureLister.getState() == MaryModule.MODULE_OFFLINE) { targetFeatureLister.startup(); } }
public void startup() throws Exception { super.startup(); contourFeatures = new FeatureFileReader(MaryProperties.needFilename(propertyPrefix + "contours")); contourGraph = new DirectedGraphReader().load(MaryProperties.needFilename(propertyPrefix + "graph")); featureComputer = new TargetFeatureComputer(featureProcessorManager, contourGraph.getFeatureDefinition() .getFeatureNames()); }
public void startup() throws Exception { super.startup(); contourFeatures = new FeatureFileReader(MaryProperties.needFilename(propertyPrefix + "contours")); contourGraph = new DirectedGraphReader().load(MaryProperties.needFilename(propertyPrefix + "graph")); featureComputer = new TargetFeatureComputer(featureProcessorManager, contourGraph.getFeatureDefinition() .getFeatureNames()); }