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

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: e1ab4d4df39b5d9e1db9dd66a3b0bb0b8af84cbfd594335f483edbba2666ea41
4
+ data.tar.gz: e65ef8e16cea5a4afe63fb8fd9c7a84e9065071789b6ddff8caa69bbe492e29b
5
5
  SHA512:
6
- metadata.gz: 9089889919afccd9d07bf823be8343d01dcff7ec6e04d86b7ccfebae28c47348eaed1a00304a9df58bb7b85ca8e2e1dd3d750cf020d2a18a6a892872b720069e
7
- data.tar.gz: c105bfd73e7491ab02f1fe343ba1d54307f035455b4e28a46156505a9e578b1c26b53af31e4e465b8ec2624e08d758647726289e4a8fe4cfd8e653c34cebaa0b
6
+ metadata.gz: d639c5bb2f4b3205d71b75d68e7551a3e890b8b0987fee8610a9500cfdc274b7ca6b2d323c1daaa5f10c115355498df14b89fd698526aee670b415e4756f5e74
7
+ data.tar.gz: b5284c3d2598b8ed9ee576a2451e409f0ce0158b4df889b25f2379dae9868c8da6124889d3faf29fb24e2478abd5e45f6cfd9ceee9fa1ed692aa61780205c7fe
@@ -453,7 +453,17 @@ 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 = [
457
+ "On-site services",
458
+ "On-site services not available",
459
+ "Onsite services",
460
+ "Onsite services not available",
461
+ "Online appointments",
462
+ "Online appointments not available",
463
+ "Online estimates",
464
+ "Online estimates not available",
465
+ "Takeaway"
466
+ ]
457
467
  caught_results_indices = results.map.with_index {|result, index| index if known_errors.include?(result[:input])}.compact
458
468
  return results, label_order, duplicates if caught_results_indices == []
459
469
 
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.2.0
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