Skip to content

Commit

Permalink
Merge branch 'master' into development
Browse files Browse the repository at this point in the history
  • Loading branch information
ledsoft authored Sep 23, 2024
2 parents 91d8f5f + 45b793f commit 2f45d88
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,6 @@ public Term update(Term term) {
checkForInvalidTerminalStateAssignment(original, term.getState());
// Ensure the change is merged into the repo before analyzing other terms
final Term result = repositoryService.update(term);

// if the label changed, run analysis on all terms in the vocabulary
if (!Objects.equals(original.getLabel(), result.getLabel())) {
vocabularyService.runTextAnalysisOnAllTerms(getVocabularyReference(result.getVocabulary()));
Expand Down
10 changes: 10 additions & 0 deletions src/main/java/cz/cvut/kbss/termit/util/Configuration.java
Original file line number Diff line number Diff line change
Expand Up @@ -668,6 +668,8 @@ public static class TextAnalysis {
@Min(8)
private int textQuoteSelectorContextLength = 32;

private boolean disableVocabularyAnalysisOnTermEdit = false;

public String getUrl() {
return url;
}
Expand All @@ -691,6 +693,14 @@ public int getTextQuoteSelectorContextLength() {
public void setTextQuoteSelectorContextLength(int textQuoteSelectorContextLength) {
this.textQuoteSelectorContextLength = textQuoteSelectorContextLength;
}

public boolean isDisableVocabularyAnalysisOnTermEdit() {
return disableVocabularyAnalysisOnTermEdit;
}

public void setDisableVocabularyAnalysisOnTermEdit(boolean disableVocabularyAnalysisOnTermEdit) {
this.disableVocabularyAnalysisOnTermEdit = disableVocabularyAnalysisOnTermEdit;
}
}

@Validated
Expand Down

0 comments on commit 2f45d88

Please sign in to comment.