Git Product home page Git Product logo

floret's People

Contributors

adl1995 avatar adrianeboyd avatar ajoulin avatar alexbeletsky avatar bact avatar celebio avatar cpuhrsch avatar edenbaus avatar edizel avatar edouardgrave avatar emilstenstrom avatar gojomo avatar hyunyoung2 avatar icoxfog417 avatar jernkuan avatar joeykrim avatar kahne avatar kenhys avatar kwojcicki avatar ma2bd avatar mbyzhang avatar ola13 avatar philipmay avatar piotr-bojanowski avatar sleepinyourhat avatar stanislavglebik avatar tomtung avatar valeriyvan avatar vessovit avatar zpao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

floret's Issues

Error installing floret with pip

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 file formats

Improve saved file format to use headers to differentiate from fasttext format, with backwards compatibility for existing saved files.

`mode="floret"` not supported argument for `floret.train_supervised(...)`?

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'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.