Difference between revisions of "Token"

From AI Dungeon Wiki
Jump to navigation Jump to search
[unchecked revision][unchecked revision]
(Created page)
 
(Improve definition cuz erin said im bad)
Line 1: Line 1:
A Token is a the unit a [[neural net]] sequence is made up of. In other words a [[neural net]] sequence is a list of tokens.
+
A Token is a the smallest unit of text a [[neural net]] processes on. The text inputted to the AI is first Tokenized so it is a list of tokens then sent to the AI.
 
==Tokenizations==
 
==Tokenizations==
 
Because the neural net takes in text as a sequence of tokens in order for text to be processed it first needs to be tokenized. This can be as simple as using characters or words as tokens, but more complex tokenizations lead to better results. The one used by [[AI Dungeon]] and [[GPT]] in general works with common character clusters for instance try would be converted to [try] and trying would be converted to [try][ing] that way the [[neural net]] can see the relations between words while not having to bother with individual characters.
 
Because the neural net takes in text as a sequence of tokens in order for text to be processed it first needs to be tokenized. This can be as simple as using characters or words as tokens, but more complex tokenizations lead to better results. The one used by [[AI Dungeon]] and [[GPT]] in general works with common character clusters for instance try would be converted to [try] and trying would be converted to [try][ing] that way the [[neural net]] can see the relations between words while not having to bother with individual characters.

Revision as of 03:40, 2 October 2020

A Token is a the smallest unit of text a neural net processes on. The text inputted to the AI is first Tokenized so it is a list of tokens then sent to the AI.

Tokenizations

Because the neural net takes in text as a sequence of tokens in order for text to be processed it first needs to be tokenized. This can be as simple as using characters or words as tokens, but more complex tokenizations lead to better results. The one used by AI Dungeon and GPT in general works with common character clusters for instance try would be converted to [try] and trying would be converted to [try][ing] that way the neural net can see the relations between words while not having to bother with individual characters.