opener-opinion-detector-basic 3.2.6 → 3.2.7
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a359f51820d658e268c5ea8215e295bf6bba49fd2a10b4e6bf118c0218b05fd
|
4
|
+
data.tar.gz: 9bff0744e84164bd87cb362c3fcb9c367658109de6c5b076a8c0b41aa3ca7e13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe970070831b765eb857ac92f54888b85f0d36582683db710f8203ecd8f101da7cd329ef3abc8f9f1a1b726e0eead3e19eabcb8135d1977f68d3c437f154885a
|
7
|
+
data.tar.gz: ec097e7a1652589e5c040fbbc4175a17d79ed8626fc69a61e8b9729f66ec22ebefcd35ce26f9e120f7862468e0c45a90a78aecb7e3fd4247302d445f8b589bde
|
@@ -14,6 +14,7 @@ module Opener
|
|
14
14
|
'nl' => %w{, en},
|
15
15
|
'en' => %w{, and},
|
16
16
|
'es' => %w{, y e},
|
17
|
+
'pt' => %w{, e},
|
17
18
|
'it' => %w{, e ed},
|
18
19
|
'de' => %w{, und},
|
19
20
|
'fr' => %w{, et},
|
@@ -169,7 +170,7 @@ module Opener
|
|
169
170
|
# Sometimes, comma comes with space after it
|
170
171
|
#
|
171
172
|
def is_conjunction?(language)
|
172
|
-
pos == 'J' || xpos == ',' || CONJUNCTIONS[language]&.include?(lemma)
|
173
|
+
pos == 'J' || xpos == ',' || lemma == ',' || CONJUNCTIONS[language]&.include?(lemma)
|
173
174
|
end
|
174
175
|
|
175
176
|
private
|