Commit Graph

14086 Commits

Author SHA1 Message Date
Matthew Honnibal
bd04ea0b02 Fix transition has_gold 2021-01-25 16:48:45 +11:00
Matthew Honnibal
b2044d510e Inc version 2021-01-25 16:21:54 +11:00
Matthew Honnibal
585ee4c81c Inc version 2021-01-25 15:27:05 +11:00
Matthew Honnibal
38ad6c7b6a Fix parser oracle 2021-01-25 15:26:43 +11:00
Matthew Honnibal
46b6197248 Inc version 2021-01-25 14:52:14 +11:00
Matthew Honnibal
19747d98d1 Fix 2021-01-25 14:51:46 +11:00
Matthew Honnibal
772248f84a Inc version 2021-01-25 14:40:31 +11:00
Matthew Honnibal
456c881ae3 Try to fix parser training 2021-01-25 14:40:05 +11:00
Matthew Honnibal
3a6b93ae3a Inc version 2021-01-25 13:29:08 +11:00
Matthew Honnibal
cef93d3ae7 Handle final states in get_oracle_sequence 2021-01-25 13:28:57 +11:00
Matthew Honnibal
a49975343e Inc version 2021-01-25 13:06:27 +11:00
Matthew Honnibal
be155ead9b Fix set_annotations during parser update 2021-01-25 11:56:36 +11:00
Matthew Honnibal
c631c355d1 Revert "Fix set_annotations in parser.update"
This reverts commit c6df0eafd0.
2021-01-25 11:22:57 +11:00
Matthew Honnibal
65f2270d59 Revert "Fix parser set_annotations during update"
This reverts commit eb138c89ed.
2021-01-25 11:22:43 +11:00
Matthew Honnibal
eb138c89ed Fix parser set_annotations during update 2021-01-25 10:52:40 +11:00
Matthew Honnibal
c6df0eafd0 Fix set_annotations in parser.update 2021-01-25 09:50:48 +11:00
Matthew Honnibal
bb15d5b22f Fix copying SpanGroups 2021-01-25 09:50:29 +11:00
Matthew Honnibal
8f07e6c901 Upd version 2021-01-25 01:22:06 +11:00
Matthew Honnibal
351ce600c5 Fix dict proxy copy 2021-01-25 01:21:47 +11:00
Matthew Honnibal
827fb51e6c Fix set_annotations during Parser.update 2021-01-25 00:52:00 +11:00
Matthew Honnibal
492c948937 Add SpanGroups.copy method 2021-01-25 00:51:38 +11:00
Matthew Honnibal
8a22161b59 Change version 2021-01-25 00:23:43 +11:00
Matthew Honnibal
6117adcd6d Make vocab always own lexemes 2021-01-25 00:23:02 +11:00
Matthew Honnibal
4048ca01eb Set dev version 2021-01-25 00:08:49 +11:00
Matthew Honnibal
d5b1673790 Try to fix doc.copy 2021-01-24 23:54:36 +11:00
Matthew Honnibal
ffc371350a
Avoid assuming encode.get_dim('nO') is set in tok2vec (#6800) 2021-01-24 14:37:33 +11:00
KeshavG-lb
0a86d833d7
Spacy Cli info method causing backward compatibility issues (#6793)
* Spacy Cli info method causing backward compatibility issues #6791

fix backward compatibility by setting default value to exclude in info
method.

* setting empty list as default argument is dangerous.
so setting default to None and then setting it to emptylist, if None.

Reference : https://nikos7am.com/posts/mutable-default-arguments/
2021-01-23 11:21:43 +01:00
Luigi Coniglio
e83c818a78
DependencyMatcher improvements (fix #6678) (#6744)
* Adding contributor agreement for user werew

* [DependencyMatcher] Comment and clean code

* [DependencyMatcher] Use defaultdicts

* [DependencyMatcher] Simplify _retrieve_tree method

* [DependencyMatcher] Remove prepended underscores

* [DependencyMatcher] Address TODO and move grouping of token's positions out of the loop

* [DependencyMatcher] Remove _nodes attribute

* [DependencyMatcher] Use enumerate in _retrieve_tree method

* [DependencyMatcher] Clean unused vars and use camel_case naming

* [DependencyMatcher] Memoize node+operator map

* Add root property to Token

* [DependencyMatcher] Groups matches by root

* [DependencyMatcher] Remove unused _keys_to_token attribute

* [DependencyMatcher] Use a list to map tokens to matcher's keys

* [DependencyMatcher] Remove recursion

* [DependencyMatcher] Use a generator to retrieve matches

* [DependencyMatcher] Remove unused memory pool

* [DependencyMatcher] Hide private methods and attributes

* [DependencyMatcher] Improvements to the matches validation

* Apply suggestions from code review

Co-authored-by: Matthew Honnibal <honnibal+gh@gmail.com>

* [DependencyMatcher] Fix keys_to_position_maps

* Remove Token.root property

* [DependencyMatcher] Remove functools' lru_cache

Co-authored-by: Matthew Honnibal <honnibal+gh@gmail.com>
2021-01-22 11:20:08 +11:00
Adriane Boyd
d0236136a2
Fix default config init in Transformer API docs (#6781) 2021-01-21 23:18:03 +08:00
Matthew Honnibal
c54c300680 Use thinc v8.0.0 2021-01-21 23:51:35 +11:00
Sofie Van Landeghem
d93cd3b7c0
remove artificially duplicated test [ci skip] 2021-01-21 10:53:16 +01:00
Sofie Van Landeghem
e680efc7cc
Set annotations in update (#6767)
* bump to 3.0.0rc4

* do set_annotations in component update calls

* update docs and remove set_annotations flag

* fix EL test
2021-01-20 11:49:25 +11:00
Sofie Van Landeghem
57640aa838
warn when frozen components break listener pattern (#6766)
* warn when frozen components break listener pattern

* few notes in the documentation

* update arg name

* formatting

* cleanup

* specify listeners return type
2021-01-20 11:12:35 +11:00
Matthew Honnibal
88acbfc050
Copy the Example objects (and their predicted Doc) in nlp.evaluate() and nlp.update() (#6765)
* Make copy of examples in nlp.update and nlp.evaluate

* Avoid circular import

* Fix evaluate
2021-01-19 16:47:44 +01:00
Sofie Van Landeghem
bfc212e68f
fix duplicate from merge [ci skip] 2021-01-19 12:14:35 +01:00
Ines Montani
4a1029a9b6 Add infobox [ci skip] 2021-01-19 19:18:39 +11:00
Ines Montani
dd04e9a64a
Merge pull request #6761 from adrianeboyd/docs/add-xx-sent [ci skip]
Add xx_sent_ud_sm model to website
2021-01-19 19:06:13 +11:00
Adriane Boyd
7cd5c9e098 Add xx_sent_ud_sm model to website 2021-01-19 09:02:35 +01:00
Ines Montani
76e25afcd7
Merge pull request #6757 from adrianeboyd/docs/mk-ru-langs [ci skip]
Update languages for website
2021-01-19 11:10:48 +11:00
Sofie Van Landeghem
c8761b0e6e
rewrite Maxout layer as separate layers to avoid shape inference trouble (#6760) 2021-01-19 07:37:17 +08:00
Adriane Boyd
26c34ab8b0
Fix parser resizing for cupy (#6758) 2021-01-18 20:43:15 +01:00
Matthew Honnibal
c2a18e4fa3 Update textcat ensemble model 2021-01-19 02:53:02 +11:00
Ines Montani
f50502dad7 Update docs [ci skip] 2021-01-19 00:22:47 +11:00
Adriane Boyd
e8f6400923 Update languages for website
* Add Macedonian
* Add Russian dependencies
* Switch Chinese dependency to spacy-pkuseg
2021-01-18 14:09:34 +01:00
Ines Montani
2ae8dfbb93 Fix website [ci skip] 2021-01-18 22:31:32 +11:00
Ines Montani
e697609fef Update docstrings and types [ci skip] 2021-01-18 22:31:26 +11:00
Ines Montani
b331653ade
Merge pull request #6731 from explosion/feature/spacy-legacy 2021-01-18 12:21:03 +11:00
Ines Montani
f4d547b73c Fix error code 2021-01-18 11:43:45 +11:00
Ines Montani
1090d3d675 Merge branch 'develop' into feature/spacy-legacy 2021-01-18 11:43:39 +11:00
Ines Montani
09cacbb7ee Fix website [ci skip] 2021-01-18 11:37:04 +11:00