## Package version: 2.1.2
## Parallel computing: 2 of 2 threads used.
## See https://quanteda.io for tutorials and examples.
##
## Attaching package: 'quanteda'
## The following object is masked from 'package:utils':
##
## View
## Loading required package: usethis
##
## Attaching package: 'quanteda.textmodels'
## The following object is masked from 'package:quanteda':
##
## data_dfm_lbgexample
##
## Attaching package: 'seededlda'
## The following object is masked from 'package:stats':
##
## terms
##
## Attaching package: 'rsconnect'
## The following object is masked from 'package:devtools':
##
## lint
##
## Attaching package: 'packrat'
## The following objects are masked from 'package:devtools':
##
## install, install_local
R Markdown
#create corpus
## readtext object consisting of 5 documents and 1 docvar.
## # Description: df[,3] [5 × 3]
## doc_id text docvar1
## <chr> <chr> <chr>
## 1 Karenni1.pdf "\" \"..." Karenni1
## 2 Karenni2.pdf "\" Thailand\"..." Karenni2
## 3 Karenni3.pdf "\" \"..." Karenni3
## 4 Karenni4.pdf "\" An Unju\"..." Karenni4
## 5 Karenni5.pdf "\" Kar\"..." Karenni5
#create corpus
## [1] 5
## docvar1
## 1 Karenni1
## 2 Karenni2
## 3 Karenni3
## 4 Karenni4
## 5 Karenni5
## Corpus consisting of 5 documents, showing 5 documents:
##
## Text Types Tokens Sentences docvar1
## Karenni1.pdf 394 895 42 Karenni1
## Karenni2.pdf 489 1230 46 Karenni2
## Karenni3.pdf 1134 3258 109 Karenni3
## Karenni4.pdf 427 941 27 Karenni4
## Karenni5.pdf 239 440 14 Karenni5
#create dfm
## Length Class Mode
## 6390 dfm S4
#Cleaning up using tokens
## Length Class Mode
## Karenni1.pdf 454 -none- character
## Karenni2.pdf 598 -none- character
## Karenni3.pdf 1618 -none- character
## Karenni4.pdf 460 -none- character
## Karenni5.pdf 238 -none- character
#kwic doesn’t work with dfm, so you have to use tokens
| Karenni1.pdf |
16 |
16 |
ht media ltd |
right |
reserv length word |
right |
| Karenni2.pdf |
21 |
21 |
thai new servic |
right |
reserv section regional |
right |
| Karenni2.pdf |
284 |
284 |
shan state peopl |
right |
self-determin senior leader |
right |
| Karenni3.pdf |
11 |
11 |
june friday asiantribune.com |
right |
reserv length word |
right |
| Karenni3.pdf |
813 |
813 |
militari attack human |
right |
abus perpetr tatmadaw |
right |
| Karenni3.pdf |
1467 |
1467 |
love democraci human |
right |
knpp refus make |
right |
| Karenni4.pdf |
19 |
19 |
media compani limit |
right |
reserv section vol |
right |
| Karenni4.pdf |
363 |
363 |
hold upright karenni |
right |
self-determin nation ident |
right |
| Karenni4.pdf |
414 |
414 |
asia director human |
right |
watch recent stress |
right |
| Karenni1.pdf |
1 |
1 |
|
independ |
burmes paper give |
independ |
| Karenni1.pdf |
60 |
60 |
sever friend found |
independ |
kantarawaddi time october |
independ |
| Karenni1.pdf |
235 |
235 |
found water page |
independ |
burmes paper give |
independ |
| Karenni1.pdf |
340 |
340 |
time opposit newspap |
independ |
said targaychild issu |
independ |
| Karenni2.pdf |
10 |
10 |
allianc group fight |
independ |
stronger ever thai |
independ |
| Karenni2.pdf |
59 |
59 |
kilometr want recognis |
independ |
shan state colonel |
independ |
| Karenni2.pdf |
75 |
75 |
burma help fight |
independ |
small man pit |
independ |
| Karenni2.pdf |
106 |
106 |
convict yawd say |
independ |
freedom burma ethnic |
independ |
| Karenni2.pdf |
248 |
248 |
allianc group fight |
independ |
stronger ever yawd |
independ |
| Karenni2.pdf |
582 |
582 |
allianc group fight |
independ |
stronger ever came |
independ |
| Karenni3.pdf |
156 |
156 |
nation-st karenni recogn |
independ |
neighbor state countri |
independ |
| Karenni3.pdf |
208 |
208 |
dougla forsyth recogn |
independ |
four western karenni |
independ |
| Karenni3.pdf |
224 |
224 |
shall remain separ |
independ |
sovereignti govern author |
independ |
| Karenni3.pdf |
335 |
335 |
attend confer karenni |
independ |
countri fear attend |
independ |
| Karenni3.pdf |
348 |
348 |
state risk lose |
independ |
karenni govern also |
independ |
| Karenni3.pdf |
359 |
359 |
join might lose |
independ |
sovereignti februari member |
independ |
| Karenni3.pdf |
374 |
374 |
burma intent form |
independ |
union burma karenni |
independ |
| Karenni3.pdf |
395 |
395 |
allianc burma gain |
independ |
made clear interest |
independ |
| Karenni3.pdf |
402 |
402 |
discuss propos constitut |
independ |
burma want luxembourg |
independ |
| Karenni3.pdf |
435 |
435 |
establish unite karenni |
independ |
state council septemb |
independ |
| Karenni3.pdf |
460 |
460 |
alreadi decid safeguard |
independ |
self-determin karenni state |
independ |
| Karenni3.pdf |
496 |
496 |
old tradit entir |
independ |
carri day current |
independ |
| Karenni3.pdf |
540 |
540 |
burma hurri obtain |
independ |
januari 4th short |
independ |
| Karenni3.pdf |
707 |
707 |
karenni histor claim |
independ |
creat rift karenni |
independ |
| Karenni3.pdf |
731 |
731 |
indigen group follow |
independ |
britain democraci last |
independ |
| Karenni3.pdf |
1156 |
1156 |
karenni separatist caus |
independ |
negoti british connect |
independ |
| Karenni3.pdf |
1429 |
1429 |
educ mass crucial |
independ |
also maintain valu |
independ |
| Karenni4.pdf |
374 |
374 |
upon releas given |
independ |
judiciari stark question |
independ |
| Karenni5.pdf |
196 |
196 |
sinc myanmar gain |
independ |
britain end 1990s |
independ |
| Karenni3.pdf |
628 |
628 |
struggl make motherland |
free |
oppress govern burma |
free |
| Karenni4.pdf |
426 |
426 |
militari civilian offici |
free |
prosecut theatr troup |
free |
| Karenni3.pdf |
343 |
343 |
sponsor peopl british |
coloni |
shan state risk |
coloni |
| Karenni3.pdf |
580 |
580 |
sinc karenni state |
occupi |
forc karenni episod |
occupi |
| Karenni3.pdf |
614 |
614 |
success burmes govern |
occupi |
karenni state exploit |
occupi |
| Karenni1.pdf |
143 |
143 |
karenni nation peopl |
liber |
front knplf karenni |
liber |
| Karenni3.pdf |
1242 |
1242 |
karenni nation peopl |
liber |
front knplf sign |
liber |
| Karenni3.pdf |
1512 |
1512 |
grant econom polit |
liber |
make peac accord |
liber |
| Karenni3.pdf |
242 |
242 |
seri three anglo-burman |
war |
british ethnic state |
war |
| Karenni3.pdf |
271 |
271 |
occup forc world |
war |
ii great cost |
war |
| Karenni3.pdf |
1331 |
1331 |
junta broke promis |
war |
carri also belong |
war |
| Karenni3.pdf |
522 |
522 |
countri rate ethnic |
cleans |
doubt whether karenni |
cleans |
| Karenni3.pdf |
1109 |
1109 |
educ worst ethnic |
cleans |
tatmadaw led myanmar |
cleans |
| Karenni3.pdf |
1358 |
1358 |
econom pie ethnic |
cleans |
success karenni state |
cleans |
## Tokens consisting of 5 documents and 1 docvar.
## Karenni1.pdf :
## [1] "independ" "burmes" "paper" "give" "voic"
## [6] "refuge" "indo-asian" "new" "servic" "october"
## [11] "sunday" "est"
## [ ... and 442 more ]
##
## Karenni2.pdf :
## [1] "thailand" "myanmar" "burma" "rebel" "leader" "say"
## [7] "allianc" "group" "fight" "independ" "stronger" "ever"
## [ ... and 586 more ]
##
## Karenni3.pdf :
## [1] "genuin" "peac" "divid" "rule"
## [5] "tactic" "asian" "tribun" "june"
## [9] "friday" "asiantribune.com" "right" "reserv"
## [ ... and 1,606 more ]
##
## Karenni4.pdf :
## [1] "unjust" "sentenc" "karenni" "verdict" "rais" "question"
## [7] "defenc" "ethnic" "ident" "mizzima" "busi" "week"
## [ ... and 448 more ]
##
## Karenni5.pdf :
## [1] "karenni" "rebel" "commit" "arm" "struggl" "despit" "defect"
## [8] "report" "agenc" "franc" "press" "english"
## [ ... and 226 more ]
Karenni.tokens2
#create dfm from first tokenized steps
#word cloud 
#co-occurance
## displac govern leader cent per popul karenni junta rule forc
## 15582 13080 11506 10676 10612 10242 8016 7739 7725 7502
## [1] "displac" "govern" "leader" "cent" "per" "popul"
## [7] "karenni" "junta" "rule" "forc" "make" "peopl"
## [13] "peac" "state" "number" "knpp" "tatmadaw" "british"
## [19] "burma" "shan" "histori" "world" "movement" "myanmar"
## [25] "want"
