Skip to content

Commit

Permalink
Remove commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
kderusso committed May 2, 2024
1 parent d4a3b2c commit d2dd882
Showing 1 changed file with 0 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,34 +22,6 @@ public class TextExpansionResults extends NlpInferenceResults {

public static final String NAME = "text_expansion_result";

// public record WeightedToken(String token, float weight) implements Writeable, ToXContentFragment {
//
// public WeightedToken(StreamInput in) throws IOException {
// this(in.readString(), in.readFloat());
// }
//
// @Override
// public void writeTo(StreamOutput out) throws IOException {
// out.writeString(token);
// out.writeFloat(weight);
// }
//
// @Override
// public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {
// builder.field(token, weight);
// return builder;
// }
//
// public Map<String, Object> asMap() {
// return Map.of(token, weight);
// }
//
// @Override
// public String toString() {
// return Strings.toString(this);
// }
// }

private final String resultsField;
private final List<WeightedToken> weightedTokens;

Expand Down

0 comments on commit d2dd882

Please sign in to comment.