Exemplo n.º 1
0
 def setUp(self):
     """
     call wordembedding lib
     """
     self.embeddings = WordEmbedding(max_dictionary_size=1000)
     self.embedding_dictionary = self.embeddings.load_embedding_dictionary(
         self.embeddings.dictionary_path)
    def __init__(self, padding_size=20, max_dictionary_size=500000):

        self.text_processor = TextProcessor()
        self.embedding = WordEmbedding(max_dictionary_size=max_dictionary_size)

        self.embedding.load_embedding_dictionary(self.embedding.dictionary_path)

        self.padding_size = padding_size