DrishtiSharma commited on
Commit
85d7970
Β·
verified Β·
1 Parent(s): c9c0197

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -8
app.py CHANGED
@@ -180,16 +180,17 @@ def escape_markdown(text):
180
 
181
  # Synonym mapping for flexible query understanding
182
  COLUMN_SYNONYMS = {
183
- "job_title": ["job title", "job role", "role", "designation", "position", "job responsibility"],
184
- "experience_level": ["experience level", "seniority", "experience", "career stage"],
185
- "employment_type": ["employment type", "job type", "contract type"],
186
- "salary_in_usd": ["salary", "income", "earnings", "pay", "wage"],
187
- "remote_ratio": ["remote work", "work from home", "remote ratio", "remote"],
188
- "company_size": ["company size", "organization size", "business size"],
189
- "employee_residence": ["country", "residence", "location", "employee location"],
190
- "company_location": ["company location", "office location", "company country"],
191
  }
192
 
 
193
  # Helper function to map user query terms to dataset columns
194
  def map_query_to_column(query):
195
  for col, synonyms in COLUMN_SYNONYMS.items():
 
180
 
181
  # Synonym mapping for flexible query understanding
182
  COLUMN_SYNONYMS = {
183
+ "job_title": ["job title", "job role", "role", "designation", "position", "job responsibility", "occupation"],
184
+ "experience_level": ["experience level", "seniority", "experience", "career stage", "years of experience"],
185
+ "employment_type": ["employment type", "job type", "contract type", "employment status"],
186
+ "salary_in_usd": ["salary", "income", "earnings", "pay", "wage", "compensation"],
187
+ "remote_ratio": ["remote work", "work from home", "remote ratio", "remote", "telecommute"],
188
+ "company_size": ["company size", "organization size", "business size", "firm size"],
189
+ "employee_residence": ["country", "residence", "location", "employee location", "home country"],
190
+ "company_location": ["company location", "office location", "company country", "headquarters", "location", "located", "area"],
191
  }
192
 
193
+
194
  # Helper function to map user query terms to dataset columns
195
  def map_query_to_column(query):
196
  for col, synonyms in COLUMN_SYNONYMS.items():