diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2024-01-15 12:22:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-15 12:22:09 +0100 |
commit | 829debe2d05daefe2444360dd138d79d09249313 (patch) | |
tree | ce9913548e5e30f8a68707549144adfdd2b70b7e /linguistics | |
parent | e9dda52b68c0ebd463c09df786b2e00fd337d06b (diff) |
Revert "Support parameter references in embed"
Diffstat (limited to 'linguistics')
-rw-r--r-- | linguistics/abi-spec.json | 4 | ||||
-rw-r--r-- | linguistics/src/main/java/com/yahoo/language/process/Embedder.java | 10 |
2 files changed, 1 insertions, 13 deletions
diff --git a/linguistics/abi-spec.json b/linguistics/abi-spec.json index dc6a62cc463..1ffb879e57e 100644 --- a/linguistics/abi-spec.json +++ b/linguistics/abi-spec.json @@ -344,9 +344,7 @@ "public java.lang.String getDestination()", "public com.yahoo.language.process.Embedder$Context setDestination(java.lang.String)", "public java.lang.String getEmbedderId()", - "public com.yahoo.language.process.Embedder$Context setEmbedderId(java.lang.String)", - "public java.util.Map getContextValues()", - "public com.yahoo.language.process.Embedder$Context setContextValues(java.util.Map)" + "public com.yahoo.language.process.Embedder$Context setEmbedderId(java.lang.String)" ], "fields" : [ ] }, diff --git a/linguistics/src/main/java/com/yahoo/language/process/Embedder.java b/linguistics/src/main/java/com/yahoo/language/process/Embedder.java index d9d2256d0c1..fa141977d5d 100644 --- a/linguistics/src/main/java/com/yahoo/language/process/Embedder.java +++ b/linguistics/src/main/java/com/yahoo/language/process/Embedder.java @@ -88,7 +88,6 @@ public interface Embedder { private Language language = Language.UNKNOWN; private String destination; private String embedderId = "unknown"; - private Map<String, String> contextValues; public Context(String destination) { this.destination = destination; @@ -139,15 +138,6 @@ public interface Embedder { this.embedderId = embedderId; return this; } - - /** Returns a read-only map of context key-values which can be looked up during conversion. */ - public Map<String, String> getContextValues() { return contextValues; } - - public Context setContextValues(Map<String, String> contextValues) { - this.contextValues = Map.copyOf(contextValues); - return this; - } - } class FailingEmbedder implements Embedder { |