Description Usage Arguments Value
Count occurrences of a focal regex expression (near an adjacent one if specified) in the result of a udpipe part-of-speech tagging process.
1 | count_in_window(text, focal, dictionary, window = c(3, 3))
|
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. |
A numeric value indicating how many times the focal pattern occurred.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.