Skip to content

Commit

Permalink
Cosmetic changes according to comments in #1429
Browse files Browse the repository at this point in the history
See specifically
#1429 (comment)
  • Loading branch information
linas committed Feb 25, 2023
1 parent 6716b8d commit 1e7da3f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion link-grammar/tokenize/lookup-exprs.c
Original file line number Diff line number Diff line change
Expand Up @@ -242,11 +242,16 @@ static bool determine_word_expressions(Sentence sent, Gword *w,
else if (dict->unknown_word_defined && dict->use_unknown_word)
{
we = build_word_expressions(sent, w, UNKNOWN_WORD, opts);
assert(we, UNKNOWN_WORD " must be defined in the dictionary!");
assert(we, UNKNOWN_WORD " has no expressions in the dictionary!");
w->status |= WS_UNKNOWN;
}
else
{
if (dictionary_word_is_known(dict, s))
{
prt_error("Internal Error: Word '%s' has bad status\n", s);
return false;
}
prt_error("Error: Word '%s': word is unknown\n", s);
return false;
}
Expand Down

0 comments on commit 1e7da3f

Please sign in to comment.