private GeneralManagement() { EntityManagement = new EntityManagement(); SentimentManagement = new SentimentManagement(); AlarmManagement = new AlarmManagement(); PhraseManagement = new PhraseManagement(); AuthorManagement = new AuthorManagement(); }
public void AnalysisPhrase(Phrase phrase) { Sentiment[] sentimentsContainedInPhrase = phrase.AllAssociatedSentiments(SentimentManagement.AllSentiments); int quantityOfPositiveSentiments = phrase.QuantityOfAssociatedPositiveSentiments(sentimentsContainedInPhrase); int quantityOfNegativeSentiments = phrase.QuantityOfAssociatedNegativeSentiments(sentimentsContainedInPhrase); SentimentManagement.UpdateAssociatedSentiments(sentimentsContainedInPhrase); EntityManagement.AssociateEntityToPhrase(phrase); phrase.SetTypeOfPhrase(quantityOfPositiveSentiments, quantityOfNegativeSentiments); PhraseManagement.UpdatePhrase(phrase); }