Chapter 2. Generating synonyms
This chapter covers
- Why and how synonyms are used in search
- A brief introduction to Apache Lucene
- Fundamentals of feed-forward neural networks
- Using a word2vec algorithm
- Generating synonyms using word2vec
Chapter 1 gave you a high-level overview of the kinds of possibilities that open up when deep learning is applied to search problems. Those possibilities include using deep neural networks to search for images via a text query based on its content, generating text queries in natural language, and so on. You also learned about the basics of search engines and how they conduct searches from queries and deliver relevant results. You’re now ready to start applying deep neural networks to solve search problems.
In this chapter, we’ll begin with a shallow (not deep) neural network that can help you identify when two words are similar in semantics. This seemingly easy task is crucial for giving a search engine the ability to understand language.