Guest User

Untitled

a guest
Oct 21st, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. getwd()
  2. d1<-"C:/Users/PGLAB/Documents/abc.txt"
  3. d<-readLines(d1)
  4. > d
  5. [1] "april paris lyrics" "vacation april paris"
  6.  
  7. [3] "book disneyland hotel california" "watch harrypotter"
  8.  
  9. dd<-as.list(tokenize_words(d))
  10. >dd
  11. [[1]]
  12. [1] "april" "paris" "lyrics"
  13.  
  14. [[2]]
  15. [1] "vacation" "april" "paris"
  16.  
  17. [[3]]
  18. [1] "book" "disneyland" "hotel" "california"
  19.  
  20. [[4]]
  21. [1] "watch" "harrypotter"
  22.  
  23. dds<-as.list(dd[[1]])
  24. [[1]]
  25. [1] "april"
  26.  
  27. [[2]]
  28. [1] "paris"
  29.  
  30. [[3]]
  31. [1] "lyrics"
Add Comment
Please, Sign In to add comment