Some comments added

parent bbc1cf52
......@@ -25,9 +25,10 @@ class SequenceDirectory(Sequence):
and for each file, create subsequence, splitting the text of the file into words.
Args:
srcString: source string of the sequence
labelSubSequence: the name of the children dictionary entry for the subsequence as string
formatSubSequence: the format of the subsequence in children dictionary entry as string
src: the path of the directory
listLabel: a list with different labels to create new levels in the children dictionary
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")
......
......@@ -22,9 +22,10 @@ class SequenceFile (Sequence):
By default, create subsequences splitting the text of the file into words.
Args:
srcString: source string of the sequence
labelSubSequence: the name of the children dictionary entry for the subsequence as string
formatSubSequence: the format of the subsequence in children dictionary entry as string
src: the path of the file
listLabel: a list with different labels to create new levels in the children dictionary
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")
......
......@@ -21,12 +21,13 @@ class SequenceString (Sequence):
Initialize a Sequence from a string.
Args:
srcString: source string of the sequence
labelSubSequence: the name of the children dictionary entry for the subsequence as string
formatSubSequence: the format of the subsequence in children dictionary entry as string
src: source string of the sequencesrc: the path of the directory
listLabel: a list with different labels to create new levels in the children dictionary
listClasses: a list with different classes that inicialize a sequence with sublevels
listTokenizer: a list with the tokenizer to inicialize the different subsequences
Raises:
ValueError: If srcString isn't a string .
ValueError: If src isn't a string .
'''
self.inicializeSequence("string")
if not isinstance(src, str):
......
......@@ -20,9 +20,10 @@ class SequenceToken (Sequence):
Initialize a Sequence from a token
Args:
srcString: source string of the sequence
labelSubSequence: the name of the children dictionary entry for the subsequence as string
formatSubSequence: the format of the subsequence in children dictionary entry as string
src: source string of the sequence
listLabel: a list with different labels to create new levels in the children dictionary
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")
......
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