Skip to content

Commit

Permalink
Change the solution to a more generally applicable one
Browse files Browse the repository at this point in the history
  • Loading branch information
kagermanov27 committed Jun 21, 2023
1 parent 21bf9a0 commit a075216
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion google-local-results-ai-parser.gemspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Gem::Specification.new do |spec|
spec.name = "google-local-results-ai-parser"
spec.version = "0.2.1"
spec.version = "0.2.2"
spec.summary = "A gem to be used with serpapi/bert-base-local-results model to predict different parts of Google Local Listings."
spec.description = "A gem to be used with serpapi/bert-base-local-results model to predict different parts of Google Local Listings. This gem uses BERT model at https://huggingface.co/serpapi/bert-base-local-results in the background. For serving private servers, head to https://github.com/serpapi/google-local-results-ai-server to get more information."
spec.homepage = "https://github.com/serpapi/google-local-results-ai-parser"
Expand Down
2 changes: 1 addition & 1 deletion lib/google-local-results-ai-parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def transform_hash(results, unsplit_text)

if final_results[label]
# Combine the text for same elements
final_results[label] = unsplit_text[/#{final_results[label]}[.|\n]+#{value}/]
final_results[label] = unsplit_text[/#{final_results[label]}(.+|\n)#{value}/]
else
# Directly assign values
final_results[label] = value
Expand Down

0 comments on commit a075216

Please sign in to comment.