Location Analyzer
LocationAnalyzer
Analyzer for location matching between resume and job.
Matches resume location against job location using: 1. Substring matching (e.g., "San Francisco" matches "San Francisco, CA") 2. Semantic similarity (if semantic_matcher provided)
Attributes:
| Name | Type | Description |
|---|---|---|
semantic_matcher |
Optional semantic matcher for location matching. |
Example
Initialize the location analyzer.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
semantic_matcher
|
SemanticMatcher | None
|
Optional semantic matcher for location matching. |
None
|
Source code in at_scorer/analyzers/location.py
Functions
analyze
Analyze location matching between resume and job.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
resume_location
|
str | None
|
Location from resume (e.g., "San Francisco, CA"). |
required |
job_location
|
str | None
|
Job location requirement. |
required |
Returns:
| Type | Description |
|---|---|
float
|
Score between 0.0 and 1.0: - 1.0 if locations match or one contains the other - 0.0 if no match or missing locations - Semantic similarity score if semantic_matcher available |