Function for reading in concordances created with NoSketchEngine.

getNSE(filename, xml, tags, context_tags, verbose = TRUE)

Arguments

filename

Path to the original concordance file.

xml

Boolean: Is the export file an XML or a TXT file? (If missing, the function will try to determine this automatically.) Using XML files instead of TXT files is strongly recommended: The identification of KWIC columns can be problematic in the latter as pointed brackets (< / >) are used as separators in the TXT export files, but they sometimes also occur in the concordance text.

tags

Boolean: Does the concordance file contain tags (lemma, pos, ...) for the keyword(s)? If missing, the function will try to determine automatically if there are tags.

context_tags

Boolean: Does the concordance file contain tags (lemma, pos, ...) for the context? If missing, the function will try to determine automatically if there are tags.

verbose

Boolean: If TRUE (the default), the function will display occasional status updates, which can helpful in the case of large files.

Value

A KWIC data frame or a KWIC csv sheet.