Huggingface.js 文件

介面:TextGenerationStreamToken

Hugging Face's logo
加入 Hugging Face 社群

並獲得增強的文件體驗

開始使用

介面:TextGenerationStreamToken

屬性

id

id: number

來自模型分詞器的 Token ID

定義在

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


對數機率

logprob: number

對數機率

定義在

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


special

special: boolean

標記是否為特殊標記。可用於在連線時忽略標記

定義在

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


文字

text: string

標記文字

定義在

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

< > 在 GitHub 上更新

© . This site is unofficial and not affiliated with Hugging Face, Inc.