fst_prepare_conllu {finnsurveytext} | R Documentation |
Read In and format Finnish survey text responses
Description
'fst_prepare_conllu()' produces a dataframe (and saves as csv) containing Finnish survey text reponses in CoNLL-U format with stopwords removed.
Usage
fst_prepare_conllu(data, field, model = "ftb", stopword_list = "nltk")
Arguments
data |
A dataframe of survey responses which contains an open-ended question. |
field |
The field in the dataframe which contains the open-ended question. |
model |
A Finnish language model available for [udpipe], '"ftb"' (default) or '"tdt"'. |
stopword_list |
A valid Finnish stopword list, default is '"nltk"', or '"none"'. |
Value
A dataframe of Finnish text in CoNLL-U format.
Examples
cb <- child_barometer_data
fst_prepare_conllu(data = cb, field = "q7", stopword_list = "stopwords-iso")
unlink("finnish-ftb-ud-2.5-191206.udpipe")
unlink("finnish-tdt-ud-2.5-191206.udpipe")
[Package finnsurveytext version 1.0.0 Index]