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

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: ee56950fd52aa6f87345bd757703be624ef3c24fd64b56e7bc62940d25af249d
4
- data.tar.gz: 589f573aaf3f77042e97ab6271ba8ff8a29a0329fe5caa669aee49a4198df9c1
3
+ metadata.gz: e2209f3100b1ef6f8a75496347d890fc36e44648f4e7b30e9f9cf9d64b2d9c59
4
+ data.tar.gz: ac399ed9e3d69a4099b299c1f9cc1748cc41d077158f2bb941473c1b4f34cc80
5
5
  SHA512:
6
- metadata.gz: 78479818c57185517acba5e74130c58a0ae0274d6612bb154043e4e9b2a5912a984ce47c10c8fdf10963f3df543db8142d94f1172c92ad58fc848dd2e29a661a
7
- data.tar.gz: a9ad40b52b9d12786da0d8e4c4d78186b05e9000ce51e9a09968a36dd02970b18fd5d554543b3a22e00cefccba85826df1240fd42c3304985f9e0c17ebac7470
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,17 +1,19 @@
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.0
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-13 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
- different parts of Google Local Listings.
14
+ different parts of Google Local Listings. This gem uses BERT model at https://huggingface.co/serpapi/bert-base-local-results
15
+ in the background. For serving private servers, head to https://github.com/serpapi/google-local-results-ai-server
16
+ to get more information.
15
17
  email: kagermanovtalks@gmail.com
16
18
  executables: []
17
19
  extensions: []