Some comments added

parent bbc1cf52
...@@ -25,9 +25,10 @@ class SequenceDirectory(Sequence): ...@@ -25,9 +25,10 @@ class SequenceDirectory(Sequence):
and for each file, create subsequence, splitting the text of the file into words. and for each file, create subsequence, splitting the text of the file into words.
Args: Args:
srcString: source string of the sequence src: the path of the directory
labelSubSequence: the name of the children dictionary entry for the subsequence as string listLabel: a list with different labels to create new levels in the children dictionary
formatSubSequence: the format of the subsequence in children dictionary entry as string listClasses: a list with different classes that inicialize a sequence with sublevels
listTokenizer: a list with the tokenizer to inicialize the different subsequences
''' '''
self.inicializeSequence("directory") self.inicializeSequence("directory")
......
...@@ -22,9 +22,10 @@ class SequenceFile (Sequence): ...@@ -22,9 +22,10 @@ class SequenceFile (Sequence):
By default, create subsequences splitting the text of the file into words. By default, create subsequences splitting the text of the file into words.
Args: Args:
srcString: source string of the sequence src: the path of the file
labelSubSequence: the name of the children dictionary entry for the subsequence as string listLabel: a list with different labels to create new levels in the children dictionary
formatSubSequence: the format of the subsequence in children dictionary entry as string listClasses: a list with different classes that inicialize a sequence with sublevels
listTokenizer: a list with the tokenizer to inicialize the different subsequences
''' '''
self.inicializeSequence("file") self.inicializeSequence("file")
......
...@@ -21,12 +21,13 @@ class SequenceString (Sequence): ...@@ -21,12 +21,13 @@ class SequenceString (Sequence):
Initialize a Sequence from a string. Initialize a Sequence from a string.
Args: Args:
srcString: source string of the sequence src: source string of the sequencesrc: the path of the directory
labelSubSequence: the name of the children dictionary entry for the subsequence as string listLabel: a list with different labels to create new levels in the children dictionary
formatSubSequence: the format of the subsequence in children dictionary entry as string listClasses: a list with different classes that inicialize a sequence with sublevels
listTokenizer: a list with the tokenizer to inicialize the different subsequences
Raises: Raises:
ValueError: If srcString isn't a string . ValueError: If src isn't a string .
''' '''
self.inicializeSequence("string") self.inicializeSequence("string")
if not isinstance(src, str): if not isinstance(src, str):
......
...@@ -20,9 +20,10 @@ class SequenceToken (Sequence): ...@@ -20,9 +20,10 @@ class SequenceToken (Sequence):
Initialize a Sequence from a token Initialize a Sequence from a token
Args: Args:
srcString: source string of the sequence src: source string of the sequence
labelSubSequence: the name of the children dictionary entry for the subsequence as string listLabel: a list with different labels to create new levels in the children dictionary
formatSubSequence: the format of the subsequence in children dictionary entry as string listClasses: a list with different classes that inicialize a sequence with sublevels
listTokenizer: a list with the tokenizer to inicialize the different subsequences
''' '''
self.inicializeSequence("token") self.inicializeSequence("token")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment