Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- getwd()
- d1<-"C:/Users/PGLAB/Documents/abc.txt"
- d<-readLines(d1)
- > d
- [1] "april paris lyrics" "vacation april paris"
- [3] "book disneyland hotel california" "watch harrypotter"
- dd<-as.list(tokenize_words(d))
- >dd
- [[1]]
- [1] "april" "paris" "lyrics"
- [[2]]
- [1] "vacation" "april" "paris"
- [[3]]
- [1] "book" "disneyland" "hotel" "california"
- [[4]]
- [1] "watch" "harrypotter"
- dds<-as.list(dd[[1]])
- [[1]]
- [1] "april"
- [[2]]
- [1] "paris"
- [[3]]
- [1] "lyrics"
Add Comment
Please, Sign In to add comment