mirror of https://github.com/explosion/spaCy.git
Make DocBin output stable data (set iteration)
This commit is contained in:
parent
26afd3bd90
commit
092ce4648e
|
@ -171,7 +171,7 @@ class DocBin:
|
|||
"tokens": tokens.tobytes("C"),
|
||||
"spaces": spaces.tobytes("C"),
|
||||
"lengths": numpy.asarray(lengths, dtype="int32").tobytes("C"),
|
||||
"strings": list(self.strings),
|
||||
"strings": list(sorted(self.strings)),
|
||||
"cats": self.cats,
|
||||
"flags": self.flags,
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue