xmi2df | R Documentation |
extract annotations from inception export (provided as xmi)
xmi2df(xmi_file, key = "custom")
xmi_file |
xmi-file as provided by inception export |
key |
vector of keywords in questions (default set to 'custom' annotations) |
returns dataframe with queried annotations
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.