extractpatterns 0.0.5 → 0.0.6
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 +4 -4
- data/lib/extractpatterns.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d7e87fabeb0492f91bd6c5bcfe870a14843124b1
|
4
|
+
data.tar.gz: 3efa7049e97355b1a007e1e04b6cade458e56542
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df1b11675d4cfce2628d60638c0644e6ddc30b210be4fee438938d7052623bee41544accd424602728c493907c3cfb73eb408b21517c05375ee318bc21243396
|
7
|
+
data.tar.gz: 47fba033bfe2297ead1b2af60f429442bcaebc7898fbd8f7890e9e8ae78007f9cc668f858b961f4ef8065e9bc4f7f1c34d9be6d94ff4294f9e4ebf2d5a74cfef
|
data/lib/extractpatterns.rb
CHANGED
@@ -4,7 +4,7 @@ require 'termextractor'
|
|
4
4
|
|
5
5
|
class ExtractPatterns
|
6
6
|
def initialize(input, fields, match_name)
|
7
|
-
@input = JSON.parse(input)
|
7
|
+
@input = JSON.parse(fixEncode(input))
|
8
8
|
@fields = fields
|
9
9
|
@match_name = match_name
|
10
10
|
@output = Array.new
|
@@ -58,7 +58,7 @@ class ExtractPatterns
|
|
58
58
|
|
59
59
|
# Normalize and match synonyms and deduplicate
|
60
60
|
def normalize_results(extracted_raw, synonym_list)
|
61
|
-
synonyms = JSON.parse(File.read(synonym_list))
|
61
|
+
synonyms = JSON.parse(fixEncode(File.read(synonym_list)))
|
62
62
|
outarr = extracted_raw.dup
|
63
63
|
|
64
64
|
# Go through all extracted
|