Difference between revisions of "R: Package Pendukung Text Processing"

From OnnoWiki
Jump to navigation Jump to search
Line 3: Line 3:
 
  sudo apt update
 
  sudo apt update
 
  sudo apt install libudunits2-dev libcurl4-openssl-dev libssl-dev libxml2-dev
 
  sudo apt install libudunits2-dev libcurl4-openssl-dev libssl-dev libxml2-dev
 +
 +
Download data dari
 +
 +
https://github.com/kwartler/text_mining/archive/master.zip
 +
wget https://github.com/kwartler/text_mining/archive/master.zip
 +
unzip master.zip
 +
cd text-mining-master
 +
  
 
Di R
 
Di R
Line 9: Line 17:
 
  install.packages("ggraph")
 
  install.packages("ggraph")
 
  install.packages("ggplot2")
 
  install.packages("ggplot2")
 +
install.packages("ggthemes")
 
  install.packages("igraph")
 
  install.packages("igraph")
 +
install.packages("NLP")
 
  install.packages("tidytext")
 
  install.packages("tidytext")
 
  install.packages("tidyverse")
 
  install.packages("tidyverse")
Line 19: Line 29:
 
  library(ggraph)
 
  library(ggraph)
 
  library(ggplot2)
 
  library(ggplot2)
 +
library(NLP)
 
  library(tm)
 
  library(tm)
 
  library(tidytext)      # provides additional text mining functions
 
  library(tidytext)      # provides additional text mining functions

Revision as of 07:48, 1 November 2018

Di Shell

sudo apt update
sudo apt install libudunits2-dev libcurl4-openssl-dev libssl-dev libxml2-dev

Download data dari

https://github.com/kwartler/text_mining/archive/master.zip
wget https://github.com/kwartler/text_mining/archive/master.zip
unzip master.zip
cd text-mining-master


Di R

install.packages("dplyr")
install.packages("ggraph")
install.packages("ggplot2")
install.packages("ggthemes")
install.packages("igraph")
install.packages("NLP")
install.packages("tidytext")
install.packages("tidyverse")
install.packages("tm")
install.packages("stringr")
library(dplyr)
library(igraph)
library(ggraph)
library(ggplot2)
library(NLP)
library(tm)
library(tidytext)       # provides additional text mining functions
library(tidyverse)      # data manipulation & plotting
library(scales)
library(stringr)        # text cleaning and regular expressions

Pranala Menarik