ver used : python3
Used facebook's graph API to extract comments of any post ( by providing page id and post id ) and save them in a text file Trained Naive Bayes classifier using nltk and found sentiment values of each comments
run extract_comments.py to extract the comments ( provide access token, post id ) analysis_nltk.py to train and calculate the sentiment