openai / generating-reviews-discovering-sentiment

Code for "Learning to Generate Reviews and Discovering Sentiment"
https://arxiv.org/abs/1704.01444
MIT License
1.51k stars 379 forks source link

model.transform(text) #11

Closed techat closed 7 years ago

techat commented 7 years ago

Is text a list of words? It seems the max length of element in the text list is 60.

from encoder import Model model = Model() text = ['demo!'] text_features = model.transform(text)

Newmu commented 7 years ago

It's a list of "documents" - arbitrary length pieces of text you would like to compute a feature representation of.