i have one text file on which i need to apply it.
It is possible with Advanced Analytics Integration
yes possible
Follow below thread
Some examples to look here Text Analytics & Sentiment Analysis Connector For QlikView & Qlik Sense
You could also run your sentiment analysis on your data using Python as SSE (eg. using the textblob libary to analyze your strings).