Exemplo n.º 1
0
 //-------------
 //Predict
 public void predictSemantic(string srcText)
 {
     if (project != null)
     {
         List <tm> TMData = new List <tm>();
         List <semanticSimilarity> resultSemantic = new List <semanticSimilarity>();
         List <resultTMOnline>     resultTMOnline = new List <resultTMOnline>();
         if (TMLocalToolStripMenuItem.Checked)
         {
             TMData         = tmDataAccess.LoadTM(project.getTMName());
             resultSemantic = fuzzymatchesForm.getResultSemantic(srcText, TMData);
         }
         if (TMGlobalToolStripMenuItem.Checked)
         {
             resultTMOnline = fuzzymatchesForm.GetResultTMOnlines(srcText);
         }
         var resultMT = this.getResultsMachineTranslatorion();
         fuzzymatchesForm.setResultPredictSemantic(resultSemantic, resultMT, resultTMOnline);
     }
 }