GPT3 Linguistics 101, a multi-part series. This is Part 1, On Structure.

Overview

Note about the intent of this essay series

Major Concepts in this Linguistics 101 Series

Notation Conventions

Any aspect that has been run through an algorithm/computation will be highlighted in grey.

Part 1: Basic Concepts of Structure

Lists (using Numbers)

a list and GPT3 extension of that list.
a list delimited by periods
|| list

Lists + Delimiters

1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,
1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,
1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,55,57,59,61,63,65,67,69,
1,2,3,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,
1,2,3,5,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,
1,2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,111,115,119,121,123,125,127,131,
mapping of prompt 1,2,3, to it’s output at temp=0, curie engine

Keeping Track of Details — a Necessary Sidebar

Lists within Lists

a list of numbers denoted by ()
lists of lists of numbers
(1,2,3,4,5),(1,2,3,4,5),(1,2,3,4,5),(1,2,3,4,5),(1,2,3,4,5),(1,2,3,4,5),(1,2,3,4,5),(1,2,3,4, (1,2,3,4,5),(1,2,3,4,5,6),(1,2,3,4,5,6,7),(1,2,3,4,5,6,7,8),(1,2,3,4,5,6,7,8,9),(1,2,3,4,5,6,7,8,9,10),(1,2,3,4,5,6,7,8,9,10,11),((2,4,6,8,10),(1,3,5,7,9),(2,4,6,8,10),(1,3,5,7,9),(2,4,6,8,10),(1,3,5,7,9),(2,4,6,8,10),(1,3,5,7,9),(2,4,6,8,10),(1,3,5,7,9),(2,4,6,8(2,4,6,8,10),(1,3,5,7,9,11),(2,4,6,8,10,12),(1,3,5,7,9,11,13),(2,4,6,8,10,12,14),(1,3,5,7,9,11,13,15),(2,4,6,8,10,12,14,16),(1,3,5,7,9,11,13,15,17),
(10012,10025,10038,10051,10064,10077,10090),(110012,110029,110046,110063,110080,110097,110114,110131,110148, 110165,110182,110199),(110212,110229,110246,110263,110280,110297,110314,110331,110348, 110365,110381,110398),(110412,110429,110446,110463,110480,110497,110514,110531,110548, 110565,110582,110599),(110612,110629,110646,110663,110680,110697,110714
(10012,10025,10038,10051,10064,10077,10090) => n+13(110012,110029,110046,110063,110080,110097,110114,110131,110148, 110165,110182,110199) => n+17(110212,110229,110246,110263,110280,110297,110314,110331,110348, 110365,110381,110398) => start list +13 and XXXX12 from end of previous list and then n+17 for each number in list(110412,110429,110446,110463,110480,110497,110514,110531,110548, 110565,110582,110599) => start list with XXXX12 and move hundreds place up 1 and n+17(110612,110629,110646,110663,110680,110697,110714 => start list with XXXX12 and move hundreds place up 1 and n+17
highlighting the probabilities.
highlighting the first number token in the completion
[7, 3064, 1065, 11, 3064, 1495, 11, 3064, 2548, 11, 3064, 4349, 11, 3064, 2414, 11, 3064, 3324, 11, 3064, 3829, 828, 7, 42060, 1065, 11, 42060, 1959, 11, 42060, 3510, 11, 42060, 5066, 11, 42060, 1795, 11, 42060, 5607, 11, 1157, 486, 1415, 11, 1157, 486, 3132, 11, 1157, 486, 2780, 11, 1367, 486, 2996, 11, 1157, 486, 6469, 11, 1157, 486, 2079, 828] 
=>
[7, 11442, 21777, 11, 11442, 23539, 11, 11442, 26912, 11, 11442, 29558, 11, 11442, 21033, 11, 11442, 26561, 11, 11442, 33638, 11, 11442, 31697, 11, 11442, 28978, 11, 9796, 24760, 11, 11442, 36626, 11, 11442, 31952, 828, 7, 11442, 39226, 11, 11442, 11785, 11, 11442, 27260, 11, 11442, 38380, 11, 11442, 22148, 11, 11442, 38073, 11, 11442, 47396, 11, 11442, 20, 3132, 11, 11442, 49934, 11, 9796, 47372, 11, 11442, 46044, 11, 11442, 43452, 828, 7, 11442, 43610, 11, 11442, 48602, 11, 11442, 27720, 11, 11442, 45791, 11, 11442, 37397, 11, 11442, 40035, 11, 11442, 45722]
plot of string integers vs their BPE
estimate frequency in corpus with BPE encoding
are the prime’s less frequently found in corpus? do they tokenize differently than say the even numbers?

Lists and Structure (using “Natural” Language)

courtesy of https://www.hierarchystructure.com/emergence-hierarchical-structure-human-language/
basic sentence structure and parts of speech.
a word number list is just a list?
a sentence about a number list is a sentence.
what does a question sentence do that a list and statement sentence do not do?
is a question sentence fragment meaningful too?
without a Number, now what.

Structure as Grammar

The cat sat on the mat.  The cat sat on the mat.  The cat sat on the mat.  The cat sat on the mat.  The cat sat on the mat.
The cat sat on the mat?  The cat sat on the mat?  The cat sat on the mat?  The cat sat on the mat?
The Cat sat on the mat.  "I'm not going to hurt you," said the Cat. "I'm just going to look at you."  "I'm not afraid of you," said the Mouse.  "I'm not going to hurt you," said the Cat. "I'm just going to look at you."  "I'm not afraid of you," said the Mouse.  "I'm not going to hurt you," said the Cat. "I'm
Cat sat on the mat. "I'm not sure I can do this."  "You can do this," I said. "You can do anything you put your mind to."  "I don't know if I can do this," Cat said. "I don't know if I can do this."  "You can
The Cat sat on a mat.  The Cat sat on a mat.  The Cat sat on a mat.  The Cat sat on a mat.  The Cat sat on a mat.
The Cat sat on the mat, and the Mouse sat on the mat, and the Cat said to the Mouse, "What are you doing?"  The Mouse said, "I'm eating the cheese."
The cat spat on the mat.  "I'm not going to let you go," he said. "I'm going to keep you here forever."
The cat sat on the windowsill, watching the world go by.The cat was a stray, and the owner was not home.A cat is a cat is a cat.A cat, a dog, a bird, a fish, a rabbit, a pig, a cow, a goat, a sheep,
The man sat on the mat. He was a young man, with a thin face and a long nose. He was dressed in a white shirt and a pair of baggy trousers. He had a small, round, black hat on his head. He was holding a small, black, leather-bound book in his hands.  "I am the man who will be your teacher," he said. "I am the man who will teach you the ways of the world. I am the man who will teach you the ways of the world."The Man sat on the mat. He was a small man, with a round face and a bald head. He wore a white shirt and a black vest. He had a long, thin beard. He was very old. “I am the Man,” he said. “I am the Man. I am the Man.Man sat on the mat. He was a big man, with a big belly and a big head. He was bald, with a big head of hair. He was a big man, with a big belly and a big head. He was bald, with a big head of hair. He was a big man, with a big belly and a big head. He was bald, with a big head of hair. He was a big man, with a big belly and a big head.
The cat sat on the mat, The man sat on the mat, The cat sat on the mat, The man sat on the mat, The cat sat on the mat, The man sat on the mat, The cat sat on the mat, The man sat on the mat, The cat sat on the mat, The man sat on the mat, The cat sat on the mat, The man sat on the mat, The cat sat on the mat, The man sat on the mat, The cat sat on the mat, The man sat on the mat, The cat sat on the mat, The man sat on the matThe Cat sat on the mat, The Man sat on the mat, The Cat sat on the mat, The Man sat on the mat, The Cat sat on the mat, The Man sat on the mat, The Cat sat on the mat, The Man sat on the mat, The Cat sat on the mat, The Man sat on the mat, The Cat sat on the mat, The Man sat on the mat, The Cat sat on the mat, The Man sat on the mat, The Cat sat on the mat, The Man sat on the mat, The Cat sat on the mat, The Man sat on the matCat sat on the mat, Man sat on the mat, and the cat said, "I'm going to eat you."  Man said, "No, you're not."  The cat said, "Yes, I am."  Man said, "No, you're not."  The cat said, "Yes, I am."  Man said, "No, you're not."  The cat said, "Yes, I am."  Man said, "No, you're not."  The cat said, "Yes, I am."
The cat sat on the mat. The man sat on the mat. The cat sat on the man. The man sat on the cat. The cat sat on the man. The man sat on the cat. The cat sat on the man. The man sat on the cat. The cat sat on the man. The man sat on the cat. The cat sat on the man. The man sat on the cat. The cat sat on the man. The man sat on the cat. The cat sat on the man. The man sat on the cat. The cat sat on the man. The man sat on the cat.
common things on which a cat may sit.
suitable sittings for a man.
but now… with context, the cat and the man are sittable.
The cat sat on the sub-terrain. The man sat on the carrier. The cat sat on the sub-terrain. The man sat on the carrier. The cat sat on the sub-terrain. The man sat on the carrier. The cat sat on the sub-terrain. The man sat on the carrier. The cat sat on the sub-terrain. The man sat on the carrier. The cat sat on the sub-terrain. The man sat on the carrier. The cat sat on the sub-terrain. The man sat on the carrier. The cat sat on the sub-terrain. TheThe cat sat on the sub-terrain,The man sat on the carrier,The cat sat on the sub-terrain,The man sat on the carrier,The cat sat on the sub-terrain,The man sat on the carrier,The cat sat on the sub-terrain,The man sat on the carrier,The cat sat on the sub-terrain,The man sat on the carrier,The cat sat on the sub-terrain,The man sat on the carrier,The cat sat on the sub-terrain,The man sat on the carrier,The cat sat on the sub-terrain,TheThe Cat sat on the sub-terrain,The Man sat on the carrier,The Cat sat on the sub-terrain,The Man sat on the carrier,The Cat sat on the sub-terrain,The Man sat on the carrier,The Cat sat on the sub-terrain,The Man sat on the carrier,The Cat sat on the sub-terrain,The Man sat on the carrier,The Cat sat on the sub-terrain,The Man sat on the carrier,The Cat sat on the sub-terrain,The Man sat on the carrier,The Cat sat on the sub-terrain,The
The Cat sat on the sub-terrain. The Man sat on the carrier. The Cat was in the sub-terrain. The Man was in the carrier. The Cat was in the sub-terrain. The Man was in the carrier. The Cat was in the sub-terrain. The Man was in the carrier. The Cat was in the sub-terrain. The Man was in the carrier. The Cat was in the sub-terrain. The Man was in the carrier. The Cat was in the sub-terrain. The Man was in the carrier. The Cat was in the sub-terrain. The
Cat sat on the sub-terrain. Man sat on the carrier.  "I'm going to take a look at the sub-terrain," Cat said.  "I'll go with you," Man said.  "No, you stay here. I'll be back in a few minutes."  "Okay."  Cat walked over to the sub-terrain. He looked at the sub-terrain. He looked at the sub-terrain. He looked at the sub-terrain.

Structure using Programming Languages and Markup

a long winded way to define “print a list”
[7785,530,796,352,26,198,7785,734,796,362,26,198,7785,1115,796,513,26,198,8818,1351,7,77,17024,19953,198,198,1640,357,14421,26545,1659,15057,28,15,26,14421,26545,1659,15057,27,77,17024,13,13664,26,14421,26545,1659,15057,4880,19953,198,220,220,220,220,220,220,220,8624,13,6404,7,77,17024,58,14421,26545,1659,15057,36563,198,220,220,220,1782,198,92,198,220,198,4868,26933,505,11,11545,11,15542,36563]
variable value change.
[7785,530,796,352,26,198,7785,734,796,362,26,198,7785,1115,796,678,26,198,8818,1351,7,77,17024,19953,198,198,1640,357,14421,26545,1659,15057,28,15,26,14421,26545,1659,15057,27,77,17024,13,13664,26,14421,26545,1659,15057,4880,19953,198,220,220,220,220,220,220,220,8624,13,6404,7,77,17024,58,14421,26545,1659,15057,36563,198,220,220,220,1782,198,92,198,220,198,4868,26933,505,11,11545,11,15542,36563]
a variable that starts with 1… not so fast…
var one = 1; var two = 34567; var three = 23;  function list(numbers){  for (currentPositionofNumber=0;currentPositionofNumber<numbers.length;currentPositionofNumber++){         console.log(numbers[currentPositionofNumber]);     } }   list([one,two,three]);  function list(numbers){  for (currentPositionofNumber=0;currentPositionofNumber<numbers.length;currentPositionofNumber++){         console.log(numbers[currentPositionofNumber]);
var one = 2341; var two = 2; var three = 23;  function list(numbers){  for (currentPositionofNumber=0;currentPositionofNumber<numbers.length;currentPositionofNumber++){         console.log(numbers[currentPositionofNumber]);     } }   list([one,two,three]);  The above code will output:  2341  23  23
var one = 0; var two = 2; var three = 4;  function list(numbers){  for(currentPositionofNumber=0;currentPositionofNumber<numbers.length;currentPositionofNumber++){  
console.log(numbers[currentPositionofNumber]);
} }
list([one,two,three]); The above code will output: [0,1,2]
The above code will output: [0,1,2,3]
The above code will output: [0,1,2,3,4]

Conclusion to Part 1: On Structure

var zero = 0; var two = 2; var four = 4; var nine = 9;  function list(numbers){  for (currentPositionofNumber=0;currentPositionofNumber<numbers.length;currentPositionofNumber++){         console.log(numbers[currentPositionofNumber]);     } }   list([zero,two,nine]);  The above code will output:  0 2 9
var zero = 0; var two = 2; var four = 4; var nine = 9; var thirteen = nine + four;  function list(numbers){  for (currentPositionofNumber=0;currentPositionofNumber<numbers.length;currentPositionofNumber++){         console.log(numbers[currentPositionofNumber]);     } }   list([zero,two,nine, thirteen]);  The above code will output:  0 2 9 13
var zero = 0; var two = 2; var four = 4; var nine = 9; var fortyfour = nine + four;  function list(numbers){  for (currentPositionofNumber=0;currentPositionofNumber<numbers.length;currentPositionofNumber++){         console.log(numbers[currentPositionofNumber]);     } }   list([zero,two,nine, fortyfour]);  The above code will output:  0 2 9 44
var zero = 0; var two = 2; var four = 4; var nine = 9; var fortyfour = nine + four;  
// fortyfour is a sum of the var nine and var four, fortyfour is not 44.
function list(numbers){ for (currentPositionofNumber=0;currentPositionofNumber<numbers.length;currentPositionofNumber++){ console.log(numbers[currentPositionofNumber]); } } list([zero,two,nine, fortyfour]); // zero is a sum of the var zero and var two, zero is not zero.
Below is a javascript program that defines a function for listing values from a supplied array of numbers. 
###
function list(numbers){ for (currentPositionofNumber=0;currentPositionofNumber<numbers.length;currentPositionofNumber++){ console.log(numbers[currentPositionofNumber]); } }
var zero = 0; var two = 2; var four = 4; var nine = 9; var blahblah = 2345+567;
list([zero,two,nine, blahblah]);
Output: 0 2 9 2345 567 The above program is a simple example of a function that takes an array of numbers and returns the sum of the numbers.

--

--

Artist, mather , writer, meanderer, https://www.worksonbecoming.com

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store