younifyd
Menu

Tokenize text

Tokenize text

POST/v1/tokenize

Use it in a workflow

  1. Add a step and choose the Weaviate connector.
  2. Pick the Tokenize text action (under tokenize).
  3. Fill in the fields below, then reference the result from later steps as {{tokenizeText.response.data}}.

Request

Request body

Enter the body as JSON in the step's Body field.

textstringrequired

The text to tokenize.

tokenizationstringrequired

The tokenization method to apply.

One ofwordlowercasewhitespacefieldtrigramgsekagome_krkagome_jagse_ch

analyzerConfigobject

Text analysis options for a property. These settings are immutable after the property is created. Applies only to text and text[] data types that use an inverted index (searchable or filterable).

asciiFoldboolean

If true, accent/diacritic marks are folded to their base characters during indexing and search. For example, 'école' matches 'ecole'. Defaults to false.

asciiFoldIgnorearray<string>

If provided, specifies a list of characters that should be excluded from ascii folding. For example, if ['é'] is provided, then 'é' will not be folded to 'e' during indexing and search. This list is immutable after the property is created.

stopwordPresetstring

Stopword preset name. Overrides the collection-level invertedIndexConfig.stopwords for this property. Only applies to properties using 'word' tokenization. Can be a built-in preset ('en', 'none') or a user-defined preset from invertedIndexConfig.stopwordPresets.

stopwordsobject

Fine-grained control over stopword list usage.

presetstring

Pre-existing list of common words by language (default: `en`). Options: [`en`, `none`].

additionsarray<string>

Stopwords to be considered additionally (default: []). Can be any array of custom strings.

removalsarray<string>

Stopwords to be removed from consideration (default: []). Can be any array of custom strings.

stopwordPresetsobject

Optional user-defined named stopword presets. Shape matches InvertedIndexConfig.stopwordPresets on a collection: each key is a preset name, each value is a plain list of stopwords. A preset name that matches a built-in ('en', 'none') fully replaces the built-in. Preset names must not be empty or whitespace-only; each word list must contain at least one word; individual words must not be empty or whitespace-only. Mutually exclusive with stopwords — pass one or the other, not both.

json
{
  "text": "string",
  "tokenization": "word",
  "analyzerConfig": {
    "asciiFold": false,
    "asciiFoldIgnore": [
      "string"
    ],
    "stopwordPreset": "string"
  },
  "stopwords": {
    "preset": "string",
    "additions": [
      "string"
    ],
    "removals": [
      "string"
    ]
  },
  "stopwordPresets": {}
}

Response

Returns 200 with a any. Read it in later steps with {{tokenizeText.response.data.<field>}}.

Need more? See the Weaviate guide for connection setup and behaviour shared by every action.