<p><div><div><div><div data-width="100" data-show-faces="false" data-send="true" data-layout="button_count" data-height="21" data-href="https://www.r-bloggers.com/sentiment-analysis-and-parts-of-speech-tagging-in-dutchfrenchenglishgermanspanishitalian/"></div></div><div><a data-url="https://www.r-bloggers.com/sentiment-analysis-and-parts-of-speech-tagging-in-dutchfrenchenglishgermanspanishitalian/" data-counturl="https://www.r-bloggers.com/sentiment-analysis-and-parts-of-speech-tagging-in-dutchfrenchenglishgermanspanishitalian/" data-count="horizontal" data-text="Sentiment analysis and Parts of Speech tagging in Dutch/French/English/German/Spanish/Italian" class="twitter-share-button" data-via="rbloggers" href="https://twitter.com/share"></a></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="http://www.bnosac.be/index.php/blog/60-sentiment-analysis-and-parts-of-speech-tagging-in-dutch-french-english-german-spanish-italian"> BNOSAC - Belgium Network of Open Source Analytical Consultants</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<div>
<p>As part of our continuing effort to digitise poetry and to automate new forms of poetry, we released an R package called <strong>pattern.nlp</strong>, which is available at <a target="_blank" href="https://github.com/bnosac/pattern.nlp">https://github.com/bnosac/pattern.nlp</a> . It allows R users to do sentiment analysis and Parts of Speech tagging for text written in Dutch, French, English, German, Spanish or Italian. Of course this can also be used for other purposes like data preparation as part of a topic modelling flow.</p>
<p><img src="https://i0.wp.com/github.com/bnosac/pattern.nlp/blob/master/inst/img/pattern-nlp-logo.png?resize=298%2C81&ssl=1" data-recalc-dims="1"></p>
<p>If you are interested in text mining, feel free to register for the text mining courses listed at <a target="_blank" href="http://www.bnosac.be/index.php?option=com_content&view=article&id=59:text-mining-with-r-upcoming-training-schedule&catid=8:blog&Itemid=107">our last blog post.</a></p>
<p>If you just want to do sentiment analysis and POS tagging in these 5 European languages, go ahead as follows. <strong>Sentiment analysis is available for Dutch, French &amp; English</strong>.</p>
<div>
<div>
<pre>library(pattern.nlp)<br><br>## Sentiment analysis<br>x &lt;- pattern_sentiment(&quot;i really really hate iphones&quot;, language = &quot;english&quot;)<br>y &lt;- pattern_sentiment(&quot;de wereld is een mooie plaats, nietwaar sherlock&quot;, language = &quot;dutch&quot;)<br>z &lt;- pattern_sentiment(&quot;j'aime Paris, c'est super&quot;, language = &quot;french&quot;)<br>rbind(x, y, z)<br><br>polarity subjectivity                                               id<br>   -0.80         0.90                     i really really hate iphones<br>    0.70         1.00 de wereld is een mooie plaats, nietwaar sherlock<br>    0.65         0.75                        j'aime Paris, c'est super<br>
</pre>
</div>
</div>
<p><strong>Parts of Speech tagging is available for Dutch, French, English, Spanish &amp; Italian.</strong></p>
<div>
<div>
<pre>library(pattern.nlp)<br><br>x &lt;- &quot;Il pleure dans mon coeur comme il pleut sur la ville. Quelle est cette langueur qui penetre mon coeur?&quot;<br>pattern_pos(x = x, language = 'french')<br><br>x &lt;- &quot;Avevamo vegliato tutta la notte - i miei amici ed io sotto lampade <br>  di moschea dalle cupole di ottone traforato, stellate come le nostre anime, <br>  perché come queste irradiate dal chiuso fulgòre di un cuore elettrico.&quot;<br>pattern_pos(x = x, language = 'italian')<br>
</pre>
</div>
</div>
<p><img alt="pos-example1" src="https://i2.wp.com/www.bnosac.be/images/blog/pos-example1.png?resize=456%2C167" data-recalc-dims="1"></p>
<p> </p>
<p>We are also working on a Dutch wordnet – which will be fully released in due date. More information at <a target="_blank" href="https://github.com/weRbelgium/wordnet.dutch">https://github.com/weRbelgium/wordnet.dutch</a>.<br data-mce-bogus="1">Hope you use the package for spreading new languages!</p>
</div>
<p><div><div><div><div data-width="55" data-show-faces="false" data-send="true" data-layout="box_count" data-height="62" data-href="https://www.r-bloggers.com/sentiment-analysis-and-parts-of-speech-tagging-in-dutchfrenchenglishgermanspanishitalian/"></div></div><div><a data-url="https://www.r-bloggers.com/sentiment-analysis-and-parts-of-speech-tagging-in-dutchfrenchenglishgermanspanishitalian/" data-counturl="https://www.r-bloggers.com/sentiment-analysis-and-parts-of-speech-tagging-in-dutchfrenchenglishgermanspanishitalian/" data-count="vertical" data-text="Sentiment analysis and Parts of Speech tagging in Dutch/French/English/German/Spanish/Italian" class="twitter-share-button" data-via="rbloggers" href="https://twitter.com/share"></a></div><div></div></div><div></div></div>
<div>
<div>To <strong>leave a comment</strong> for the author, please follow the link and comment on their blog: <strong><a href="http://www.bnosac.be/index.php/blog/60-sentiment-analysis-and-parts-of-speech-tagging-in-dutch-french-english-german-spanish-italian"> BNOSAC - Belgium Network of Open Source Analytical Consultants</a></strong>.</div>
<hr>
<a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers.com</a> offers <strong><a rel="nofollow" href="https://feedburner.google.com/fb/a/mailverify?uri=RBloggers">daily e-mail updates</a></strong> about <a title="The R Project for Statistical Computing" rel="nofollow" href="https://www.r-project.org/">R</a> news and <a title="R tutorials" rel="nofollow" href="https://www.r-bloggers.com/?s=tutorial">tutorials</a> on topics such as: <a title="Data science" rel="nofollow" href="https://www.r-bloggers.com/?s=data%20science">Data science</a>, <a title="Big Data" rel="nofollow" href="https://www.r-bloggers.com/?s=Big%20Data">Big Data, <a title="R jobs" rel="nofollow" href="https://www.r-users.com/">R jobs</a>, visualization (<a title="ggplot and ggplot2 tutorials" rel="nofollow" href="https://www.r-bloggers.com/?s=ggplot2">ggplot2</a>, <a title="Boxplots using lattice and ggplot2 tutorials" rel="nofollow" href="https://www.r-bloggers.com/?s=boxplot">Boxplots</a>, <a title="Maps and gis" rel="nofollow" href="https://www.r-bloggers.com/?s=map">maps</a>, <a title="Animation in R" rel="nofollow" href="https://www.r-bloggers.com/?s=animation">animation</a>), programming (<a title="RStudio IDE for R" rel="nofollow" href="https://www.r-bloggers.com/?s=RStudio">RStudio</a>, <a title="Sweave and literate programming" rel="nofollow" href="https://www.r-bloggers.com/?s=sweave">Sweave</a>, <a title="LaTeX in R" rel="nofollow" href="https://www.r-bloggers.com/?s=LaTeX">LaTeX</a>, <a title="SQL and databases" rel="nofollow" href="https://www.r-bloggers.com/?s=SQL">SQL</a>, <a title="Eclipse IDE for R" rel="nofollow" href="https://www.r-bloggers.com/?s=eclipse">Eclipse</a>, <a title="git and github, Version Control System" rel="nofollow" href="https://www.r-bloggers.com/?s=git">git</a>, <a title="Large data in R using Hadoop" rel="nofollow" href="https://www.r-bloggers.com/?s=hadoop">hadoop</a>, <a title="Web Scraping of google, facebook, yahoo, twitter and more using R" rel="nofollow" href="https://www.r-bloggers.com/?s=Web+Scraping">Web Scraping</a>) statistics (<a title="Regressions and ANOVA analysis tutorials" rel="nofollow" href="https://www.r-bloggers.com/?s=regression">regression</a>, <a title="principal component analysis tutorial" rel="nofollow" href="https://www.r-bloggers.com/?s=PCA">PCA</a>, <a title="Time series" rel="nofollow" href="https://www.r-bloggers.com/?s=time+series">time series</a>, <a title="finance trading" rel="nofollow" href="https://www.r-bloggers.com/?s=trading">trading</a>) and more...
<img height="1" alt="" width="1" src="http://feeds.feedburner.com/~r/RBloggers/~4/JzhrNUHDfNI"></a></div>