Skip to content

Commit

Permalink
Bugfix: Make sure lexicon is not reloaded every time a realisation is…
Browse files Browse the repository at this point in the history
… triggered (fixes #3)
  • Loading branch information
DaBr01 committed Mar 10, 2023
1 parent 843d14e commit 439d155
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/simplenlgde/syntax/ClauseHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ static NLGElement realise(SyntaxProcessor parent, PhraseElement phrase) {
ListElement realisedElement = null;
NLGElement splitVerb = null;
boolean interrogObj = false;
Lexicon lexicon = Lexicon.getDefaultLexicon();
NLGFactory nlgFactory = new NLGFactory(lexicon);
NLGFactory nlgFactory = phrase.getFactory();

if(phrase != null) {
realisedElement = new ListElement();
Expand Down

0 comments on commit 439d155

Please sign in to comment.