Skip to content

Commit

Permalink
cleaning; review instance
Browse files Browse the repository at this point in the history
  • Loading branch information
kermitt2 committed Feb 5, 2024
1 parent 2ab91c2 commit b0145fa
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ public class LicenseClassifier {
private DeLFTClassifierModel classifierLicense = null;

// binary classifiers to be added if used

private Boolean useBinary = false;

private JsonParser parser;
Expand All @@ -35,7 +34,11 @@ public class LicenseClassifier {

public static LicenseClassifier getInstance() {
if (instance == null) {
getNewInstance();
synchronized (LicenseClassifier.class) {
if (instance == null) {
getNewInstance();
}
}
}
return instance;
}
Expand All @@ -48,10 +51,6 @@ private static synchronized void getNewInstance() {
}

private LicenseClassifier() {
//this.useBinary = configuration.getUseBinaryContextClassifiers();
//if (this.useBinary == null)
// this.useBinary = false;

this.classifierCopyrightsOwner = new DeLFTClassifierModel("copyright", GrobidProperties.getDelftArchitecture("copyright"));
this.classifierLicense = new DeLFTClassifierModel("license", GrobidProperties.getDelftArchitecture("license"));
}
Expand Down

0 comments on commit b0145fa

Please sign in to comment.