google-local-results-ai-parser 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c96be517ff3f5cc269d4fb60fe3db8309393f814d084070827fc056f00ccd21e
4
- data.tar.gz: fdb3da5e1c1561373dc3898441c3f85e410ce54b50867aa560728ce3366710a2
3
+ metadata.gz: e2209f3100b1ef6f8a75496347d890fc36e44648f4e7b30e9f9cf9d64b2d9c59
4
+ data.tar.gz: ac399ed9e3d69a4099b299c1f9cc1748cc41d077158f2bb941473c1b4f34cc80
5
5
  SHA512:
6
- metadata.gz: 30206bdb81631006ff75f44ccc8917ecf3f0b87b85f7efdefe4b0d6474ee761eb49466e0edd1c1b9a2a552f9fa4bac0df61d42ef7126fa2196c3761adc0fa973
7
- data.tar.gz: 228118960a094c140a7a7d8a2a63a7be6db481b08170ae16346b4107cce4f82d5a1a9c7edc1d28f1d479ad21975ccaae4768faebac2541d50a6ed114c75de280
6
+ metadata.gz: d33a665fe14482f365d6325d00edb75b5d74648153b80c328f24aac7bd885d922d0dc4488b0a54e612e85d3f6f93967c3b403e4c21efc8a0aac79a33483b3a8e
7
+ data.tar.gz: fbd0162cac88ded47ce62d97e6ac5a70928529c699890d4dba9ed098d9523ee37a629512fc918aafa229df696651d56e70017e81e93c6253078658b79ba4ec94
@@ -305,7 +305,7 @@ module GoogleLocalResultsAiParser
305
305
  # Fixes `Closes 12 AM``
306
306
  def description_as_hours_confusion(results, label_order, duplicates)
307
307
  description_index = label_order.index("description")
308
- hours_index = label_order.index("hours")
308
+ hours_index = label_order.rindex("hours")
309
309
 
310
310
  # Description may or may not be a duplicate.
311
311
  # This is a known error from the model, so it has to be handled in any case.
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.1
4
+ version: 0.1.2
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-15 00:00:00.000000000 Z
11
+ date: 2023-06-19 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