Open NoahAmsel opened 4 years ago
See the mechanism here: https://github.com/clay-lab/transductions/blob/TreeAttn/models.py#L519
Write a subclass of seq2seq that keeps a vocabulary mapping translation tags to vectors. Then modify the models to just take this initial vector as input instead of the transition tag.
Also: work out a way to infer the list of transition tags from the dataset. Will probably have to use a Field instead of a RawField, which will mean lots of lists of length 1. But the seq2seq subclass can handle that detail
Right now we apply either
SRC
orTRG
field to the annotation column. This shouldn't happen, but we DO need a way of sneaking the transformation tag into the vocab.