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); }
public TextAnalysisDocumentStore(TextAnalysisDocument doc) { documents = new List <Evangelism.TextAnalysisDocument>(); documents.Add(doc); }