Closed trondtynnol closed 4 months ago
For reference, this looks similar to #9 (which was marked as fixed as of 9a4b26fbe2d788904dd70a4e138eb08f66002c25).
Maybe also check explicitly for None
, in addition to the empty string?
You are right, this is a duplicate of #9 . But unfortunately I had to undo 9a4b26fbe2d788904dd70a4e138eb08f66002c25 in f97c14c1bc130d539e8fd70ec13991563e6d0b77, as it broke the "hverandre" functionality (it was never deployed).
Fixed as of 54946ce860511f37b0a2a0d15089dc9caaaa83b4 (I hope!)
When searching for a word which contains an empty lemma with only tags as one of its analyzes, NDS returns a 500 Internal Server Error.
Example: Search for "yksitoista" in https://saan.oahpa.no/fin/sms (One of the analyses of "yksitoista" is
yksi+Num+Sg+Nom#+Cmp#toinen+N+Sg+Par
containing the empty lemma+Cmp
)NDS should be robust against these kinds of analyses.
Note: Sometimes the internal lemma in NDS is supposed to be
None
, like the intermediate steps when having searched "hverandre" at https://sanit.oahpa.no/nob/sme.