<prompt> Etsa lenaneo le hlahlobang maikutlo a lingoliloeng.nan  <response>: Instruction in English: Create a program that analyses the sentiment of articles. . Response in English: Certainly! Heres a simple program in Python that can help you analyze the sentiment of articles:pythonimport nltkfrom nltk.sentiment import SentimentIntensityAnalyzer Instantiate the sentiment analyzersia SentimentIntensityAnalyzerdef analyze_sentimentarticle: Analyze the sentiment of an article. :param article: string The article text to be analyzed :return: float, float, float The compound sentiment score, positive sentiment score, and negative sentiment score for the article. Tokenize the article into sentences sentences nltk.sent_tokenizearticle Initialize variables to store sentiment scores compound_scores positive_scores negative_scores Iterate over sentences and generate sentiment scores for sentence in sentences: sentiment sia.polarity_scoressentence compound_scores.appendsentimentcompound positive_scores.appendsentimentpos negative_scores.appendsentimentneg Calculate average sentiment scores avg_compound_score sumcompound_scores lencompound_scores avg_positive_score sumpositive_scores lenpositive_scores avg_negative_score sumnegative_scores lennegative_scores return avg_compound_score, avg_positive_score, avg_negative_score Example usagearticle Artificial intelligence AI is intelligence demonstrated by machines, in contrast to the natural intelligence displayed by humans and animals. Leading AI textbooks define the field as the study of intelligent agents: any device that perceives its environment and takes actions that maximize its chance of successfully achieving its goals. AI research is interdisciplinary and subsumes fields as diverse as mathematics, statistics, computer science, psychology, neuroscience and many others. compound, positive, negative analyze_sentimentarticleprintfCompound Score: compound, Positive Score: positive, Negative Score: negativeThis program uses the sentiment analyzer from the nltk library to analyze the sentiment of an article. The function analyze_sentiment takes an article in string format as an input and returns the average compound, positive, and negative sentiment scores for the article.Note that this program requires the nltk library to be installed, and the nltk.sentiment.vader_lexicon resource to be downloaded. You . Response in Sesotho: Ka sebele! Mona ke lenaneo le bonolo ho Python le ka u thusang ho sekaseka maikutlo a lingoliloeng: python import nltk from nltk.sentiment import SentimentIntensityAnalyzer Instantiate the sentiment analyzer sia SentimentIntensityAnalyzer def analyze_sentimentsengoloa: ea sengoloa. :article ea param: string Temana ea sengoloa e tla hlahlojoa :khutlisa: float, float, float Lintlha tse kopaneng tsa maikutlo, lintlha tse ntle, le maikutlo a fosahetseng bakeng sa sengoloa. Tokenise sengoloa hore e be lipolelo nltk.sent_tokenizearticle Qala tse fapa-fapaneng ho boloka lintlha tsa maikutlo compound_scores positive_scores negative_scores Pheta lipolelo le ho hlahisa lintlha tsa maikutlo bakeng sa polelo lipolelong: maikutlo sia.polarity_scorespolelo compound_scores.append maikutlocompound positive_scores.appendmaikutlopos negative_scores.appendmaikutloneg Bala kakaretso ea lintlha tsa maikutlo avg_compound_score kakaretsocompound_scores lencompound_scores avg_positive_score kakaretso positive_scores lenpositive_scores avg_negative_score kakaretsonegative_scores lennegative_scores return avg_compound_score, avg_positive_score, avg_negative_score Sengoloa sa tšebeliso Sengoloa sa tšebeliso bohlale ba maiketsetso bo bontsa bohlale ba tlhaho ka bohlale ba tlhaho AI ka batho le liphoofolo. Libuka tse ka sehloohong tsa libuka tsa AI li hlalosa tšimo e le thuto ea mahlahana a bohlale: sesebelisoa leha e le sefe se bonang tikoloho ea sona mme se nka liketso tse eketsang monyetla oa ho finyella lipakane tsa sona ka katleho. Patlisiso ea AI e na le likarolo tse fapaneng me e nka likarolo tse fapaneng joalo ka lipalo, lipalo, mahlale a khomphutha, psychology, neuroscience le tse ling tse ngata. motsoako, positive, negative analyze_sentimentarticle printfCompound Score: compound, Positive Score: positive, Negative Score: negative Lenaneo lena le sebelisa mohlahlobi oa maikutlo ho tsoa ho Nltk laebrari ea ho sekaseka maikutlo a sengoloa. Mosebetsi oa hlahlobisisa_maikutlo o nka sengoloa ka mokhoa oa likhoele e le mongolo me o khutlisa kakaretso ea lintlha tse kopaneng, tse ntle le tse mpe bakeng sa sengoloa. Hlokomela hore lenaneo lena le hloka nltk library e tla kengoa, me sesebelisoa sa nltk.sentiment.vader_lexicon se tla khoasolloa. 