Created
June 8, 2018 20:53
-
-
Save Kiwibp/dac2f4a5bf45155e9267b7cf0d4289bc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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