July 4th Sale
Limited Time Deal: Unlock all premium questions for over 40% off
$10.42$6.25
Ending Soon
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:
...