Text Analysis with large language models
Emi Tanaka
3th June 2025
These slides are best viewed on a modern browser like Google Chrome on a desktop or laptop. You can navigate the slides using the left and right arrows.
Computer Science.
Data Science.
Chain-of-thought aims to make the LLM “think” before answering.
Reasoning is a core component of human intelligence and LLM can mimic “reasoning” from memorisation and pattern matching trained from large corpus of text.
Statistics.
3.
Some common components include:
Example: “Please critique the statistical methodology used in the article on educational technology adoption by teachers. Assess strengths and limitations from the viewpoint of an academic journal peer reviewer with statistical expertise. Focus the critique on the sampling design, statistical tests, and interpretation of results. Provide a detailed response in a professional tone limited to 500 words.”
Which three systems of the human body function together to move and control body parts?
Correct answer:
Emily took her final stroll in the park last night, forever, when her life was snuffed out under the mask of night. The cause of death was a single fatal shot from a pistol. Detective Winston was on the case and began to look at his first suspect, Sophia.
Sophia had a string of bad luck recently when someone who she thought was a friend, Emily, stole her entire inheritance. Her evening strolls in the park became franc pacing while she reconciled the fortune she lost. Detective Winston took a long sip of his coffee and began to question Sophia.
‘Quite the marksmen I see’ - pointing to a picture of her holding a recently shot buck up.
‘Yeah, my dad loved taking me shooting’ - Sophia replied sheepishly
Identify the killer. Killers have a motive, means, and opportunity …
Example 1
You will be given a string of words separated by commas or spaces. Your task is to split the string into words and return an array of the words.
For example:
words_string(“Hi, my name is John”) == [“Hi”, “my”, “name”, “is”, “John”]
words_string(“One, two, three, four, five, six”) == [“One”, “two”, “three”, “four”, “five”, “six”]
Example 2
def is_prime(n):
"""Return true if a given number is prime, and false otherwise.
>>> is_prime(6)
False
>>> is_prime(101)
True
>>> is_prime(11)
True
>>> is_prime(13441)
True
>>> is_prime(61)
True
>>> is_prime(4)
False
>>> is_prime(1)
False
"""

emitanaka.org/workshop-text-analysis-2025/