Thank you for this very useful article—I am new to Torch so this is a nice starting place for doing some impressively performant sentiment analysis with high-level tools.

I know this is a basic approach, but it doesn't seem to work out of the box if your input documents are longer than 512 tokens. Is there a simple way to make sure it truncates to 512 tokens?

Robert Boscacci
Robert Boscacci

Written by Robert Boscacci

Get my book on computer vision and society for 99¢

Responses (2)