"""
This contains classes used for analyzing the sentiments of input texts
"""

import re
import pprint
import shelve

# import IOMDataService as DS

# from TextFiltration import Sentences, Words, Lemmatized, Bigrams, Trigrams
import numpy as np

from senti_classifier import senti_classifier

import nltk
from nltk.corpus import sentiwordnet as swn
from nltk.corpus import wordnet as wn
from nltk.corpus import stopwords
from nltk.tokenize import wordpunct_tokenize


class SentiSynsetTools(object):
    """
    Tools for loading and working with SentiWordNet stuff
    """

    def load_senti_synsets_for_word(self, word):
        """
        Get a list of senti_synsets for the word

        Args:
            word: String to lookup

        Returns:
            List of senti_synsets