Пример #1
0
 public static svm_node[] CreateNode(string strComm)
 {
     try
     {
         return(TextClassificationProblemBuilder.CreateNode(strComm, Vocabulary));
     }
     catch (Exception ex)
     {
         return(null);
     }
 }
Пример #2
0
 private static svm_problem CreateProblem(IEnumerable <string> x, double[] y, IReadOnlyList <string> vocabulary)
 {
     try
     {
         var problemBuilder = new TextClassificationProblemBuilder();
         var problem        = problemBuilder.CreateProblem(X, Y, Vocabulary);
         return(problem);
     }
     catch (Exception ex)
     {
         return(null);
     }
 }