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

Detect when a fasttext executable is available in PATH #3264

Merged
merged 2 commits into from
Feb 26, 2022

Conversation

pabs3
Copy link
Contributor

@pabs3 pabs3 commented Nov 7, 2021

Also check that fasttext exists in FT_HOME and is executable.

This is useful when using a distro like Debian that
has a package of fasttext available to install.

@codecov
Copy link

codecov bot commented Nov 7, 2021

Codecov Report

Merging #3264 (76254a2) into develop (6fc9e38) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop    #3264   +/-   ##
========================================
  Coverage    79.53%   79.53%           
========================================
  Files           68       68           
  Lines        11781    11781           
========================================
  Hits          9370     9370           
  Misses        2411     2411           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6fc9e38...76254a2. Read the comment docs.

Also check that fasttext exists in FT_HOME and is executable.

This is useful when using a distro like Debian that
has a package of fasttext available to install.
@piskvorky piskvorky added this to the 4.1.0 milestone Feb 6, 2022
@pabs3
Copy link
Contributor Author

pabs3 commented Feb 20, 2022

Can someone re-run the checks? Seems like they timed out.

@mpenkov
Copy link
Collaborator

mpenkov commented Feb 26, 2022

@piskvorky I'm going to merge this as-is because we use the facebook executable in multiple places during the tests. It's easier to use the executable than to store half a dozen models as test data.

@mpenkov mpenkov merged commit d6620df into piskvorky:develop Feb 26, 2022
@mpenkov
Copy link
Collaborator

mpenkov commented Feb 26, 2022

@pabs3 Thank you for your work!

@pabs3 pabs3 deleted the detect-fasttext-in-PATH branch February 26, 2022 06:18
@@ -44,7 +45,8 @@
BUCKET = 10000

FT_HOME = os.environ.get("FT_HOME")
FT_CMD = os.path.join(FT_HOME, "fasttext") if FT_HOME else None
FT_CMD = shutil.which("fasttext", path=FT_HOME) or \
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Single line please.

pabs3 added a commit to pabs3/gensim that referenced this pull request Feb 26, 2022
mpenkov added a commit that referenced this pull request Mar 20, 2022
Requested-in: #3264 (review)

Co-authored-by: Michael Penkov <m@penkov.dev>
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 this pull request may close these issues.

None yet

3 participants