qe-team / marmot

MARMOT - the open source framework for feature extraction and machine learning, designed to estimate the quality of Machine Translation output
ISC License
21 stars 7 forks source link

some parsers may take keys as arguments, others may hard-code their keys #16

Open chrishokamp opened 9 years ago

chrishokamp commented 9 years ago

depending how specific a parser is, it may or may not take the key(s) for the object it returns as parameters.

for example, a parser for a whitespace-tokenized file should take the keys as args, because it can work on any file that is in the whitespace-tokenized format.

def parse(filename, key)