pmhalvor / fgsa

Main repo for my Masters thesis on Fine Grained Sentiment Analysis
4 stars 0 forks source link

Debug: RACL cnn_dim + allow kernel size tuning #49

Closed pmhalvor closed 2 years ago

pmhalvor commented 2 years ago

Convolution dimensions were messed up due to no shared layer.

This push adds a single shared cnn_block for mapping embedding dimension to cnn dimension. (Could have used linear, but sticking to the other baselines).

Added to optimizers via self.other_components({"shared":{lr:self.learning_rate}, ...}) (thanks to IMN implementation using the same).

We also allow for configurable kernel size, to have more tunable params for RACL.