deepmorpheus/dataset.py
def save_vocab(self, vocab_path):
        """This function saves the vocabulary file to the disk location provided"""
        self.vocab.inverted_tags = [{v: k for k, v in tag.items()} for tag in self.vocab.tags]

        with open(vocab_path, "wb") as vocab_file:
            pickle.dump(self.vocab, vocab_file, protocol=pickle.HIGHEST_PROTOCOL)
            print("Saved vocabulary to cache: %s" % vocab_path)
This function saves the vocabulary file to the disk location provided
This function saves the vocabulary file to the disk location provided
This function saves the vocabulary file to the disk location provided
def save_vocab(self, vocab_path):
        self.vocab.inverted_tags = [{v: k for k, v in tag.items()} for tag in self.vocab.tags]
        with open(vocab_path, "wb") as vocab_file:
            pickle.dump(self.vocab, vocab_file, protocol=pickle.HIGHEST_PROTOCOL)
            print("Saved vocabulary to cache: %s" % vocab_path)
def save_vocab ( self , vocab_path ) : self . vocab . inverted_tags = [ { v : k for k , v in tag . items ( ) } for tag in self . vocab . tags ] with open ( vocab_path , "wb" ) as vocab_file : pickle . dump ( self . vocab , vocab_file , protocol = pickle . HIGHEST_PROTOCOL ) print ( "Saved vocabulary to cache: %s" % vocab_path )
This function saves the vocabulary file to the disk location provided
This function saves the vocabulary file to the disk location provided
"""This function saves the vocabulary file to the disk location provided"""
self
vocab_path