count_in_window: Count occurrences of a focal regex expression (near an...

Description Usage Arguments Value

Description

Count occurrences of a focal regex expression (near an adjacent one if specified) in the result of a udpipe part-of-speech tagging process.

Usage

1
count_in_window(text, focal, dictionary, window = c(3, 3))

Arguments

text

character. Text.

focal

regex pattern. Pattern around which the adjacent pattern has to be detected within the window.

dictionary

dataframe. 2 variables: pattern and category. Specify and classify regex patterns.

window

numeric vector. Two values: one indicating the beginning of the window from the focal pattern, and one indicating the end.

Value

A numeric value indicating how many times the focal pattern occurred.


NicolasJBM/lexana documentation built on July 3, 2019, 10 a.m.