Skip to content

CompletionLogprobs

Namespace: LLama.OldVersion

Caution

The entire LLama.OldVersion namespace will be removed


public class CompletionLogprobs : System.IEquatable`1[[LLama.OldVersion.CompletionLogprobs, LLamaSharp, Version=0.5.0.0, Culture=neutral, PublicKeyToken=null]]

Inheritance ObjectCompletionLogprobs
Implements IEquatable<CompletionLogprobs>

Properties

TextOffset

public Int32[] TextOffset { get; set; }

Property Value

Int32[]

TokenLogProbs

public Single[] TokenLogProbs { get; set; }

Property Value

Single[]

Tokens

public String[] Tokens { get; set; }

Property Value

String[]

TopLogprobs

public Dictionary`2[] TopLogprobs { get; set; }

Property Value

Dictionary`2[]

Constructors

CompletionLogprobs(Int32[], Single[], String[], Dictionary`2[])

public CompletionLogprobs(Int32[] TextOffset, Single[] TokenLogProbs, String[] Tokens, Dictionary`2[] TopLogprobs)

Parameters

TextOffset Int32[]

TokenLogProbs Single[]

Tokens String[]

TopLogprobs Dictionary`2[]

Methods

ToString()

public string ToString()

Returns

String

PrintMembers(StringBuilder)

protected bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

Boolean

GetHashCode()

public int GetHashCode()

Returns

Int32

Equals(Object)

public bool Equals(object obj)

Parameters

obj Object

Returns

Boolean

Equals(CompletionLogprobs)

public bool Equals(CompletionLogprobs other)

Parameters

other CompletionLogprobs

Returns

Boolean

<Clone>$()

public CompletionLogprobs <Clone>$()

Returns

CompletionLogprobs

Deconstruct(Int32[]&, Single[]&, String[]&, Dictionary`2[]&)

public void Deconstruct(Int32[]& TextOffset, Single[]& TokenLogProbs, String[]& Tokens, Dictionary`2[]& TopLogprobs)

Parameters

TextOffset Int32[]&

TokenLogProbs Single[]&

Tokens String[]&

TopLogprobs Dictionary`2[]&