generating-reviews-discovering-sentiment icon indicating copy to clipboard operation
generating-reviews-discovering-sentiment copied to clipboard

speed up suggestions?

Open ronikobrosly opened this issue 7 years ago • 1 comments

Hello, I'm thinking about using the sentiment neuron to create sentiment-colored, blocks of text like they did in the paper in Figure 4. The code I'm using to calculate sentiment is simple, something like:

`from encoder import Model

model = Model()

text = ['This is a terrible product. Very bad!'] text_features = model.transform(text) text_features[:, 2388]`

I've got a quad-core macbook pro and no GPU. Any suggestions on how I could speed up the calculations? Is there a way to specify that all available cores should be used?

ronikobrosly avatar Jul 25 '17 15:07 ronikobrosly

I can't remember exactly how but you should be able to set the number of cores/threads you want to be used for BLAS

raulpuric avatar Sep 12 '17 22:09 raulpuric