mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-11 04:08:09 +03:00
Remove caching, as doesn't seem to help for now.
This commit is contained in:
parent
f43d53f2c5
commit
262cbe356e
|
@ -203,16 +203,16 @@ cdef ActionC get_action(PatternStateC state, const TokenC* token, const attr_t*
|
||||||
|
|
||||||
Problem: If a quantifier is matching, we're adding a lot of open partials
|
Problem: If a quantifier is matching, we're adding a lot of open partials
|
||||||
'''
|
'''
|
||||||
cached_match = <uint64_t>cache.get(state.pattern.key)
|
#cached_match = <uint64_t>cache.get(state.pattern.key)
|
||||||
cdef char is_match
|
cdef char is_match
|
||||||
if cached_match == 0:
|
#if cached_match == 0:
|
||||||
is_match = get_is_match(state, token, extra_attrs)
|
is_match = get_is_match(state, token, extra_attrs)
|
||||||
cached_match = is_match + 1
|
# cached_match = is_match + 1
|
||||||
cache.set(state.pattern.key, <void*>cached_match)
|
# cache.set(state.pattern.key, <void*>cached_match)
|
||||||
elif cached_match == 1:
|
#elif cached_match == 1:
|
||||||
is_match = 0
|
# is_match = 0
|
||||||
else:
|
#else:
|
||||||
is_match = 1
|
# is_match = 1
|
||||||
quantifier = get_quantifier(state)
|
quantifier = get_quantifier(state)
|
||||||
is_final = get_is_final(state)
|
is_final = get_is_final(state)
|
||||||
if quantifier == ZERO:
|
if quantifier == ZERO:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user