lucene_to_re: Change a (simple) lucene query to a regular expression

Description Usage Arguments Value

View source: R/codebook.r

Description

It is assumed that this will be used to filter single words/lemmata, so the query should only consist of a list of synonyms with optional wildcards. E.g. a query like (many* words*) is fine, but many AND words or "many words" will give an error.

Usage

1
lucene_to_re(queries, names = NULL)

Arguments

queries

a character vector containing the queries

names

an optional vector of the same length as queries containing names for the concepts

Value

a character vector of regular expressions, with names added if given


amcat/amcat-r documentation built on Dec. 26, 2021, 3:12 a.m.