Class RecommenderContext
- java.lang.Object
-
- de.tudarmstadt.ukp.inception.recommendation.api.recommender.RecommenderContext
-
public class RecommenderContext extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RecommenderContext.Key<T>
-
Constructor Summary
Constructors Constructor Description RecommenderContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> java.util.Optional<T>
get(RecommenderContext.Key<T> aKey)
boolean
isReadyForPrediction()
void
markAsReadyForPrediction()
Mark context as ready meaning that it can be used to generate predictions.<T> void
put(RecommenderContext.Key<T> aKey, T aValue)
-
-
-
Method Detail
-
get
@Nullable public <T> java.util.Optional<T> get(RecommenderContext.Key<T> aKey)
-
put
public <T> void put(RecommenderContext.Key<T> aKey, T aValue)
-
markAsReadyForPrediction
public void markAsReadyForPrediction()
Mark context as ready meaning that it can be used to generate predictions.
-
isReadyForPrediction
public boolean isReadyForPrediction()
- Returns:
- whether the context is ready to be used for making predictions.
-
-