Sentimental Analysis of review comments using qdap is slow
<p>Am using <strong>qdap</strong> package to determine the sentiment of each review comment of a particular application. I read the review comments from a CSV file and pass it to the polarity function of qdap. Everything works fine and I get the polarity for all the review comments but the problem is that it takes 7-8 seconds to calculate the polarity all the sentences (total number of sentences present in the CSV file is 779). I am pasting my code below.</p>

<pre><code>  temp_csv &lt;- filePath()
  attach(temp_csv)
  text_data &lt;- temp_csv[,c('Content')]
  print(Sys.time())
  polterms &lt;- list(neg=c('wtf'))
  POLKEY &lt;- sentiment_frame(positives=c(positive.words),negatives=c(polterms[[1]],negative.words))     
  polarity &lt;- polarity(sentences, polarity.frame = POLKEY) 
  print(Sys.time())
</code></pre>

<p>Time taken is as follows:</p>

<p>[1] "2016-04-12 16:43:01 IST"</p>

<p>[1] "2016-04-12 16:43:09 IST"</p>

<p>Can somebody let me know if I am doing something wrong?
How can I improve the performance?</p>