aws / sagemaker-jumpstart-industry-pack

Apache License 2.0
31 stars 12 forks source link

fullSummary helper function #41

Open vkorf opened 2 years ago

vkorf commented 2 years ago

I wasn't able to call fullSummary method.

NameError: name 'fullSummary' is not defined

sophiayue1116 commented 2 years ago

Hi, Vasily! Which fullSummary method? For which API? Can you elaborate more on this? Thank you

vkorf commented 2 years ago
qdf['summary'] = ''
for i in range(len(qdf)):
    qdf.loc[i,'summary'] = fullSummary(qdf.loc[i,'text2score'])
    print(i, end='..')
qdf

from https://aws.amazon.com/ru/blogs/machine-learning/create-a-dashboard-with-sec-text-for-financial-nlp-in-amazon-sagemaker-jumpstart/

sophiayue1116 commented 2 years ago

Hi, Vasily! The blog does not include all the code and details. You can try the example notebooks either in the jumpstart notebooks or classic sagemaker notebook.