generating-reviews-discovering-sentiment
generating-reviews-discovering-sentiment copied to clipboard
speed up suggestions?
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?
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