google-local-results-ai-parser 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 290163a767ae91b4c7b8d45087ad40e1e72dc36581b1565a7360fb059674ba11
4
- data.tar.gz: af915102b08661235115e5c08287ec424690f9a245454130ca64e4ecd489407c
3
+ metadata.gz: cca82d65c271c431ecff087ba09a5c85180097441df64b99b55fd017c03314ef
4
+ data.tar.gz: c746ea73236cd49e6a983b03e8719a1eeb075607a8d4d08c2c6b1c3b99a0eb0d
5
5
  SHA512:
6
- metadata.gz: 9089889919afccd9d07bf823be8343d01dcff7ec6e04d86b7ccfebae28c47348eaed1a00304a9df58bb7b85ca8e2e1dd3d750cf020d2a18a6a892872b720069e
7
- data.tar.gz: c105bfd73e7491ab02f1fe343ba1d54307f035455b4e28a46156505a9e578b1c26b53af31e4e465b8ec2624e08d758647726289e4a8fe4cfd8e653c34cebaa0b
6
+ metadata.gz: 56cd8f0b6f19673a0fa87ed7007fe844d80b906ce2500ec5207872dfc5d5fecd4a8e27c3e504e46f7bab8d2f3bf369e3ae409e8df2a0bcf3aae9764df4a1611f
7
+ data.tar.gz: '06988a8a22f7ea42dd840d117a9798fd4c808cc0b7327acb08772417db94c122b759196a126264cad9484bbfc53efab77635ded7ce1bb1c36908531a2c72cfe6'
@@ -453,7 +453,7 @@ module GoogleLocalResultsAiParser
453
453
  # On-site services, Online appointments
454
454
  # Fixes `On-site services`, `Online appointments`
455
455
  def service_options_as_description_or_type_confusion(results, label_order, duplicates)
456
- known_errors = ["On-site services", "On-site services not available", "Onsite services", "Onsite services not available", "Online appointments", "Online appointments not available"]
456
+ known_errors = ["On-site services", "On-site services not available", "Onsite services", "Onsite services not available", "Online appointments", "Online appointments not available", "Takeaway"]
457
457
  caught_results_indices = results.map.with_index {|result, index| index if known_errors.include?(result[:input])}.compact
458
458
  return results, label_order, duplicates if caught_results_indices == []
459
459
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-local-results-ai-parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emirhan Akdeniz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-20 00:00:00.000000000 Z
11
+ date: 2023-06-21 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A gem to be used with serpapi/bert-base-local-results model to predict
14
14
  different parts of Google Local Listings. This gem uses BERT model at https://huggingface.co/serpapi/bert-base-local-results