Skip to content

Instantly share code, notes, and snippets.

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
You can’t perform that action at this time.