Skip to content

Instantly share code, notes, and snippets.

@Kiwibp
Created June 8, 2018 20:53
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
#execute Summary Extractor model
ml = MonkeyLearn('insert api key here')
data = list(nlp_df_sample.iloc[:,7])
model_id = 'ex_94WD2XxD'
summary_model_results = ml.extractors.extract(model_id, data, production_model=True)
print(summary_model_results.body)
#execute Price Extractor model
data = list(nlp_df_sample.iloc[:,7])
model_id = 'ex_wNDME4vE'
price_model_results = ml.extractors.extract(model_id, data, production_model=True)
print(price_model_results.body)
#execute Used Item Classifier model
data = list(nlp_df_sample.iloc[:,7])
model_id = 'cl_y9SLBdtB'
used_item_classifier_results = ml.classifiers.classify(model_id, data)
print(used_item_classifier_results.body)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment