public TextAnalysisDocumentStore AnalyzeSentiment(TextAnalysisDocumentStore S)
        {
            TextAnalysisDocumentStore res = new TextAnalysisDocumentStore();

            foreach (var d in S.documents)
            {
                var doc = new TextAnalysisDocument(d.id, d.language, d.text);
                doc.score = Analyze(d.text);
                res.documents.Add(doc);
            }
            return(res);
        }
예제 #2
0
 public TextAnalysisDocumentStore(TextAnalysisDocument doc)
 {
     documents = new List <Evangelism.TextAnalysisDocument>();
     documents.Add(doc);
 }