Exemple #1
0
    def save(self, savename = False, **kwargs):
        """Save corpus class to file

           >>> corpus.save()

        :param savename: name for the file
        :type savename: str

        :returns: None
        """
        from corpkit import save
        if not savename:
            savename = self.name
        save(self, savename, savedir = 'data', **kwargs)
Exemple #2
0
    def save(self, savename=False, **kwargs):
        """Save corpus class to file

           >>> corpus.save(filename)

        :param savename: name for the file
        :type savename: str

        :returns: None
        """
        from corpkit import save
        if not savename:
            savename = self.name
        save(self, savename, savedir='data', **kwargs)
Exemple #3
0
    def save(self, savename, savedir = 'saved_interrogations', **kwargs):
        """
        Save an interrogation as pickle to ``savedir``.

           >>> o = corpus.interrogate('w', 'any')
           >>> o.save('savename')

        will create ``saved_interrogations/savename.p``
        
        :param savename: A name for the saved file
        :type savename: str
        
        :param savedir: Relative path to directory in which to save file
        :type savedir: str
        
        :param print_info: Show/hide stdout
        :type print_info: bool
        
        :returns: None
        """
        from corpkit import save
        save(self, savename, *args, **kwargs)
Exemple #4
0
 def save(self, savename, *args, **kwargs):
     """Save data to pickle file"""
     from corpkit import save
     save(self, savename, *args, **kwargs)