mirror of
https://github.com/explosion/spaCy.git
synced 2025-09-18 18:12:45 +03:00
set versions to v1 instead of v0
This commit is contained in:
parent
2e3c0e2256
commit
910026582d
|
@ -17,7 +17,7 @@ from .coref_util import (
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@registry.architectures("spacy.Coref.v0")
|
@registry.architectures("spacy.Coref.v1")
|
||||||
def build_coref(
|
def build_coref(
|
||||||
tok2vec: Model[List[Doc], List[Floats2d]],
|
tok2vec: Model[List[Doc], List[Floats2d]],
|
||||||
get_mentions: Any = get_candidate_mentions,
|
get_mentions: Any = get_candidate_mentions,
|
||||||
|
|
|
@ -148,7 +148,7 @@ def get_candidate_mentions(
|
||||||
return (begins, ends)
|
return (begins, ends)
|
||||||
|
|
||||||
|
|
||||||
@registry.misc("spacy.CorefCandidateGenerator.v0")
|
@registry.misc("spacy.CorefCandidateGenerator.v1")
|
||||||
def create_mention_generator() -> Any:
|
def create_mention_generator() -> Any:
|
||||||
return get_candidate_mentions
|
return get_candidate_mentions
|
||||||
|
|
||||||
|
|
|
@ -27,14 +27,14 @@ from ..coref_scorer import Evaluator, get_cluster_info, b_cubed
|
||||||
|
|
||||||
default_config = """
|
default_config = """
|
||||||
[model]
|
[model]
|
||||||
@architectures = "spacy.Coref.v0"
|
@architectures = "spacy.Coref.v1"
|
||||||
max_span_width = 20
|
max_span_width = 20
|
||||||
mention_limit = 3900
|
mention_limit = 3900
|
||||||
dropout = 0.3
|
dropout = 0.3
|
||||||
hidden = 1000
|
hidden = 1000
|
||||||
|
|
||||||
[model.get_mentions]
|
[model.get_mentions]
|
||||||
@misc = "spacy.CorefCandidateGenerator.v0"
|
@misc = "spacy.CorefCandidateGenerator.v1"
|
||||||
|
|
||||||
[model.tok2vec]
|
[model.tok2vec]
|
||||||
@architectures = "spacy.Tok2Vec.v2"
|
@architectures = "spacy.Tok2Vec.v2"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user