Commit Graph

14108 Commits

Author SHA1 Message Date
Matthew Honnibal
b67dd0cf89 Keep working through errors 2021-10-27 17:10:33 +02:00
Matthew Honnibal
c538eaf1c8 Work through tests 2021-10-26 01:21:51 +02:00
Matthew Honnibal
d765a4f8ee Cleaner handling of unseen classes 2021-10-25 22:34:29 +02:00
Matthew Honnibal
07a3581ff8 Support unseen classes in parser 2021-10-25 22:26:52 +02:00
Matthew Honnibal
4b5d1b53f6 Support unseen_classes in parser model 2021-10-25 22:21:17 +02:00
Matthew Honnibal
03018904ef Work on parser model 2021-10-25 16:11:58 +02:00
Matthew Honnibal
9c4a04d0c5 Uncython 2021-10-25 12:51:32 +02:00
Matthew Honnibal
1921e86813 Uncython ner.pyx and dep_parser.pyx 2021-10-25 12:51:14 +02:00
Matthew Honnibal
45ca12f07a Wire up parser model 2021-10-25 12:50:33 +02:00
Matthew Honnibal
71abe2e42d Wire up tb_framework to new parser model 2021-10-25 12:50:20 +02:00
Matthew Honnibal
0279aa036a Delete _precomputable_affine module 2021-10-25 12:28:57 +02:00
Matthew Honnibal
9b459f9ef2 Delete spacy.ml.parser_model 2021-10-25 12:28:31 +02:00
Matthew Honnibal
7b9c282469 Convert parser from cdef class 2021-10-25 12:28:13 +02:00
Matthew Honnibal
34aab9899f Prepare to remove parser_model.pyx 2021-10-25 12:22:46 +02:00
Matthew Honnibal
de8c88babb New progress on parser model refactor 2021-10-25 03:13:31 +02:00
Matthew Honnibal
267ffb5605 WIP refactor parser 2021-01-25 23:22:10 +11:00
Matthew Honnibal
b456929bfd WIP on rewrite parser 2021-01-25 23:20:30 +11:00
Matthew Honnibal
cda3b08dd1 Inc version 2021-01-25 19:17:57 +11:00
Matthew Honnibal
70bcc1f48e Upd parser 2021-01-25 19:17:41 +11:00
Matthew Honnibal
af0b3bc4d8 Inc version 2021-01-25 19:02:27 +11:00
Matthew Honnibal
5b2440a1fd Try to use real histories, not oracle 2021-01-25 18:59:52 +11:00
Matthew Honnibal
c3c462e562 Inc version 2021-01-25 16:48:58 +11:00
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