public Sentiment[] getSentiment ( String text ) {
//        System.out.println(text);
        text = cleanText(text);
//        System.out.println(text);
        Sentiment[] result = new Sentiment[text.split("\\.").length];

        int i = 0;
        int count = 0;
        int tense = 0;
        Double score = 0.0;
        Double value = 0.0;
        String[] texts = text.split("\\.");
        for ( String sentence : texts ) {

            String[] words = sentence.split(" ");
            for ( String word : words ) {
                value = emotionalSentiment.checkEmotionalSentiment(word);
                score += value;
                if ( value != 0.0 ) {
                    count++;
                }
            }

            String posTaggedSentence = posTagger.getTaggedSentence(sentence);
//            System.out.println(posTaggedSentence);
            value = getScore(posTaggedSentence);
//            System.out.println(value);
            tense = getTense(posTaggedSentence);         
//            System.out.println(num);
//            System.out.println(tense);

            
            if ( tense > 0 ) {
                result[i] = new Sentiment(score, num, "past");
            } else {
                result[i] = new Sentiment(score, num, "not-past");
            }
        }

        return result;
    }