mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-26 17:24:41 +03:00
* Add profile directive
This commit is contained in:
parent
8b5de4a411
commit
2b5421e60c
|
@ -1,3 +1,4 @@
|
||||||
|
# cython: profile=True
|
||||||
"""
|
"""
|
||||||
Fill an array, context, with every _atomic_ value our features reference.
|
Fill an array, context, with every _atomic_ value our features reference.
|
||||||
We then write the _actual features_ as tuples of the atoms. The machinery
|
We then write the _actual features_ as tuples of the atoms. The machinery
|
||||||
|
@ -245,6 +246,11 @@ unigrams = (
|
||||||
(N0lW, N0lp),
|
(N0lW, N0lp),
|
||||||
(N0lc6, N0lp),
|
(N0lc6, N0lp),
|
||||||
(N0lL,),
|
(N0lL,),
|
||||||
|
|
||||||
|
(S1lW, S1lp),
|
||||||
|
(S1lc6, S1lp),
|
||||||
|
(S1lL,),
|
||||||
|
(S1lp,),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -290,6 +296,7 @@ s1_s0 = (
|
||||||
(S1L, S0L, S0W),
|
(S1L, S0L, S0W),
|
||||||
(S1L, S0L, S0p),
|
(S1L, S0L, S0p),
|
||||||
(S1p, S1L, S0L, S0p),
|
(S1p, S1L, S0L, S0p),
|
||||||
|
(S1p, S1lp, S0p),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -303,6 +310,7 @@ s1_n0 = (
|
||||||
(S1c6, S1p, N0c6, N0p),
|
(S1c6, S1p, N0c6, N0p),
|
||||||
(S1L, N0p),
|
(S1L, N0p),
|
||||||
(S1p, S1rL, N0p),
|
(S1p, S1rL, N0p),
|
||||||
|
(S1p, S1lp, S1rp, N0p)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user