fst_pos_compare {finnsurveytext} | R Documentation |
Compare parts-of-speech
Description
Compare words in responses based on part-of-speech tagging for between 2 and 4 sets of prepared data.
Usage
fst_pos_compare(
data1,
data2,
data3 = NULL,
data4 = NULL,
name1 = "Group 1",
name2 = "Group 2",
name3 = "Group 3",
name4 = "Group 4"
)
Arguments
data1 |
A dataframe of text in CoNLL-U format for the first group. |
data2 |
A dataframe of text in CoNLL-U format for the second group. |
data3 |
An optional dataframe of text in CoNLL-U format for the third group, default is 'NULL'. |
data4 |
An optional dataframe of text in CoNLL-U format for the fourth group, default is 'NULL'. |
name1 |
An optional "name" for the first group, default is '"Group 1"'. |
name2 |
An optional "name" for the second group, default is '"Group 2"'. |
name3 |
An optional "name" for the third group, default is '"Group 3"'. |
name4 |
An optional "name" for the fourth group, default is '"Group 4"'. |
Value
Table of POS tag counts for the groups.
Examples
f <- conllu_dev_q11_1_f_nltk
m <- conllu_dev_q11_1_m_nltk
na <- conllu_dev_q11_1_na_nltk
all <- conllu_dev_q11_1_nltk
fst_pos_compare(f, m, na, all, "Female", "Male", "Not Spec.", "All")
fst_pos_compare(f, m, name1 = "Female", name2 = "Male")
[Package finnsurveytext version 1.0.0 Index]