The constructor of Seq2Seq defines aggregations as a str, but the forward method treats it as a sequence, and the jsonnet file splits from a comma-separated string to an array. I'm not sure if something has changed in allennlp, but for me, this results in an exception that it's expecting aggregations to be a string.
|
def __init__(self, architecture: Seq2SeqEncoder, aggregations: str) -> None: |