Skip to main content

Posts

PTE Templates

  Describe image Speak around 30s to 40s. Find 4 - 6 keywords from the paragraph. (repeat the same words if cannot find that much) The graph/image gives information about the topic . The primary feature of the image is ____. Firstly, it gives information about ____  and ____. Furthermore, some details about ____  and ____  are given in the image. Moreover, some details about ____  and ____  are represented. The highest element is ____ and the lowest element is ____. Overall, the image gives information about the topic . Describe lecture Speak around 35s to 40s. Find 6 - 8 phrases and keywords  from the lecture. (repeat the same words if cannot find that much) The topic was the main topic of the lecture. Firstly, some details about  ____ were given. Furthermore, some highlights about ____ were represented. Moreover, details about  ____ and  ____ were presented. However, add...

How to Perform Sentiment Analysis using TextBlob and NLTK in Python

Sentiment analysis is a powerful tool used to understand the sentiment behind a given text, whether it is positive, negative, or neutral. In this blog, I’ll walk through how to implement a simple sentiment analysis function in Python using  TextBlob  and  NLTK . Getting Started Before we jump into the code, make sure you have Python installed on your system. We'll also need a couple of libraries for this project: TextBlob : A simple library for processing textual data. NLTK : The Natural Language Toolkit, which provides corpora that TextBlob uses for sentiment analysis. Installation First, let’s install the necessary libraries. You can do this by running the following command in your terminal: pip install textblob nltk Downloading NLTK Corpora TextBlob relies on some data from NLTK to process the text properly. Therefore, we need to download the required corpora for tokenizing text and tagging it with parts of speech. import nltk nltk.download('punkt') nltk.download('av...

dialog sms service npm package

  JavaScript library to send SMS through Dialog telecommunication service This library will handle single or multiple SMS send feature with Dialog telecommunications service. npm install dialog-sms-service Usage const smsGateway = require ( 'dialog-sms-service' ) ; ( async ( ) => { try { // set configuration await smsGateway . setConfig ( { digest : 'dialog_msg_digest_here' , mask : 'dialog_msg_mask_here' , user : 'dialog_msg_user_here' , campaignName : 'dialog_msg_campaignName_here' , //optional } ) ; //send message const result = await smsGateway . sendSMS ( '07XXXXXXXX' , 'Dialog sms test' ) ; console . log ( result ) ; } catch ( error ) { console . log ( error ) ; } } ) ( ) ; How to work First needs to contact Dialog Axiata PLC to get credentials for the SMS gateway. Note:-  Please contact  Dialog Axiata PLC  in order to obtain foll...

OAuth 2.0 with GitHub

OAuth 2.0 Demo Application with GitHub API's What is OAuth 2.0 Authorization Framework? Today I will be discussing about OAuth 2.0 Framework and how to implement this in a web application along with a demonstration. The OAuth 2.0 authorization framework enables a third-party application to obtain limited access to an HTTP service, either on behalf of a resource owner by orchestrating an approval interaction between the resource owner and the HTTP service, or by allowing the third-party application to obtain access on its own behalf. In the traditional client-server authentication model, the client requests a protected resource on the server by authenticating with the server using the resource owner’s credentials. In order to provide third-party applications access to protected resources, the recourse owner shares its credentials with the third party.   This would create several problems and limitations as shown below: ·        ...