This PR allows for TupleMatchers that operate on embedded and encoded tuples, instead of just word indices. The design is slightly complicated because we need to have access to TextTrainer._embed_input and TextTrainer._get_encoder within the TupleMatcher, which requires these not actually being Layer objects. I haven't tested this yet; I'm setting this up so that Becky can implement an encoded tuple matcher, and I'm assuming there will be some tests associated with that.
This PR allows for
TupleMatchers
that operate on embedded and encoded tuples, instead of just word indices. The design is slightly complicated because we need to have access toTextTrainer._embed_input
andTextTrainer._get_encoder
within theTupleMatcher
, which requires these not actually beingLayer
objects. I haven't tested this yet; I'm setting this up so that Becky can implement an encoded tuple matcher, and I'm assuming there will be some tests associated with that.