getNSE: Read in concordances created with NoSketchEngine (in...

View source: R/getNSE.R

getNSER Documentation

Read in concordances created with NoSketchEngine (in particular, the NSE installation used by the COW corpora)

Description

Function for reading in concordances created with NoSketchEngine.

Usage

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.


hartmast/concordances documentation built on April 19, 2023, 9:39 p.m.