xmi2df: xmi2df

View source: R/xmi2df.R

xmi2dfR Documentation

xmi2df

Description

extract annotations from inception export (provided as xmi)

Usage

xmi2df(xmi_file, key = "custom")

Arguments

xmi_file

xmi-file as provided by inception export

key

vector of keywords in questions (default set to 'custom' annotations)

Value

returns dataframe with queried annotations

Examples

## Not run: 
xmi_files <- list.files(".", pattern = "\\.xmi$", recursive = T)
df <- xmi2df(xmi_files[1])
df <- xmi2df(xmi_files[1], c("custom", "Sentence"))
df <- purrr::map_df(xmi_files[1:3], xmi2df, key = c("custom", "Sentence"), .id = "file")

## End(Not run)

nicoblokker/inception-to-r documentation built on June 4, 2023, 12:20 a.m.