मैं का पुनर्गठन करने और एक जोड़नेवाला भावना विश्लेषण पैकेज here प्रदान करने के लिए कोशिश की है। SentR में शब्द स्टेमिंग और प्रीप्रोकैसिंग शामिल है और वायरलहेट एपीआई, एक डिफ़ॉल्ट समेकित फ़ंक्शन के साथ-साथ एक और उन्नत बेवकूफ बेयस विधि तक पहुंच प्रदान करता है।
स्थापित अपेक्षाकृत सरल है:
install.packages('devtools')
require('devtools')
install_github('mananshah99/sentR')
require('sentR')
और एक सरल वर्गीकरण उदाहरण:
# Create small vectors for happy and sad words (useful in aggregate(...) function)
positive <- c('happy', 'well-off', 'good', 'happiness')
negative <- c('sad', 'bad', 'miserable', 'terrible')
# Words to test sentiment
test <- c('I am a very happy person.', 'I am a very sad person',
'I’ve always understood happiness to be appreciation. There is no greater happiness than appreciation for what one has- both physically and in the way of relationships and ideologies. The unhappy seek that which they do not have and can not fully appreciate the things around them. I don’t expect much from life. I don’t need a high paying job, a big house or fancy cars. I simply wish to be able to live my life appreciating everything around me.
')
# 1. Simple Summation
out <- classify.aggregate(test, positive, negative)
out
# 2. Naive Bayes
out <- classify.naivebayes(test)
out
निम्नलिखित में से कौन उत्पादन प्रदान करता है:
score
1 1
2 -1
3 2
POS NEG POS/NEG SENT
[1,] "9.47547003995745" "0.445453222112551" "21.2715265477714" "positive"
[2,] "1.03127774142571" "9.47547003995745" "0.108836578774127" "negative"
[3,] "67.1985217685598" "35.1792261323723" "1.9101762362738" "positive"
कृपया योगदान करने के लिए स्वतंत्र लग रहा है :) आशा यह सहायता करता है!
जेफ़री Breen के काम बाहर की जाँच करें यहाँ: http: //www.slideshare।नेट/जेफरीब्रीन/आर-बाय-उदाहरण-खनन-ट्विटर- – mweylandt
@mweylandt, एक साथी जेफरी के रूप में, यह "आर-ए-वाई" है। लेकिन यह एक साधारण, साफ विधि की तरह लगता है। –
जेफरी ब्रीन मेरे जैसे टेक्स्ट माइनिंग में शुरुआती लोगों के लिए एक उत्कृष्ट गाइड प्रदान करते हैं। मैं पारस द्वारा साझा लिंक पर जाने के लिए प्रोत्साहित करता हूं। उस लिंक से आप प्रोफेसर बिंग लियू वेबसाइट पर जा सकते हैं जो विषय पर विशेष है: [राय खनन, भावना विश्लेषण, और राय स्पैम डिटेक्शन] [1] [1]: http: //www.cs.uic। edu/~ liub/FBS/भावना-विश्लेषण.html सम्मान, रॉड – rodobastias