google-local-results-ai-parser 0.1.9 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google-local-results-ai-parser.rb +11 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e1ab4d4df39b5d9e1db9dd66a3b0bb0b8af84cbfd594335f483edbba2666ea41
|
4
|
+
data.tar.gz: e65ef8e16cea5a4afe63fb8fd9c7a84e9065071789b6ddff8caa69bbe492e29b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 = [
|
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
|
|