Huggingface.js documentation

Giao diện: TextGenerationStreamToken

Hugging Face's logo
Join the Hugging Face community

and get access to the augmented documentation experience

to get started

Giao diện: TextGenerationStreamToken

Thuộc tính

id

• id: number

Token ID từ bộ phân từ của mô hình

Được định nghĩa trong

inference/src/tasks/nlp/textGenerationStream.ts:9


logprob

• logprob: number

Logprob

Được định nghĩa trong

inference/src/tasks/nlp/textGenerationStream.ts:13


special

• special: boolean

Token có phải là token đặc biệt không Có thể được sử dụng để bỏ qua các token khi nối

Được định nghĩa trong

inference/src/tasks/nlp/textGenerationStream.ts:18


text

• text: string

Văn bản token

Được định nghĩa trong

inference/src/tasks/nlp/textGenerationStream.ts:11

Update on GitHub