Skip to content

Pre-Requisite

Before starting this lecture, we need a series of text to practice NLP concepts and understand how language is interpreted by machines at a deeper level. Create a story.txt file and paste the following content onto it.

The Knight of Ash and Flame

In the final years of the High Middle Age, when stone castles rose like mountains and banners told the stories of bloodlines long forgotten, there lived a knight named Sir Aldric of Greymoor. Sir Aldric was not born into legend. He was the second son of a minor lord, raised among cold halls, iron armor, and the quiet expectation that greatness belonged to someone else. Yet fate, as it often does, spoke in fire rather than whispers.

The kingdom of Valenreach had known peace for many seasons. Crops grew tall, merchants traveled safely, and church bells rang without fear. That peace ended the day the dragon Vorthrax the Ashen descended from the northern peaks. The creature burned fields, shattered watchtowers, and turned entire villages into smoldering ruins. Survivors spoke of wings that blotted out the sun and a roar that sounded like the earth itself breaking.

The king called for champions. Knights came from distant lands, armored in gold and steel, boasting of past victories and divine favor. One by one, they rode north. One by one, they did not return.

Sir Aldric watched the fires from the castle walls. Each night, the sky glowed red, and each morning brought fewer refugees and more fear. When the final messenger arrived—burned, wounded, and shaking—the king’s council fell silent. The dragon was moving closer.

“I will go,” Sir Aldric said.

The court turned. Some laughed. Others whispered. His name carried no weight, his armor bore no legendary marks. Yet his voice did not waver.

Before dawn, Sir Aldric departed alone. He carried a steel longsword, a kite shield etched with his family crest, and a prayer he barely believed would be answered. The road north was lined with ash and broken stone. Trees stood blackened, their leaves burned away. Silence followed him, heavy and unnatural.

Three days passed before he reached the mountain known as Emberfall Peak. Smoke poured from its caverns, and the ground was warm beneath his boots. The dragon’s lair was near.

“Vorthrax,” Sir Aldric called, his voice echoing. “I am here.”

The dragon emerged like a living storm. Its scales were cracked and black, glowing faintly with inner fire. Its eyes burned with ancient intelligence. When it spoke, its voice was slow and cruel.

“Another knight,” Vorthrax said. “Another offering.”

The battle was brutal. Flame met shield. Claws tore armor. Stone shattered beneath them. Sir Aldric was thrown against the rocks, his shield broken, his sword bent. Pain filled his body, and fear threatened to end him.

But when the dragon reared back for the final strike, Sir Aldric saw something—an old scar beneath its wing, pale and unprotected.

With a final cry, he drove his blade forward.

Vorthrax screamed. The mountain shook. Fire burst outward, then faded. The dragon collapsed, its body still and silent.

Sir Aldric stood alone in the smoke, bloodied but alive.

When he returned to Valenreach, no trumpets sounded at first. The people did not believe him—until they saw the dragon’s severed horn and the burns upon his armor. Then the bells rang. Then the kingdom remembered his name.

Sir Aldric did not ask for gold or land. He asked only that the villages be rebuilt and the roads made safe again.

And so the knight who was never meant to be remembered became legend—not because he sought glory, but because he chose to stand when no one else would.