From 4b8be7672571b551b067ef1e8629edcbb16e356a Mon Sep 17 00:00:00 2001 From: adjscent Date: Sun, 21 Apr 2019 10:47:00 +0800 Subject: [PATCH] patch query expansion back to syn --- QueryExpansion.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/QueryExpansion.py b/QueryExpansion.py index 67ecbb6..36c0927 100644 --- a/QueryExpansion.py +++ b/QueryExpansion.py @@ -112,11 +112,11 @@ def get_new_query_strings(line): newlinelist.append(token) result.append(convert_list_to_string(newlinelist)) - ##### 4. NO BOOL Wordnet Hyponym + ##### 4. NO BOOL Wordnet Synonyms newlinelist = [] for token in stokens: if token != AND: - thesaurized = hyponymise_term(token) + thesaurized = thesaurize_term(token) if len(thesaurized) > 0: newlinelist += thesaurized else: