OpenNMT-py icon indicating copy to clipboard operation
OpenNMT-py copied to clipboard

-withAttn

Open sdlmw opened this issue 4 years ago • 3 comments

Hi guys,

Does OpenNMT-py also support attention tables? It's like the inside of the lua version - withattn parameter.

thanks

sdlmw avatar Apr 01 '20 03:04 sdlmw

Hey, Would you mind elaborating a bit on what you mean? Maybe linked to this?

francoishernandez avatar Apr 01 '20 16:04 francoishernandez

Hi @francoishernandez It's like a set of numbers in the picture below. In the opennmt-lua version, it can get it with -withAttn image

sdlmw avatar Apr 03 '20 02:04 sdlmw

There is no flag available for that. Attention matrices are fairly accessible via the API though. Feel free to PR if you want.

francoishernandez avatar Apr 03 '20 15:04 francoishernandez