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 +4 -4
- data/lib/google-local-results-ai-parser.rb +11 -1
- metadata +2 -2
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
|
|
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.
|
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-
|
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
|