Sofie
c45ed32c74
label in span not writable anymore ( #3408 )
...
* label in span not writable anymore
* more explicit unit test and error message for readonly label
* bit more explanation (view)
* error msg tailored to specific case
* fix None case
2019-03-15 00:46:45 +01:00
Ines Montani
cbcba699dd
Fix missing ids
2019-03-14 17:56:53 +01:00
Ines Montani
cffe63ea24
Fix :target padding for ids
2019-03-14 17:41:02 +01:00
Ines Montani
51b7b88acf
Generate active sidebar heading (h0) at compile time
2019-03-14 17:20:51 +01:00
Ines Montani
4ab1871a75
Add search-exclude classes
2019-03-14 16:51:29 +01:00
Ines Montani
59bbf85986
Add id to body
2019-03-14 16:51:18 +01:00
Ines Montani
6e07750dd8
Fix class name
2019-03-14 11:52:31 +01:00
Ines Montani
a0813b93e0
Server-side render is-active for crawler
2019-03-14 11:46:27 +01:00
Ines Montani
39ace04b55
Fix active style
2019-03-14 11:46:13 +01:00
Ines Montani
ec29e6f4c8
Merge branch 'develop' into spacy.io
2019-03-12 22:57:34 +01:00
Ines Montani
4cfe4aa224
Fix small issues in the docs [ci skip]
2019-03-12 22:57:15 +01:00
Ines Montani
ba7eb2d131
Update section [ci skip]
2019-03-12 16:18:34 +01:00
Ines Montani
cecc31b765
Don't auto-slugify accordion links [ci skip]
2019-03-12 15:30:49 +01:00
Ines Montani
b456af305b
Merge branch 'develop' into spacy.io
2019-03-12 15:22:35 +01:00
Ines Montani
8ac197d443
Merge branch 'develop' of https://github.com/explosion/spaCy into develop
2019-03-12 15:22:11 +01:00
Ines Montani
d842d5698e
Tidy up website and add eslint config [ci skip]
2019-03-12 15:21:58 +01:00
Matthew Honnibal
6aab2d8533
Set version to v2.1.0a13
2019-03-12 15:14:06 +01:00
Ines Montani
8ee6514ab8
Merge branch 'develop' of https://github.com/explosion/spaCy into develop
2019-03-12 15:11:39 +01:00
Ines Montani
479b5cff43
Auto-format [ci skip]
2019-03-12 13:35:34 +01:00
Matthew Honnibal
1179de0860
Merge branch 'develop' of https://github.com/explosion/spaCy into develop
2019-03-12 13:33:22 +01:00
Matthew Honnibal
8a4121cbc2
Fix bug introduced by component_cfg
2019-03-12 13:32:56 +01:00
Ines Montani
2912ddc9a6
Don't set extension attribute in Japanese ( closes #3398 )
2019-03-12 13:30:33 +01:00
Ines Montani
72fb324d95
Add vector training script to bin [ci skip]
2019-03-12 12:07:56 +01:00
Ines Montani
3abf0e6b9f
Replace dev-resources links with real examples
2019-03-12 12:07:40 +01:00
Ines Montani
59c0620487
Auto-format
2019-03-12 12:07:11 +01:00
Ines Montani
1664d1fa62
Update universe [ci skip]
2019-03-12 11:13:03 +01:00
Matthew Honnibal
70e5058d72
Update push-tag script
2019-03-11 22:27:10 +01:00
Matthew Honnibal
062934aa12
Set version to v2.1.0a12
2019-03-11 22:26:19 +01:00
Ines Montani
886e5966c0
Update test_displacy.py
2019-03-11 19:03:52 +01:00
Ines Montani
4bd2688eac
💫 Fix displaCy support for RTL languages ( #3393 )
...
Closes #2091 .
## Description
With the new `vocab.writing_system` property introduced in #3390 (exposed via the language defaults), I was able to finally fix this (I think!). Based on the `Doc`, dispaCy now detects whether it's a RTL or LTR language and adjusts the visualization accordingly. Wherever possible, I've also added `direction` and `lang` attributes.
Entity visualization now looks like this:
<img width="318" alt="Screenshot 2019-03-11 at 16 06 51" src="https://user-images.githubusercontent.com/13643239/54136866-d97afd80-441c-11e9-8c27-3d46994cc833.png ">
And dependencies like this (ignore the most likely incorrect tags and dependencies):
<img width="621" alt="Screenshot 2019-03-11 at 16 51 59" src="https://user-images.githubusercontent.com/13643239/54137771-8b66f980-441e-11e9-8460-0682b95eef2a.png ">
### Types of change
enhancement, bug fix
## Checklist
<!--- Before you submit the PR, go over this checklist and make sure you can
tick off all the boxes. [] -> [x] -->
- [x] I have submitted the spaCy Contributor Agreement.
- [x] I ran the tests, and all new and existing tests passed.
- [x] My changes don't require a change to the documentation, or if they do, I've added all required information.
2019-03-11 18:52:50 +01:00
Ines Montani
b1f5f39a19
Merge branch 'master' into develop
2019-03-11 17:11:13 +01:00
Ines Montani
cdd418b93e
Auto-format [ci skip]
2019-03-11 17:10:50 +01:00
Matthew Honnibal
b0b990e405
Fix token.conjuncts ( closes #795 ) ( #3392 )
...
* Implement conjuncts method
* Add span.conjuncts property
* Un-xfail token.conjuncts tests
* Update docs for token.conjuncts and span.conjuncts
* Fix merge error in token.conjuncts
2019-03-11 17:05:45 +01:00
Matthew Honnibal
e2b9b523ce
Merge branch 'develop' of https://github.com/explosion/spaCy into develop
2019-03-11 15:59:28 +01:00
Ines Montani
47e9c274ef
Tidy up property code style ( #3391 )
...
Use decorator if properties only have a getter and existing syntax if there's getter and setter
2019-03-11 15:59:09 +01:00
Matthew Honnibal
db79a704bf
Add xfail tests for token.conjuncts
2019-03-11 15:46:52 +01:00
Ines Montani
c3df4d1108
Move displaCy tests to own file
2019-03-11 15:28:34 +01:00
Ines Montani
c5a407e95a
Fix code style
2019-03-11 15:28:22 +01:00
Ines Montani
25cb764e64
Document new API [ci skip]
2019-03-11 15:23:53 +01:00
Matthew Honnibal
39a4741e26
Add support for vocab.writing_system property ( #3390 )
...
* Add xfail test for vocab.writing_system
* Add vocab.writing_system property
* Set Language.Defaults.writing_system
* Set default writing system
* Remove xfail on test_vocab_writing_system
2019-03-11 15:23:20 +01:00
Matthew Honnibal
05ef0a5abb
Merge branch 'develop' of https://github.com/explosion/spaCy into develop
2019-03-11 14:33:15 +01:00
Ines Montani
ee4f312e89
Add writing_system to ArabicDefaults (experimental)
2019-03-11 14:22:23 +01:00
Ines Montani
ebcf2bb1c3
Add Doc.lang and Doc.lang_
2019-03-11 14:21:40 +01:00
Ines Montani
ef80cfde6f
Fix pickling of Japanese ( closes #3191 )
2019-03-11 13:34:23 +01:00
Ines Montani
c399162a82
Tidy up
2019-03-11 13:34:14 +01:00
Ines Montani
6cc129bb26
Merge branch 'develop' into spacy.io
2019-03-11 13:01:05 +01:00
Ines Montani
7c05ca01e8
💫 Support mutable default values for extension attributes ( #3389 )
...
* Support mutable default values in extensions
* Update documentation
2019-03-11 12:50:44 +01:00
Ines Montani
e77220e3ae
Merge branch 'master' into develop [ci skip]
2019-03-11 12:23:24 +01:00
Matthew Honnibal
4e8a07c7d3
Set version to v2.1.0a11
2019-03-11 10:45:06 +01:00
Ines Montani
6768dfd6e7
Merge branch 'develop' into spacy.io
2019-03-11 01:38:54 +01:00