{"action":"created","issue":{"url":"https://api.github.com/repos/trinker/qdap/issues/208","labels_url":"https://api.github.com/repos/trinker/qdap/issues/208/labels{/name}","comments_url":"https://api.github.com/repos/trinker/qdap/issues/208/comments","events_url":"https://api.github.com/repos/trinker/qdap/issues/208/events","html_url":"https://github.com/trinker/qdap/issues/208","id":81931930,"number":208,"title":"Sentiment analysis with qdap","user":{"login":"stripathi08","id":9280426,"avatar_url":"https://avatars.githubusercontent.com/u/9280426?v=3","gravatar_id":"","url":"https://api.github.com/users/stripathi08","html_url":"https://github.com/stripathi08","followers_url":"https://api.github.com/users/stripathi08/followers","following_url":"https://api.github.com/users/stripathi08/following{/other_user}","gists_url":"https://api.github.com/users/stripathi08/gists{/gist_id}","starred_url":"https://api.github.com/users/stripathi08/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stripathi08/subscriptions","organizations_url":"https://api.github.com/users/stripathi08/orgs","repos_url":"https://api.github.com/users/stripathi08/repos","events_url":"https://api.github.com/users/stripathi08/events{/privacy}","received_events_url":"https://api.github.com/users/stripathi08/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-28T13:43:19Z","updated_at":"2015-05-28T15:17:35Z","closed_at":"2015-05-28T13:48:58Z","body":"I am trying to do a sentiment analysis using the package and I want quite a few words to be adjudged as positive and negative words while calculating polarity. When I use sentiment_frame, it only uses the frame and not qdap dictionaries.\r\nIs their a way i can use both my words with the set inbuilt package's words?   \r\nHere's an example - \r\n\r\nAn example -\r\n\r\n> corpus<- \"He is a liar.\"\r\n> frame<- sentiment_frame(\"liar\",\"hater\",pos.weights=1, neg.weights=-1)\r\n> z<- counts(polarity(corpus, polarity.frame=frame))\r\n> z\r\n  all wc polarity pos.words neg.words      text.var\r\n1 all  4      0.5      liar         - He is a liar.\r\n> corpus<- \"He is a good liar.\"\r\n> frame<- sentiment_frame(\"liar\",\"hater\",pos.weights=1, neg.weights=-1)\r\n> z<- counts(polarity(corpus, polarity.frame=frame))\r\n> z\r\n  all wc polarity pos.words neg.words           text.var\r\n1 all  5    0.447      liar         - He is a good liar.\r\n\r\nWhy is the polarity decreasing?"},"comment":{"url":"https://api.github.com/repos/trinker/qdap/issues/comments/106398164","html_url":"https://github.com/trinker/qdap/issues/208#issuecomment-106398164","issue_url":"https://api.github.com/repos/trinker/qdap/issues/208","id":106398164,"user":{"login":"trinker","id":1763278,"avatar_url":"https://avatars.githubusercontent.com/u/1763278?v=3","gravatar_id":"","url":"https://api.github.com/users/trinker","html_url":"https://github.com/trinker","followers_url":"https://api.github.com/users/trinker/followers","following_url":"https://api.github.com/users/trinker/following{/other_user}","gists_url":"https://api.github.com/users/trinker/gists{/gist_id}","starred_url":"https://api.github.com/users/trinker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trinker/subscriptions","organizations_url":"https://api.github.com/users/trinker/orgs","repos_url":"https://api.github.com/users/trinker/repos","events_url":"https://api.github.com/users/trinker/events{/privacy}","received_events_url":"https://api.github.com/users/trinker/received_events","type":"User","site_admin":false},"created_at":"2015-05-28T15:17:35Z","updated_at":"2015-05-28T15:17:35Z","body":"I think the relevant line from the documentation is:\r\n\r\n> Last, these context cluster (x_i^T) are summed and divided by the square root of the word count (√n)"}}