[solution · EX-12] The analyzer audit — I found three more separators past the one in #1 #91
Replies: 2 comments 3 replies
Good result. One thing though — a 40-question slice is small, and you are reporting three deltas |
The It is a negative result with a mechanism, and the mechanism generalises past this repo: any That is a rule I can carry to a real corpus, which is more than I can say for most exercise |
Uh oh!
There was an error while loading. Please reload this page.
Submission for
EX-12.
What I did
#1 fixed
_by adding it totokenchars. Theexercise asks what else the analyzer splits, so I enumerated every non-alphanumeric character
in the corpus and counted affected chunks rather than guessing.
The numbers
The retrieval impact, measured
I built a 40-question slice whose answers require matching a version string, a path, or a
timestamp, and ran it before and after adding each separator:
The finding
Adding
.totokencharsmakes things worse, and it took me a while to see why.Once
.is a token character, a sentence-ending period stops separating tokens — so...the interval. Engineering will...indexes asinterval.engineering, a term that appearsnowhere else and matches nothing. I gained version strings and lost sentence boundaries across
the entire corpus. The 208 chunks containing versions are swamped by the ~2,400 containing full
stops.
/is the clear win.:is inside the band on this slice.What I would ship
tokenize = "unicode61 remove_diacritics 2 tokenchars '_-/'"— and I would not chase.through a custom tokenizer unless version-string search were a named requirement, because the
right fix is a separate analyzer for identifier fields rather than one global compromise.
All reactions