</>OfferRetriever
DashboardDiscuss
NEW

Spring Hire Sale

Limited Time Deal: Unlock all premium questions for over 30% off

$10.42$7.08

08

:

06

:

28

:

36

Get this deal
Back to Dashboard

Longest Match Tokenizer

Medium

You are given a text string text and a dictionary array where each element is in the format "<key>:<id>". Here key is a token string and id is its corresponding identifier.

Implement a function that segments text into tokens using the following rules: ...