Ejemplo n.º 1
0
        /// <summary> It removes the plug-ins on the work flow.</summary>
        public virtual void clear()
        {
            close();

            if (isInitialized)
            {
                queuePhase1.Clear();
                queuePhase2.Clear();
                queuePhase3.Clear();
                isThreadMode       = false;
                outputPhaseNum     = 0;
                outputQueueNum     = 0;
                plainTextPluginCnt = 0;
                morphemePluginCnt  = 0;
                posPluginCnt       = 0;
                morphAnalyzer      = null;
                posTagger          = null;
            }
        }
Ejemplo n.º 2
0
 /// <summary> Sets the morphological analyzer plug-in, which is the major plug-in on second phase,
 /// on the work flow.
 /// </summary>
 /// <param name="ma">- the morphological analyzer plug-in
 /// </param>
 /// <param name="configFile">- the path for the configuration file (relative path to the base directory)
 /// </param>
 public virtual void setMorphAnalyzer(kr.ac.kaist.swrc.jhannanum.plugin.MajorPlugin.MorphAnalyzer.MorphAnalyzer ma, System.String configFile)
 {
     morphAnalyzer         = ma;
     morphAnalyzerConfFile = baseDir + "/" + configFile;
 }