fst_format_conllu {finnsurveytext}R Documentation

Annotate open-ended survey responses in Finnish into CoNLL-U format

Description

Creates a dataframe in CoNLL-U format from a list of strings of Finnish text using the [udpipe] package and a Finnish language model.

Usage

fst_format_conllu(data, field, model = "ftb")

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"'.

Value

Dataframe of annotated text in CoNLL-U format.

Examples


fst_format_conllu(data = child_barometer_data, field = "q7")
fst_format_conllu(data = child_barometer_data, field = "q7", model = "tdt")
unlink("finnish-ftb-ud-2.5-191206.udpipe")
unlink("finnish-tdt-ud-2.5-191206.udpipe")


[Package finnsurveytext version 1.0.0 Index]