Closed plefebvre91 closed 3 years ago
Hi! Yes, this would be a nice addition! Would you mind contributing a patch? Preferably with tests :)
Oups, I probably got a bit confused, it seems it already do the job :confused: (The unit test I was writing was OK before I wrote the code :expressionless: ).
That’s a good thing!
Hi,
Maybe adding a
__next__()
method to theTokenList
type could be interesting. Currently when the TokenList is transformed into an iterator withiter()
,next(my_list)
returns only the first element of the tuple (id
/form
/lemma
/etc.).