mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 01:16:28 +03:00
Auto-format [ci skip]
This commit is contained in:
parent
dd153b2b33
commit
78cb807a9a
|
@ -111,4 +111,3 @@ NORM_EXCEPTIONS = {}
|
||||||
for string, norm in _exc.items():
|
for string, norm in _exc.items():
|
||||||
NORM_EXCEPTIONS[string] = norm
|
NORM_EXCEPTIONS[string] = norm
|
||||||
NORM_EXCEPTIONS[string.title()] = norm
|
NORM_EXCEPTIONS[string.title()] = norm
|
||||||
|
|
||||||
|
|
|
@ -510,7 +510,7 @@ def decaying(start, stop, decay):
|
||||||
curr = float(start)
|
curr = float(start)
|
||||||
while True:
|
while True:
|
||||||
yield max(curr, stop)
|
yield max(curr, stop)
|
||||||
curr -= (decay)
|
curr -= decay
|
||||||
|
|
||||||
|
|
||||||
def minibatch_by_words(items, size, tuples=True, count_words=len):
|
def minibatch_by_words(items, size, tuples=True, count_words=len):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user