Skip to content

basicconverter

Base class for converters.

BasicConverter

Take care of data common to all BasicConverter classes.

Source code in /home/anders/projects/CorpusTools/corpustools/basicconverter.py
23
24
25
26
27
28
29
30
31
32
33
class BasicConverter:
    """Take care of data common to all BasicConverter classes."""

    def __init__(self, filename):
        """Initialise the BasicConverter class.

        Args:
            filename (str): the path to the file that should be converted
        """
        self.orig = filename
        self.metadata = xslsetter.MetadataHandler(filename + ".xsl", create=True)

__init__(filename)

Initialise the BasicConverter class.

Parameters:

Name Type Description Default
filename str

the path to the file that should be converted

required
Source code in /home/anders/projects/CorpusTools/corpustools/basicconverter.py
26
27
28
29
30
31
32
33
def __init__(self, filename):
    """Initialise the BasicConverter class.

    Args:
        filename (str): the path to the file that should be converted
    """
    self.orig = filename
    self.metadata = xslsetter.MetadataHandler(filename + ".xsl", create=True)