Skip to content

Commit

Permalink
#5239 - Relation Layer Coloring Rule Not Applied in Interface
Browse files Browse the repository at this point in the history
- Fixed bug
  • Loading branch information
reckart committed Jan 21, 2025
1 parent 722d585 commit 99ba59e
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public static final class Builder
{
private AnnotationLayer layer;
private VID vid;
private int equivalenceSet;
private int equivalenceSet = -1;
private Map<String, String> features = Collections.emptyMap();
private VID source;
private VID target;
Expand All @@ -178,61 +178,61 @@ public Builder forAnnotation(AnnotationFS aAnnotation)

public Builder withLayer(AnnotationLayer aLayer)
{
this.layer = aLayer;
layer = aLayer;
return this;
}

public Builder withVid(VID aVid)
{
this.vid = aVid;
vid = aVid;
return this;
}

public Builder withEquivalenceSet(int aEquivalenceSet)
{
this.equivalenceSet = aEquivalenceSet;
equivalenceSet = aEquivalenceSet;
return this;
}

public Builder withFeatures(Map<String, String> aFeatures)
{
this.features = aFeatures;
features = aFeatures;
return this;
}

public Builder withSource(FeatureStructure aSource)
{
this.source = VID.of(aSource);
source = VID.of(aSource);
return this;
}

public Builder withSource(VID aSource)
{
this.source = aSource;
source = aSource;
return this;
}

public Builder withTarget(FeatureStructure aTarget)
{
this.target = VID.of(aTarget);
target = VID.of(aTarget);
return this;
}

public Builder withTarget(VID aTarget)
{
this.target = aTarget;
target = aTarget;
return this;
}

public Builder withLabel(String aLabel)
{
this.label = aLabel;
label = aLabel;
return this;
}

public Builder placeholder()
{
this.placeholder = true;
placeholder = true;
return this;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public static final class Builder
{
private AnnotationLayer layer;
private VID vid;
private int equivalenceSet;
private int equivalenceSet = -1;
private Map<String, String> features = Collections.emptyMap();
private List<VRange> ranges;
private String label;
Expand All @@ -156,43 +156,43 @@ public Builder forAnnotation(AnnotationFS aAnnotation)

public Builder withLayer(AnnotationLayer aLayer)
{
this.layer = aLayer;
layer = aLayer;
return this;
}

public Builder withVid(VID aVid)
{
this.vid = aVid;
vid = aVid;
return this;
}

public Builder withEquivalenceSet(int aEquivalenceSet)
{
this.equivalenceSet = aEquivalenceSet;
equivalenceSet = aEquivalenceSet;
return this;
}

public Builder withFeatures(Map<String, String> aFeatures)
{
this.features = aFeatures;
features = aFeatures;
return this;
}

public Builder withRange(VRange aRange)
{
this.ranges = asList(aRange);
ranges = asList(aRange);
return this;
}

public Builder withLabel(String aLabel)
{
this.label = aLabel;
label = aLabel;
return this;
}

public Builder placeholder()
{
this.placeholder = true;
placeholder = true;
return this;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -546,19 +546,19 @@ private void invokeRecommender(Predictions aIncomingPredictions, PredictionConte
// Extract the suggestions from the data which the recommender has written into the CAS
// We need this only for the extraction, but there is no point in investing the time for
// the prediction if we cannot extract the data afterwards - hence we obtain it now and
// skip the prediciton if it is not available
// skip the prediction if it is not available
var maybeSuggestionSupport = suggestionSupportRegistry.findGenericExtension(rec);
if (maybeSuggestionSupport.isEmpty()) {
logNoSuggestionSupportAvailable(aIncomingPredictions, rec);
return;
}
var suggestionSupport = maybeSuggestionSupport.get();

// Perform the actual prediction
var startTime = System.currentTimeMillis();
var predictedRange = predict(aIncomingPredictions, aCtx, aEngine, aPredictionCas,
aPredictionRange);

var suggestionSupport = maybeSuggestionSupport.get();
var generatedSuggestions = extractSuggestions(aIncomingPredictions, aDocument, aOriginalCas,
aPredictionCas, rec, suggestionSupport);

Expand Down

0 comments on commit 99ba59e

Please sign in to comment.