It’s not enough to just know that the words exist: For a machine to truly read and understand a sentence, they would need to have a grasp on context as well. Take for example the following sentence:
By the time he arrived, she had had dinner.
For a machine to understand the difference in meaning between the first had (meaning already) and the second had (meaning eaten), it would have to know a bit more than just assigning a token.
While there are many ways to do this, the most popular way these days is arguably by using
Transformers: A mathematical sort of magic that allows computers to ‘understand’ words based on the words that appear around them. The result? A machine with a pretty good grasp of how human language works.