loading

How Synonyms Work| Hitchhikers Platform

What You’ll Learn

In this section, you will learn:

  • How the answers algorithm deals with synonyms

Overview

So how do synonyms actually work within the context of the Answers algorithm?

One Way Synonyms

Let’s walk through how a one-way synonym would be treated.

  1. For a single query, we take each word, and every combination of sequential words, and check if a synonym exists for that phrase. Using the synonyms that are defined in the backend configuration, the algorithm produces “expanded” versions of the query - e.g., replacing the parts of the query with matching synonyms.

    Example:

    • Original Search Term: “Career information”
    • Synonyms: “career” → “Job”,

    Expanded Search Terms:

    • “Career information”
    • “Job information”
  2. Find Potential Matches using natural language processing: Answers then conducts a search using the expanded versions of the query. In looking for matches, it searches across textSearch and NLP searchable fields.

    • Taking the above example, Answers searches all verticals for both “career information” and “job information” looking for matches in any pre-defined searchable fields.
  3. Return the Best Results: The Answers Algorithm determines the best results and returns them. This might be a match for the original query (“career information”), or for any of the expanded search terms (“job information”).

  4. Do other full text search: Return other entities using full text search from the original query (just as if the synonyms weren’t there).

Synonym Sets

Now that you understand how one-way synonyms work - you also understand how synonym sets work. The only difference between the two is that sets expand in both directions. We are essentially just creating many one-way synonyms for all permutations of the set!

unit Quiz
+20 points
Daily Quiz Streak Daily Quiz Streak: 0
Quiz Accuracy Streak Quiz Accuracy Streak: 0
    Error Success Question 1 of 2

    How do synonyms work?

    Error Success Question 2 of 2

    True or False: Synonym Sets work the same as one-way synonyms, they just expand in both directions.

    Soon you'll be your brand's hero! 🎓

    You've already completed this quiz, so you can't earn more points.You completed this quiz in 1 attempt and earned 0 points! Feel free to review your answers and move on when you're ready.
1st attempt
0 incorrect
Splash Loading