Facebook/bart-large-cnn resulting in weird output
I have a piece of text of 4226 charactersI am trying different combinations of min_length and max_length to get summaryprint(summarizer(INPUT, max_length = 1000, min_length=500, do_sample=False))Questions I have are:I get messageYour max_length is set to 1000, but you input_length is only 856. You might consider decreasing max_length manually, e.g. summarizer(‘…’, max_length=428)What does it mean?After above message this it publishes a summary of total 2211 characters.How did it get that?Of the above 2211 characters, first 933 characters are valid content from text but then it publishes text likeFor confidential support call the Samaritans on 08457 90 90 90 or visit a local Samaritans branch, seewww.samaritans.orgfor details. For support …How did it get that?How does min_length and max_length actually work?What is the max input that I can actually give to this summarizer?Sorry for so many questions.The code issummarizer = pipeline("summarization", model="facebook/bart-large-cnn")
print(summarizer(INPUT, max_length = 1000, min_length=500, do_sample=False))The text (INPUT) isINPUT = ‘’‘We see ChatGPT as an engine that will eventually power human interactions with computer systems in afamiliar, natural, and intuitive way. As ChatGPT stated, large language models can be put to work as a communicationengine in a variety of applications across a number of vertical markets.Glaringly absent in its answer is the use of ChatGPT in search engines. Microsoft, which is an investor in OpenAI, isintegrating ChatGPT into its Bing search engine. The use of a large language model enables more complex and morenatural searches and extract deeper meaning and better context from source material. This is ultimately expectedto deliver more robust and useful results.Is AI coming for your job?Every wave of new and disruptive technology has incited fears of mass job losses due to automation, and we are alreadyseeing those fears expressed relative to AI generally and ChatGPT specifically. The year 1896, when Henry Ford rolled outhis first automobile, was probably not a good year for buggy whip makers. When IBM introduced its first mainframe, theSystem/360, in 1964, office workers feared replacement by mechanical brains that never made mistakes, never called insick, and never took vacations.There are certainly historical cases of job displacement due to new technology adoption, and ChatGPT may unseat someoffice workers or customer service reps. However, we think AI tools broadly will end up as part of the solution in aneconomy that has more job openings than available workers.However, economic history shows that technology of any sort (i.e., manufacturing technology, communicationstechnology, information technology) ultimately makes productive workers more productive and is net additive toemployment and economic growth.How big is the opportunity?The broad AI hardware and services market was nearly USD 36bn in 2020, based on IDC and Bloomberg Intelligence data.We expect the market to grow by 20% CAGR to reach USD 90bn by 2025. Given the relatively early monetization stageof conversational AI, we estimate that the segment accounted for 10% of the broader AI’s addressable market in 2020,predominantly from enterprise and consumer subscriptions.That said, user adoption is rapidly rising. ChatGPT reached its first 1 million user milestone in a week, surpassing Instagramto become the quickest application to do so. Similarly, we see strong interest from enterprises to integrate conservationalAI into their existing ecosystem. As a result, we believe conversational AI’s share in the broader AI’s addressable marketcan climb to 20% by 2025 (USD 18–20bn). Our estimate may prove to be conservative; they could be even higherif conversational AI improvements (in terms of computing power, machine learning, and deep learning capabilities),availability of talent, enterprise adoption, spending from governments, and incentives are stronger than expected.How to invest in AI?We see artificial intelligence as a horizontal technology that will have important use cases across a number of applicationsand industries. From a broader perspective, AI, along with big data and cybersecurity, forms what we call the ABCs oftechnology. We believe these three major foundational technologies are at inflection points and should see faster adoptionover the next few years as enterprises and governments increase their focus and investments in these areas.Conservational AI is currently in its early stages of monetization and costs remain high as it is expensive to run. Insteadof investing directly in such platforms, interested investors in the short term can consider semiconductor companies, andcloud-service providers that provides the infrastructure needed for generative AI to take off. In the medium to long term,companies can integrate generative AI to improve margins across industries and sectors, such as within healthcare andtraditional manufacturing.Outside of public equities, investors can also consider opportunities in private equity (PE). We believe the tech sector iscurrently undergoing a new innovation cycle after 12–18 months of muted activity, which provides interesting and newopportunities that PE can capture through early-stage investments.‘’’