Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rank_bm25 dependency is not optional #1

Open
kaaloo opened this issue Jan 14, 2021 · 0 comments
Open

rank_bm25 dependency is not optional #1

kaaloo opened this issue Jan 14, 2021 · 0 comments

Comments

@kaaloo
Copy link

kaaloo commented Jan 14, 2021

I get the following stack trace when running build_wikIR.py if the rank_bm25 dependency is not installed. Perhaps the README file for this project could be updated to remove indications as to the optional character of this dependency.

2021-01-14 1 wikiextractor/WikiExtractor.py:2429: DeprecationWarning: Flags not at the start of the expression '\\[(((?i)bitcoin:|ftp' (truncated)
   ExtLinkBracketedRegex = re.compile(
 wikiextractor/WikiExtractor.py:2436: DeprecationWarning: Flags not at the start of the expression '^(http://|https://)(' (truncated)
   EXT_IMAGE_REGEX = re.compile(
 wikiextractor/WikiExtractor.py:644: DeprecationWarning: The 'warn' function is deprecated, use 'warning' instead
   logging.warn("Template errors in article '%s' (%s): title(%d) recursion(%d, %d, %d)",
 WARNING: Template errors in article 'Prishtina' (222982): title(1) recursion(0, 0, 0)
 Traceback (most recent call last):
   File "build_wikIR.py", line 9, in <module>
     from rank_bm25 import BM25Okapi
 ModuleNotFoundError: No module named 'rank_bm25'

P.S. Thank you so much for your work on this ! 👍🏼

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant