Spring Hire Sale
Limited Time Deal: Unlock all premium questions for over 30% off
$10.42$7.08
08
:
04
:
38
:
47
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:
...