__init__(self,
source_filename,
submission_filenames,
langpair,
testset,
pattern_name='
' )
(Constructor)
| source code
|
Constructor. Creates a memory object that handles file data
- Parameters:
source_filename (str) - Name of file containing source sentences, one sentence per line
submission_filenames (str) - List of files containing MT system output corresponding with the
source file, one sentence per line. The filename of each file
will be used for extracting the 'system' attribute for its
imported sentences (see \pattern_name
below)
langpair (str) - A string containing the language codes of the the language pair,
source-target e.g.: de-en or en-fr
testset (str) - The name of the data set, e.g: testset2011
pattern_name - A regular expression which contains a bracketed pattern for
extracting the system name out of the filename. If empty, the
entire filename will be used as a system name
- Overrides:
genericreader.GenericReader.__init__
|