Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- return [word_to_id[word] for word in data if word in word_to_id]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement