Token Klasa

Reprezentuje pojedynczy token, taki jak wyraz w ciągu wejściowym.

Konstruktor

Token(start: int, end: int, text: str, normalized: str)

Parametry

Nazwa Opis
start
Wymagane
<xref:<xref:botbuilder.dialogs.choices.The index> of <xref:botbuilder.dialogs.choices.the first character> of <xref:the token within the outer input string.>>
end
Wymagane
<xref:<xref:botbuilder.dialogs.choices.The index> of <xref:botbuilder.dialogs.choices.the last character> of <xref:the token within the outer input string.>>
text
Wymagane
<xref:<xref:botbuilder.dialogs.choices.The original text> of <xref:the token.>>
normalized
Wymagane
<xref:<xref:botbuilder.dialogs.choices.A normalized version> of <xref:the token. This can include things like lower casing>> lub <xref:stemming.>