Commit Graph

15820 Commits

Author SHA1 Message Date
Marcus Blättermann
8aedbc0b58
Merge commit 'a6342f8abaecd1a8a86c3d59cd016a2eb3688165' into wip-migrate-to-next-13 2022-12-15 16:02:04 +01:00
Marcus Blättermann
2613dbb45e
Fix broken table 2022-12-15 15:48:55 +01:00
Marcus Blättermann
6ac68219c1
Move Remark components to own file 2022-12-15 00:25:21 +01:00
Marcus Blättermann
998dc1da54
Remove unnessary key
This reduces the reliance on `location`
2022-12-15 00:25:21 +01:00
Marcus Blättermann
fb5f7b0dc5
Remove static queries
Import JSON meta data directly, to simplify components
2022-12-15 00:25:21 +01:00
Marcus Blättermann
94beed24f1
Apply Prettier 2022-12-15 00:25:21 +01:00
Marcus Blättermann
608551c04a
Fix ESLint react/jsx-no-duplicate-props 2022-12-15 00:25:21 +01:00
Marcus Blättermann
98837c781d
Fix ESLint key={index}> 2022-12-15 00:25:20 +01:00
Marcus Blättermann
6fcb69779e
Fix ESLint react/jsx-no-target-blank 2022-12-15 00:25:20 +01:00
Marcus Blättermann
dbfdc55989
Fix ESLint react/no-unescaped-entities 2022-12-15 00:25:20 +01:00
Marcus Blättermann
cf460065bf
Fix ESLint import/no-anonymous-default-export 2022-12-15 00:25:20 +01:00
Marcus Blättermann
579e6fcf10
Fix ESLint react-hooks/exhaustive-deps 2022-12-15 00:25:20 +01:00
Marcus Blättermann
14c928e5a9
Hotfix Python 2022-12-15 00:25:20 +01:00
Marcus Blättermann
55e884ddc7
Fix double quotation marks 2022-12-15 00:25:20 +01:00
Marcus Blättermann
a796469322
Remove unused component
The component is no longer necessary after 7f2ea20fee
2022-12-15 00:25:12 +01:00
Marcus Blättermann
5a5fe19841
Move non-pure selector to layout file
The original error was: pure selectors must contain at least one local class or id
2022-12-14 23:57:55 +01:00
Marcus Blättermann
c625cd62de
Remove redefined attribute 2022-12-14 23:57:55 +01:00
Marcus Blättermann
2564beee18
Remove invalid semicolon
`SassError: semicolons aren't allowed in the indented syntax.`
2022-12-14 23:57:55 +01:00
Marcus Blättermann
fdf16d02b9
Remove references to non-existing CSS classes 2022-12-14 23:57:55 +01:00
Marcus Blättermann
cace36a335
Fix invalid SASS selector 2022-12-14 23:57:54 +01:00
Marcus Blättermann
330c7e86a8
Fix SASS deprecation
This is a super annoying breaking change in sass (it also happens in `node-sass`/`node-scss`), but there seems to be no way around it.

context: https://sass-lang.com/documentation/breaking-changes/slash-div
2022-12-14 23:57:54 +01:00
Marcus Blättermann
379faa6fb8
Fix SASS error
`SassError: Top-level selectors may not contain the parent selector "&".`
2022-12-14 23:57:54 +01:00
Marcus Blättermann
3385328c70
Fix invalid SASS 2022-12-14 23:57:54 +01:00
Marcus Blättermann
f50f1a4b6d
Lock current node version (#11885) 2022-12-02 15:59:15 +01:00
Sofie Van Landeghem
3eed6801d7
Merge pull request #11886 from essenmitsosse/rename-mdx-files
Rename all MDX file to `.mdx`
2022-12-02 15:31:21 +01:00
Marcus Blättermann
b6310d4ce9
Rename all MDX file to .mdx 2022-11-29 02:33:27 +01:00
Sofie Van Landeghem
96c9cf3448
Merge pull request #11855 from essenmitsosse/move-styleguide-out-of-readme
Move Styleguide out of Readme
2022-11-28 21:22:56 +01:00
Paul O'Leary McCann
f54bfb56c9
Don't throw an error if using displacy on an unset span key (#11845)
* Don't throw an error if using displacy on an unset span key

* List available keys in W117
2022-11-28 10:01:09 +01:00
Zhangrp
9f986af120
Add example sentence for Chinese in website meta (#11879) 2022-11-28 14:50:30 +09:00
Marcus Blättermann
5c9faf6eea
Update menu for styleguide
This reflects the removed parts from ecbf052abd
2022-11-27 03:48:05 +01:00
Marcus Blättermann
90141202c0
Merge branch 'move-styleguide-out-of-readme' into migrate-to-next-web-17 2022-11-27 03:48:03 +01:00
Marcus Blättermann
7f2ea20fee
Update README.md 2022-11-27 03:47:11 +01:00
Marcus Blättermann
c23d54fd26
Remove MDX tags from README.md 2022-11-27 03:47:11 +01:00
Adriane Boyd
681ec20914
Add smart_open requirement, update deprecated options (#11864)
* Switch from deprecated `ignore_ext` to `compression`
* Add upload/download test for local files
2022-11-25 13:00:57 +01:00
Raphael Mitsch
c0fd8a2e71
find-threshold: CLI command for multi-label classifier threshold tuning (#11280)
* Add foundation for find-threshold CLI functionality.

* Finish first draft for find-threshold.

* Add tests.

* Revert adjusted import statements.

* Fix mypy errors.

* Fix imports.

* Harmonize arguments with spacy evaluate command.

* Generalize component and threshold handling. Harmonize arguments with 'spacy evaluate' CLI.

* Fix Spancat test.

* Add beta parameter to Scorer and PRFScore.

* Make beta a component scorer setting.

* Remove beta.

* Update nlp.config (workaround).

* Reload pipeline on threshold change. Adjust tests. Remove confection reference.

* Remove assumption of component being a Pipe object or having a .cfg attribute.

* Adjust test output and reference values.

* Remove beta references. Delete universe.json.

* Reverting unnecessary changes. Removing unused default values. Renaming variables in find-cli tests.

* Update spacy/cli/find_threshold.py

Co-authored-by: Adriane Boyd <adrianeboyd@gmail.com>

* Remove adding labels in tests.

* Remove unused error

* Undo changes to PRFScorer

* Change default value for n_trials. Log table iteratively.

* Add warnings for pointless applications of find_threshold().

* Fix imports.

* Adjust type check of TextCategorizer to exclude subclasses.

* Change check of if there's only one unique value in scores.

* Update spacy/cli/find_threshold.py

Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com>

* Incorporate feedback.

* Fix test issue. Update docstring.

* Update docs & docstring.

* Update spacy/tests/test_cli.py

Co-authored-by: Adriane Boyd <adrianeboyd@gmail.com>

* Add examples to docs. Rename _nlp to nlp in tests.

* Update spacy/cli/find_threshold.py

Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com>

* Update spacy/cli/find_threshold.py

Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com>

Co-authored-by: Adriane Boyd <adrianeboyd@gmail.com>
Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com>
2022-11-25 11:44:55 +01:00
kadarakos
dece775279
correct ndim in docs (#11869) 2022-11-25 11:31:28 +01:00
Adriane Boyd
30d31fd335
Update Russian and Ukrainian lemmatizers (#11811)
* pymorph2 issues #11620, #11626, #11625:
- #11620: pymorphy2_lookup
- #11626: handle multiple forms pointing to the same normal form + handling empty POS tag
- #11625: matching DET that are labelled as PRON by pymorhp2

* Move lemmatizer algorithm changes back into RussianLemmatizer

* Fix uk pymorphy3_lookup mode init

* Move and update tests for ru/uk lookup lemmatizer modes

* Fix typo

* Remove traces of previous behavior for uninflected POS

* Refactor to private generic-looking pymorphy methods

* Remove xfailed uk lemmatizer cases

* Update spacy/lang/ru/lemmatizer.py

Co-authored-by: Richard Hudson <richard@explosion.ai>

Co-authored-by: Dmytro S Lituiev <d.lituiev@gmail.com>
Co-authored-by: Richard Hudson <richard@explosion.ai>
2022-11-25 11:12:46 +01:00
Adriane Boyd
8f062b849c
Fix Matcher cython profile=True header (#11867) 2022-11-24 16:03:42 +01:00
Madeesh Kannan
5ea14af32b
Add training.before_update callback (#11739)
* Add `training.before_update` callback

This callback can be used to implement training paradigms like gradual (un)freezing of components (e.g: the Transformer) after a certain number of training steps to mitigate catastrophic forgetting during fine-tuning.

* Fix type annotation, default config value

* Generalize arguments passed to the callback

* Update schema

* Pass `epoch` to callback, rename `current_step` to `step`

* Add test

* Simplify test

* Replace config string with `spacy.blank`

* Apply suggestions from code review

Co-authored-by: Adriane Boyd <adrianeboyd@gmail.com>

* Cleanup imports

Co-authored-by: Adriane Boyd <adrianeboyd@gmail.com>
2022-11-23 17:54:58 +01:00
Paul O'Leary McCann
8271cfb4cd
Remove Learning Path spaCy (#11846) 2022-11-23 11:03:18 +01:00
Paul O'Leary McCann
f1ddac187d
Remove unused error object (#11837) 2022-11-23 10:51:31 +01:00
Marcus Blättermann
ecbf052abd
Remove README.md content from styleguide 2022-11-23 02:04:54 +01:00
Marcus Blättermann
5659eeaadd
Remove styleguide content from README.md 2022-11-23 02:04:54 +01:00
Marcus Blättermann
8c0ceca637
Move README.md content to styleguide 2022-11-23 02:04:54 +01:00
Marcus Blättermann
0794e5c6cc
Add missing files to project structure in README.md 2022-11-23 02:04:54 +01:00
Marcus Blättermann
96218a1e8f
Delete styleguide.md
This is in intermediate commit, so the content of `/README.md`can be moved to the styleguid, but the history is kept
2022-11-23 02:04:54 +01:00
Marcus Blättermann
9d96e44a87
Apply Prettier to README.md 2022-11-23 02:04:49 +01:00
Marcus Blättermann
a6342f8aba
Disabled typescript during build 2022-11-22 18:35:35 +01:00
Marcus Blättermann
6af8b1da99
Disabled ESLint during builds 2022-11-22 18:35:35 +01:00
Marcus Blättermann
e6523b6b5d
Redirect index.mdx to parent directory 2022-11-22 18:35:35 +01:00