chunk

Purpose

Finds documents that contain arguments within a chunk (the simplest syntactically connected unit, such as a noun or verb phrase).

Syntax

chunk()

chunk([chunk_type,] term1, term2, …​)

Arguments

This function has no required arguments. When called without arguments, the function matches all chunks. The first optional argument chunk_type specifies the chunk’s type:

np/pnou - noun phrase (internal data, the Harvard Graduate School…​)

vp/pver - verb phrase (should not become, can be developed…​)

jp/padj - adjectival phrase (very confident, most essential…​)

rp/padv - adverbial phrase (most often..)

pp/ppre - prepositional phrase (about, for, at…​)

sp/psub - conjunctional phrase (if, unless…​)

If the chunk type is specified, the arguments of the function can be omitted. In this case function matches all chunks of the specified type.

  • The other arguments define the terms to search for.

The function also supports optional named parameters:

  • allow_punct:=yes/no allows or prohibits punctuation between arguments (set to "yes" by default);

  • allow_space:=yes/no allows or prohibits spaces between arguments (set to "no" by default);

  • match:=range matches text range starting from the first found term and ending with the last found term.

  • whole:=yes matches chunks made up only by the query arguments.

Note

You can check the actual chunk tags of the data by using the Text Tagger node.

Returned Value

Documents matching the query.

Examples

chunk() matches all chunks.

chunk(criminal, case) = chunk(case, criminal) matches a combination "criminal case" in the sentences "This system could revert to a focus on lower-priority criminal justice cases over national security requirements", "Attorneys handle no criminal cases";

chunk(np, company, match:=range) matches noun phrases with the word "company", e.g., "his company’s 3-D face-recognition technology", "Company News", "the Company’s Annual Report";

chunk(np) matches all noun phrases, e.g., "additional relevant information", "this event", "the device", "all my expenses";

chunk(jp) matches all adjectival phrases, e.g., "very fast", "more immediate", "simple and elegant", "Australian Financial Review" and isolated adjectives;

chunk(vp) matches all verb phrases, e.g., "expected to go", "has signed", "want to destroy" and isolated verbs.

chunk(rp) matches all adverbial phrases, e.g., "most recently", "When and how" and isolated adverbs.

chunk(cash, offer) matches "cash tender offer", "cash offer".

chunk(cash, offer, whole:=yes) matches "cash offer".