Example #1
0
 public LTML Analyze(String strOption, LTML ltmlIn)
 {
     if (strOption == null || ltmlIn == null)
     {
         throw new Exception(String.Format("{0}: LTPService.Analyze(strOption, ltmlIn)", LtpServiceError.ParameterNullError));
     }
     m_cirServ.SetAnalysisOptions(strOption);
     m_cirServ.SetXmlOption(true);
     String resultStr = m_cirServ.Analyze(ltmlIn.GetXMLStr());
     LTML ltml_out = new LTML();
     ltml_out.LoadFromXmlStr(resultStr);
     return ltml_out;
 }
Example #2
0
        public LTML Analyze(String strOption, LTML ltmlIn)
        {
            if (strOption == null || ltmlIn == null)
            {
                throw new Exception(String.Format("{0}: LTPService.Analyze(strOption, ltmlIn)", LtpServiceError.ParameterNullError));
            }
            m_cirServ.SetAnalysisOptions(strOption);
            m_cirServ.SetXmlOption(true);
            String resultStr = m_cirServ.Analyze(ltmlIn.GetXMLStr());
            LTML   ltml_out  = new LTML();

            ltml_out.LoadFromXmlStr(resultStr);
            return(ltml_out);
        }