Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@Kiwibp
Created June 8, 2018 20:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kiwibp/dac2f4a5bf45155e9267b7cf0d4289bc to your computer and use it in GitHub Desktop.
Save Kiwibp/dac2f4a5bf45155e9267b7cf0d4289bc to your computer and use it in GitHub Desktop.
#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