Natural Language Processing with Python and spaCy by Yuli Vasiliev

Natural Language Processing with Python and spaCy by Yuli Vasiliev

Author:Yuli Vasiliev
Language: eng
Format: epub
Publisher: No Starch Press
Published: 2020-07-15T00:00:00+00:00


Walking a Dependency Tree for Information Extraction

Let’s return to the ticket-booking application example. To find a user’s intended destination, you might need to iterate over the dependency tree of a sentence to determine whether “to” is semantically related to “Berlin.” This is easy to accomplish if you remember the head/child syntactic relations that compose a dependency tree, which was introduced in the “Head and Child” box on page 25.

Figure 6-3 shows the dependency tree for the sentence, “I am going to the conference in Berlin”:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.