We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f732ad3 commit f343de8Copy full SHA for f343de8
paperqa/utils.py
@@ -17,6 +17,8 @@ def maybe_is_text(s, thresh=2.5):
17
18
19
def strings_similarity(s1, s2):
20
+ if len(s1) == 0 or len(s2) == 0:
21
+ return 0
22
# break the strings into words
23
s1 = set(s1.split())
24
s2 = set(s2.split())
0 commit comments