Commit Graph

15753 Commits

Author SHA1 Message Date
Marcus Blättermann
9b044a5138
Add experimental Rust MDX parser 2022-11-16 20:36:44 +01:00
Marcus Blättermann
1ee08e8cf7
Add basic implementation for MDXRemote 2022-11-16 20:36:42 +01:00
Marcus Blättermann
0cbf94f351
Rename component 2022-11-16 17:18:02 +01:00
Marcus Blättermann
87d1bcfcf4
Apply prettier 2022-11-16 17:18:02 +01:00
Marcus Blättermann
d62a1d3f9c
Remove redefined attribute 2022-11-16 17:18:02 +01:00
Marcus Blättermann
7919dc04e2
Remove unnessary key
This reduces the reliance on `location`
2022-11-16 17:18:02 +01:00
Marcus Blättermann
42f9be01dd
Remove invalid semicolon
`SassError: semicolons aren't allowed in the indented syntax.`
2022-11-16 17:18:02 +01:00
Marcus Blättermann
70d6ac9a44
Remove references to non-existing CSS classes 2022-11-16 17:18:02 +01:00
Marcus Blättermann
5c710ab283
Fix eslint-error no-anonymous-exports-page-templates 2022-11-16 17:18:02 +01:00
Marcus Blättermann
0ddabc1946
Fix invalid SASS selector 2022-11-16 17:18:01 +01:00
Marcus Blättermann
12f4f980e0
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-11-16 17:18:01 +01:00
Marcus Blättermann
1a906e6d35
Fix sass error
`SassError: Top-level selectors may not contain the parent selector "&".`
2022-11-16 17:18:01 +01:00
Marcus Blättermann
4e4c73e78f
Fix invalid SASS 2022-11-16 17:18:01 +01:00
Marcus Blättermann
4e3f8802d5
Update SASS module import 2022-11-16 17:18:01 +01:00
Marcus Blättermann
088ae26f43
Delete api 2022-11-10 02:48:47 +01:00
Marcus Blättermann
f1035ce599
Make sure to use correct node version 2022-11-10 02:48:47 +01:00
Marcus Blättermann
1903af8352
Apply prettier to all files 2022-11-10 02:48:45 +01:00
Marcus Blättermann
12fa509de4
Add prettier 2022-11-10 02:48:23 +01:00
Marcus Blättermann
cc4486dc38
Disabled TypeScript strict mode for now 2022-11-10 02:48:23 +01:00
Marcus Blättermann
066b670e30
Add VSCode extension recommendation 2022-11-10 00:35:41 +01:00
Marcus Blättermann
fe969fb303
Allow Next to handle .md and .mdx files. 2022-11-10 00:22:41 +01:00
Marcus Blättermann
9a57c8784c
Add MDX to Next 2022-11-10 00:22:01 +01:00
Marcus Blättermann
753d481bab
Install MDX packages
Following: 77b5f79a4d/packages/next-mdx/readme.md
2022-11-10 00:19:59 +01:00
Marcus Blättermann
b3b33f7a56
Run npx create-next-app@13 next-blog 2022-11-10 00:18:01 +01:00
Marcus Blättermann
3a0316f299
Initial commit 2022-11-09 18:30:34 +01:00
Marcus Blättermann
0437cae7a4
Update Node version to 16 2022-11-04 13:05:18 +01:00
Marcus Blättermann
f9961b55fd
Lock current node version 2022-11-04 13:05:18 +01:00
Marcus Blättermann
c3bcadec59
Apply prettier to README 2022-11-04 13:05:17 +01:00
github-actions[bot]
bbf64cfc43
Auto-format code with black (#11749)
Co-authored-by: explosion-bot <explosion-bot@users.noreply.github.com>
2022-11-04 11:17:43 +01:00
Adriane Boyd
40e1000db0
Restore Doc attr getter values in Doc.to_json (#11700) 2022-11-03 11:49:08 +01:00
Paul O'Leary McCann
db56600536
Fix default parameters for load functions (fix #11706) (#11713)
* Fix default parameters for load functions

Some load functions used SimpleFrozenList() directly instead of the
_DEFAULT_EMPTY_PIPES parameter. That mostly worked as intended, but
the changes in #11459 check for equality using identity, not value, so a
warning is incorrectly raised sometimes, as in #11706.

This change just has all the load functions use the singleton value
instead.

* Add test that there are no warnings on module-based load

This will succeed due to changes in this branch, but local tests with
the latest release failed as intended.

* Try reverting commit and see if CI changes

There is an error in CI that is probably unrelated.

Revert "Fix default parameters for load functions"

This reverts commit dc46b35687.

* Revert "Try reverting commit and see if CI changes"

This reverts commit 2514ed07ef.

Co-authored-by: Adriane Boyd <adrianeboyd@gmail.com>
2022-11-03 10:52:59 +01:00
Adriane Boyd
1211552f0e
Modernize and simplify CI steps (#11738)
* Use `build` instead of `python setup.py sdist`
* Remove in-place build with `setup.py`
* Remove `gpu` parameter and GPU tests
* Keep `architecture` and `num_build_jobs` in azure steps with CI
  defaults
* Fix use of `num_build_jobs` parameters
* Remove now-unused `prefix` parameter
* Test imports and CLI before installing test requirements
  * Remove `*.egg-info` directory in addition to source directory for an
    warning-free `import spacy`
* Switch `thinc-apple-ops` test to python 3.11 (as most recent python
  that is tested across platforms)
2022-11-03 09:29:46 +01:00
Ryn Daniels
2fb7e4dc74
More version updates for github action deprecation warnings (#11705)
* More version updates for github action deprecation warnings

* fix the deprecated set-output commands

* bump explosion-bot to run on ubuntu-latest
2022-11-02 15:36:30 +01:00
Adriane Boyd
420b1d854b
Update textcat scorer threshold behavior (#11696)
* Update textcat scorer threshold behavior

For `textcat` (with exclusive classes) the scorer should always use a
threshold of 0.0 because there should be one predicted label per doc and
the numeric score for that particular label should not matter.

* Rename to test_textcat_multilabel_threshold

* Remove all uses of threshold for multi_label=False

* Update Scorer.score_cats API docs

* Add tests for score_cats with thresholds

* Update textcat API docs

* Fix types

* Convert threshold back to float

* Fix threshold type in docstring

* Improve formatting in Scorer API docs
2022-11-02 15:35:04 +01:00
Adriane Boyd
f7edd84b44
Switch CI to Python 3.11.0 (#11737) 2022-11-02 13:42:20 +01:00
Aaron Zipp
d25f09468c
Spelling mistake in rule-based-matching.md (#11717)
Changed retokenize to retokenizer
2022-10-31 13:27:12 +09:00
Paul O'Leary McCann
d61e742960
Handle Docs with no entities in EntityLinker (#11640)
* Handle docs with no entities

If a whole batch contains no entities it won't make it to the model, but
it's possible for individual Docs to have no entities. Before this
commit, those Docs would cause an error when attempting to concatenate
arrays because the dimensions didn't match.

It turns out the process of preparing the Ragged at the end of the span
maker forward was a little different from list2ragged, which just uses
the flatten function directly. Letting list2ragged do the conversion
avoids the dimension issue.

This did not come up before because in NEL demo projects it's typical
for data with no entities to be discarded before it reaches the NEL
component.

This includes a simple direct test that shows the issue and checks it's
resolved. It doesn't check if there are any downstream changes, so a
more complete test could be added. A full run was tested by adding an
example with no entities to the Emerson sample project.

* Add a blank instance to default training data in tests

Rather than adding a specific test, since not failing on instances with
no entities is basic functionality, it makes sense to add it to the
default set.

* Fix without modifying architecture

If the architecture is modified this would have to be a new version, but
this change isn't big enough to merit that.
2022-10-28 10:25:34 +02:00
Paul O'Leary McCann
6b78135b9e
Add warning to install widget for M1 GPUs (#11666)
* Add warning to install widget for M1 GPUs

* Use Thinc tracking issue instead

* Update website/src/widgets/quickstart-install.js

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

* Underline URL in warning

* Update website/src/widgets/quickstart-install.js

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

* Don't install cupy on m1 gpus

Co-authored-by: Adriane Boyd <adrianeboyd@gmail.com>
2022-10-27 15:08:24 +02:00
Adriane Boyd
865691d169
Adjust default attrs for textcat configs (#11698) 2022-10-26 08:43:00 +02:00
Ryn Daniels
a9139907a9
update github actions to deal with deprecations (#11702) 2022-10-26 08:15:13 +02:00
Adriane Boyd
0a9859ba01
Reduce python 3.10 in CI to one OS (#11703) 2022-10-25 19:38:23 +02:00
Adriane Boyd
8740e4341f
Update languages and version in README and website (#11694) 2022-10-25 14:54:54 +02:00
Adriane Boyd
88d35450dc
Rename test helper method with non-test_ name (#11701) 2022-10-25 14:53:18 +02:00
github-actions[bot]
84d9cb6b38
Auto-format code with black (#11687)
Co-authored-by: explosion-bot <explosion-bot@users.noreply.github.com>
2022-10-21 11:54:17 +02:00
Adriane Boyd
fb280001cc
Merge pull request #11678 from adrianeboyd/chore/update-develop-from-master-v3.5
Update develop from master before v3.5
2022-10-20 15:45:19 +02:00
Adriane Boyd
6c380d4fc6 Merge remote-tracking branch 'upstream/master' into chore/update-develop-from-master-v3.5 2022-10-20 13:45:17 +02:00
Adriane Boyd
7e56701057 Merge remote-tracking branch 'upstream/master' into chore/update-develop-from-master-v3.5 2022-10-20 13:38:49 +02:00
Cellan Hall
b69d249a22
Adding spacy-cleaner to the spaCy universe (#11674)
* added spacy-cleaner to the spaCy universe

* Move data to righ section of universe.json

* Cleanup

- fix typo ("replacers")
- spaCy doesn't need to be marked as code
- lemma of "Hello" is lower case

Co-authored-by: Paul O'Leary McCann <polm@dampfkraft.com>
2022-10-20 20:38:29 +09:00
Paul O'Leary McCann
bf83f6872a
Add detailed example of env dict usage (#11677)
* Add detailed example of env dict usage

* Mark code blocks as yaml
2022-10-20 20:35:03 +09:00
Adriane Boyd
3d0e895363
Set version to v3.4.2 (#11672) 2022-10-19 17:33:55 +02:00