Skip to content

Commit

Permalink
Expand examples with confusion for service_options
Browse files Browse the repository at this point in the history
  • Loading branch information
kagermanov27 committed Jun 20, 2023
1 parent 7cf344a commit 217710f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion google-local-results-ai-parser.gemspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Gem::Specification.new do |spec|
spec.name = "google-local-results-ai-parser"
spec.version = "0.1.6"
spec.version = "0.1.7"
spec.summary = "A gem to be used with serpapi/bert-base-local-results model to predict different parts of Google Local Listings."
spec.description = "A gem to be used with serpapi/bert-base-local-results model to predict different parts of Google Local Listings. This gem uses BERT model at https://huggingface.co/serpapi/bert-base-local-results in the background. For serving private servers, head to https://github.com/serpapi/google-local-results-ai-server to get more information."
spec.homepage = "https://github.com/serpapi/google-local-results-ai-parser"
Expand Down
2 changes: 1 addition & 1 deletion lib/google-local-results-ai-parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ def description_as_hours_confusion(results, label_order, duplicates)
# On-site services, Online appointments
# Fixes `On-site services`, `Online appointments`
def service_options_as_description_or_type_confusion(results, label_order, duplicates)
known_errors = ["On-site services", "On-site services not available", "Online appointments", "Online appointments not available"]
known_errors = ["On-site services", "On-site services not available", "Onsite services", "Onsite services not available", "Online appointments", "Online appointments not available"]
caught_results_indices = results.map.with_index {|result, index| index if known_errors.include?(result[:input])}.compact
return results, label_order, duplicates if caught_results_indices == []

Expand Down

0 comments on commit 217710f

Please sign in to comment.