fix in recast generic task
@@ -1232,45 +1232,45 @@ class RecastNLITask(PairClassificationTask):
class RecastPunTask(RecastNLITask):
def __init__(self, path, max_seq_len, name="recast-puns"):
- super(RecastPunTask, self).__init__(name, 2)
+ super(RecastPunTask, self).__init__(path, max_seq_len, name)
class RecastNERTask(RecastNLITask):
def __init__(self, path, max_seq_len, name="recast-ner"):
- super(RecastNERTask, self).__init__(name, 2)
+ super(RecastNERTask, self).__init__(path, max_seq_len, name)
class RecastVerbnetTask(RecastNLITask):
def __init__(self, path, max_seq_len, name="recast-verbnet"):
- super(RecastVerbnetTask, self).__init__(name, 2)
+ super(RecastVerbnetTask, self).__init__(path, max_seq_len, name)
class RecastVerbcornerTask(RecastNLITask):
def __init__(self, path, max_seq_len, name="recast-verbcorner"):
- super(RecastVerbcornerTask, self).__init__(name, 2)
+ super(RecastVerbcornerTask, self).__init__(path, max_seq_len, name)
class RecastSentimentTask(RecastNLITask):
def __init__(self, path, max_seq_len, name="recast-sentiment"):
- super(RecastSentimentTask, self).__init__(name, 2)
+ super(RecastSentimentTask, self).__init__(path, max_seq_len, name)
class RecastFactualityTask(RecastNLITask):
def __init__(self, path, max_seq_len, name="recast-factuality"):
- super(RecastFactualityTask, self).__init__(name, 2)
+ super(RecastFactualityTask, self).__init__(path, max_seq_len, name)
class RecastWinogenderTask(RecastNLITask):
def __init__(self, path, max_seq_len, name="recast-winogender"):
- super(RecastWinogenderTask, self).__init__(name, 2)
+ super(RecastWinogenderTask, self).__init__(path, max_seq_len, name)
class RecastLexicosynTask(RecastNLITask):
def __init__(self, path, max_seq_len, name="recast-lexicosyn"):
- super(RecastLexicosynTask, self).__init__(name, 2)
+ super(RecastLexicosynTask, self).__init__
class RecastKGTask(RecastNLITask):
def __init__(self, path, max_seq_len, name="recast-kg"):
- super(RecastKGTask, self).__init__(name, 2)
+ super(RecastKGTask, self).__init__
