explosion / floret Goto Github PK
View Code? Open in Web Editor NEWThis project forked from facebookresearch/fasttext
๐ธ fastText + Bloom embeddings for compact, full-coverage vectors with spaCy
License: MIT License
This project forked from facebookresearch/fasttext
๐ธ fastText + Bloom embeddings for compact, full-coverage vectors with spaCy
License: MIT License
Python 3.11.2
Windows 10
When I try to install floret with pip (it's a dependency of textacy), I get the following error, which is tricky to diagnose. Hard to tell if it's a C++ issue or an incompatibility issue.
Updating C++ did not help FYI.
Building wheel for floret (pyproject.toml) ... error
error: subprocess-exited-with-error
ร Building wheel for floret (pyproject.toml) did not run successfully.
โ exit code: 1
โฐโ> [37 lines of output]
C:\Users\Roberto\AppData\Local\Temp\pip-build-env-_wlvzy3m\overlay\Lib\site-packages\setuptools\dist.py:755: SetuptoolsDeprecationWarning: Invalid dash-separated options
!!
********************************************************************************
Usage of dash-separated 'description-file' will not be supported in future
versions. Please use the underscore name 'description_file' instead.
By 2023-Sep-26, you need to update your project and remove deprecated calls
or your builds will no longer be supported.
See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
********************************************************************************
!!
opt = self.warn_dash_deprecation(opt, section)
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-311
creating build\lib.win-amd64-cpython-311\floret
copying python\floret_module\floret\floret.py -> build\lib.win-amd64-cpython-311\floret
copying python\floret_module\floret\__init__.py -> build\lib.win-amd64-cpython-311\floret
creating build\lib.win-amd64-cpython-311\floret\util
copying python\floret_module\floret\util\util.py -> build\lib.win-amd64-cpython-311\floret\util
copying python\floret_module\floret\util\__init__.py -> build\lib.win-amd64-cpython-311\floret\util
creating build\lib.win-amd64-cpython-311\floret\tests
copying python\floret_module\floret\tests\test_configurations.py -> build\lib.win-amd64-cpython-311\floret\tests
copying python\floret_module\floret\tests\test_script.py -> build\lib.win-amd64-cpython-311\floret\tests
copying python\floret_module\floret\tests\test_tokenize.py -> build\lib.win-amd64-cpython-311\floret\tests
copying python\floret_module\floret\tests\test_train.py -> build\lib.win-amd64-cpython-311\floret\tests
copying python\floret_module\floret\tests\__init__.py -> build\lib.win-amd64-cpython-311\floret\tests
copying python\floret_module\floret\tests\data.txt -> build\lib.win-amd64-cpython-311\floret\tests
copying python\floret_module\floret\tests\README.md -> build\lib.win-amd64-cpython-311\floret\tests
running build_ext
building 'floret_pybind' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for floret
Failed to build floret
ERROR: Could not build wheels for floret, which is required to install pyproject.toml-based projects
Improve saved file format to use headers to differentiate from fasttext format, with backwards compatibility for existing saved files.
Training method floret.train_supervised(...)
breaks when mode="floret"
is used as a kwarg. Is this expected behavior or does the mode
argument only make sense for train_unsupervised(...)
?
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
Cell In[102], line 1
----> 1 model = floret.train_supervised(
2 input=FASTTEXT_TRAIN_DOCS_PATH,
3 mode="floret",
4 lr=0.1,
5 epoch=10,
6 dim=300,
7 wordNgrams=2,
8 ws=20,
9 pretrainedVectors="wiki-news-300d-1M-subword.vec"
10 )
File ~/.local/lib/python3.8/site-packages/floret/floret.py:548, in train_supervised(*kargs, **kwargs)
534 supervised_default.update({
535 'lr': 0.1,
536 'minCount': 1,
(...)
540 'model': "supervised"
541 })
543 arg_names = ['input', 'lr', 'dim', 'ws', 'epoch', 'minCount',
544 'minCountLabel', 'minn', 'maxn', 'neg', 'wordNgrams', 'loss', 'bucket',
545 'thread', 'lrUpdateRate', 't', 'label', 'verbose', 'pretrainedVectors',
546 'seed', 'autotuneValidationFile', 'autotuneMetric',
547 'autotunePredictions', 'autotuneDuration', 'autotuneModelSize']
--> 548 args, manually_set_args = read_args(kargs, kwargs, arg_names,
549 supervised_default)
550 a = _build_args(args, manually_set_args)
551 ft = _floret(args=a)
File ~/.local/lib/python3.8/site-packages/floret/floret.py:507, in read_args(arg_list, arg_dict, arg_names, default_values)
505 arg_name = param_map[arg_name]
506 if arg_name not in arg_names:
--> 507 raise TypeError("unexpected keyword argument '%s'" % arg_name)
508 if arg_name in ret:
509 raise TypeError("multiple values for argument '%s'" % arg_name)
TypeError: unexpected keyword argument 'mode'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.