Repository navigation
A patch release that fixes the arbiter: 0.4.5 could leave in the clear a person or a place that the
spaCy guard masks. Upgrade if you use arbiter=True or the gateway's --arbiter; both are off by
default. The guards also read a word after a token's colon that names no case. Without the arbiter
the stable tokens and the benchmarks are otherwise those of 0.4.5; with it, a name the two models
read as different types may have another stable token than in 0.4.5.
Security
- With the arbiter, a name the spaCy guard masks could go out in the clear. 0.4.5 said that a
person or a place the spaCy guard masks stays masked witharbiter=True. It did not. FastPDN's
"Wojnar razem" took in the spaCy model's "Wojnar", only the longer value was remembered, and the
name on an English line or in the conversation's next message went out; and a person FastPDN
read as a place was masked as one, or not at all with only people enabled. On the 1,000 texts of
OpenPII's test part and KPWr's 4,323 test sentences, of what the spaCy guard masks as a person
or a place and is named once more, where only the mapping protects it, 343 of 4,358 went out
(OpenPII 229 of 1,623, KPWr 114 of 2,735); in the text itself 2 of 3,946, and with only people
or only places enabled 88 of 2,191 and 43 of 1,936. Now none does, nor any of 8,031 in the worst
order of messages, with what only the arbiter finds in the mapping already, nor of 8,027 with
stable tokens. These keep one spelling of a person, and the arbiter now adds a person without the
title in front: "Pani Lindqvist" took the place of "Lindqvist". Withoutarbiter=Truenothing
changes.
Changed
- What the arbiter only adds never takes the type or the place of another detection, and a
name that such a span takes in stays a known value and joins the mapping, so its token may
not stand in the masked text. Spans it adds have the sourcearbiter_added. It masks 4,031
values whole on OpenPII's test part instead of 4,036 and 1,502 on KPWr's instead of 1,503, with
as many spans outside the values: over those 5,323 texts 6 letters fewer are masked than in
0.4.5, the "i", "Do" and "al." before a street's name and a Tibetan sign. The 13 documents and the
agent's calls give the same numbers.
Fixed
- A word written after a token's colon is read as text by the guards too. After the colon of a
token a model writes the case its sentence needs,<OSOBA_1:celownik>, and the token is masked
text. Any other word there is text, as the pipeline already read it, but the guards did not:
glued toOSOBA_4:, the Polish model found no surname in<OSOBA_4:Kubiak>, or found one it
read as an identifier, and the surname went out in the clear. The guards now read the colon
before such a word as a space, so a name they find there is masked, as<OSOBA_4:<OSOBA_5>>,
and comes back on restore; a case after the colon stays part of the token. What they do not
find still goes out: of 45 made-up sentences with a name after a token's colon, 0 were masked
before and 40 are now, 24 of the 27 Polish ones and 16 of the 18 English ones, with the arbiter
and without it. The arbiter also trims the>that FastPDN read onto the end of a name.