Dictionary entry

tokenize

verbcomputingtechnical

Last updated

UK/ˈtəʊkənaɪz/
US/ˈtoʊkənaɪz/

Meanings

  1. verbtransitivecomputingtechnical

    To break a text or data stream into separate units (tokens) for analysis by a computer.

    Grammar: Takes an object: tokenize the input.

    Patterns

    • tokenize something
    • tokenize a string
    • tokenize text into words

    The program tokenizes the sentence into individual words and punctuation marks.

    Before searching, the engine tokenizes the document to create an index.

    You need to tokenize the user input to handle each command separately.

  2. verbtransitivecomputingtechnical

    To replace sensitive data with meaningless placeholders (tokens) so the original data is not exposed.

    Grammar: Takes an object: tokenize the credit card numbers.

    Patterns

    • tokenize data
    • tokenize a credit card number
    • tokenize information

    The payment system tokenizes card numbers so that hackers cannot steal them.

    All personal identifiers are tokenized before the records are shared with researchers.

    We tokenize the data at the point of entry to meet privacy rules.

  3. verbtransitivedisapproving

    To include someone from an underrepresented group only for appearance, without giving them real influence.

    Grammar: Often used in the passive: she felt tokenized by the committee.

    Patterns

    • tokenize someone
    • be tokenized by something

    The only woman on the panel felt tokenized when she was asked to speak only about diversity.

    He worried that the company was tokenizing him by putting him in ads but ignoring his ideas.

    Some critics say the film tokenizes its Black characters by giving them no backstory.

Word forms

third person singulartokenizes
past tensetokenized
past participletokenized
-ing formtokenizing

Common combinations

tokenize a string
The function tokenizes a string by splitting it at spaces.
tokenize text
Natural language tools tokenize text before analyzing grammar.
tokenize data
Banks tokenize data to protect customer information.
tokenize input
The parser first tokenizes the input to identify keywords.

Synonyms and how they differ

parse
Parse means to analyze the grammatical structure of a string, while tokenize only splits it into units.
segment
Segment is a more general term for dividing into parts; tokenize is specific to computing and tokens.

Word family

token noun
A single unit produced by tokenizing, such as a word or symbol.
tokenization noun
The process of breaking text into tokens or replacing data with tokens.
tokenizer noun
A tool or program that performs tokenization.

Commonly confused: tokenize or tokenise?

tokenize vs tokenise

British spelling; same meaning.

Practice

Before analyzing the sentence, the software must ______ it into words and punctuation.

Make it your own

Write a sentence using “tokenize”, then check it and compare it with the examples above.

Your sentence stays on this page and is not sent anywhere.

Explore more words