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?
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?