Saltar al contenido principal
NLP for SEOs: How to
optimise your
content for BERT
@jcbhaagen
Josephine Haagen
Journey Further
https://www.slideshare.net/
JosephineHaagen
2
What is
NLP?
©2022 Journey
Further. All rights
reserved. All related
logos, assets
messaging are
trademarks of
Journey Further Ltd
How machines
understand language.
3
©2022 Journey
Further. All rights
reserved. All related
logos, assets
messaging are
trademarks of
Journey Further Ltd
4
Or, in SEO terms:
Takes unstructured data
and attempts to
structure it.
©2022 Journey
Further. All rights
reserved. All related
logos, assets
messaging are
trademarks of
Journey Further Ltd
©2022 Journey
Further. All rights
reserved. All related
logos, assets
messaging are
trademarks of
Journey Further Ltd
5
What can NLP
do for you?
6
A content strategy led by NLP
©2022 Journey
Further. All rights
reserved. All related
logos, assets
messaging are
trademarks of
Journey Further Ltd
7
A content strategy led by NLP
©2022 Journey
Further. All rights
reserved. All related
logos, assets
messaging are
trademarks of
Journey Further Ltd
©2022 Journey
Further. All rights
reserved. All related
logos, assets
messaging are
trademarks of
Journey Further Ltd
8
What did we
do?
9
©2022 Journey
Further. All rights
reserved. All related
logos, assets
messaging are
trademarks of
Journey Further Ltd
01
Prioritised key
pages based on
potential traffic
10
©2022 Journey
Further. All rights
reserved. All related
logos, assets
messaging are
trademarks of
Journey Further Ltd
02
Optimised them
(based on
prioritised
order)
11
©2022 Journey
Further. All rights
reserved. All related
logos, assets
messaging are
trademarks of
Journey Further Ltd
03
Watched the
line go up
12
©2022 Journey
Further. All rights
reserved. All related
logos, assets
messaging are
trademarks of
Journey Further Ltd
How does
NLP
work?
13
Processing
©2022 Journey
Further. All rights
reserved. All related
logos, assets
messaging are
trademarks of
Journey Further Ltd
INPUT TOKENISATION
14
Processing
©2022 Journey
Further. All rights
reserved. All related
logos, assets
messaging are
trademarks of
Journey Further Ltd
TOKENISATION
POS TAG
SALIENCE
STEMS
DEPENDENCY
15
NLP in action
©2022 Journey
Further. All rights
reserved. All related
logos, assets
messaging are
trademarks of
Journey Further Ltd
16
©2022 Journey
Further. All rights
reserved. All related
logos, assets
messaging are
trademarks of
Journey Further Ltd
17
What do we know about Alice?
©2022 Journey
Further. All rights
reserved. All related
logos, assets
messaging are
trademarks of
Journey Further Ltd
Alice is swimming against the current.
Noun (aux) V Verb Preposition Determiner Noun
Parsed by Google’s NLP tool
Parsed manually
18
BERT
©2022 Journey
Further. All rights
reserved. All related
logos, assets
messaging are
trademarks of
Journey Further Ltd
©2022 Journey
Further. All rights
reserved. All related
logos, assets
messaging are
trademarks of
Journey Further Ltd
19
BERT
NLU icon
Token masking
Next sentence
prediction
20
©2022 Journey
Further. All rights
reserved. All related
logos, assets
messaging are
trademarks of
Journey Further Ltd
“In autumn the ______
fall from the trees.”
21
©2022 Journey
Further. All rights
reserved. All related
logos, assets
messaging are
trademarks of
Journey Further Ltd
At dinner, Ernie
ordered a pizza
and tiramisu.
Do we still call
it link juice?
After a long
day of work,
Ernie went out
to dinner with
friends.
IsNext
NotNext
22
©2022 Journey
Further. All rights
reserved. All related
logos, assets
messaging are
trademarks of
Journey Further Ltd
How to optimise
content with
NLP
23
©2022 Journey
Further. All rights
reserved. All related
logos, assets
messaging are
trademarks of
Journey Further Ltd
“First-time
buyer”
Adjective (first-time)
supporting a noun
(buyer)
Maximum
three word
phrase
Noun is not also
an adjective
No numbers in
the keyword
24
©2022 Journey
Further. All rights
reserved. All related
logos, assets
messaging are
trademarks of
Journey Further Ltd
25
©2022 Journey
Further. All rights
reserved. All related
logos, assets
messaging are
trademarks of
Journey Further Ltd
In the rugged Colorado Desert of
California, there lies buried a treasure
ship sailed there hundreds of years
ago by either Viking or Spanish
explorers. Some say this is legend;
others insist it is fact. A few have
even claimed to have seen the ship,
its wooden remains poking through
the sand like the skeleton of a
prehistoric beast. Among those who
say they’ve come close to the ship is
small-town librarian Myrtle Botts. In
1933, she was hiking with her
husband in the Anza-Borrego Desert,
not far from the border with Mexico.
Text Relevance
rugged
Colorado
Desert of
California
0.89
treasure ship 0.78
Anza-
Borrego
Desert
0.75
Spanish
explorers
0.6
26
©2022 Journey
Further. All rights
reserved. All related
logos, assets
messaging are
trademarks of
Journey Further Ltd
Villas in Spain are incredibly popular, and
for good reason too! With beautiful
beaches and a charming countryside,
bustling cities and idyllic towns, a
Spanish villa holiday will
certainly be one to remember.
27
©2022 Journey
Further. All rights
reserved. All related
logos, assets
messaging are
trademarks of
Journey Further Ltd
Topic Original Updated Difference
holiday
villas
0.00 0.58 0.58
Spanish
villa
properties
0.64 0.69 0.05
In Salient, salience is measured as a
score out of 1.
28
©2022 Journey
Further. All rights
reserved. All related
logos, assets
messaging are
trademarks of
Journey Further Ltd
Changes go through
29
©2022 Journey
Further. All rights
reserved. All related
logos, assets
messaging are
trademarks of
Journey Further Ltd
Introduce
focus
keywords
in the first
paragraph
Experiment
with
sentence
structure
Look at
what the
tool sees
as
relevant
Do
30
©2022 Journey
Further. All rights
reserved. All related
logos, assets
messaging are
trademarks of
Journey Further Ltd
Don’t
Keyword
stuff
Write for
robots
31
So why
use NLP?
©2022 Journey
Further. All rights
reserved. All related
logos, assets
messaging are
trademarks of
Journey Further Ltd
32
©2022 Journey
Further. All rights
reserved. All related
logos, assets
messaging are
trademarks of
Journey Further Ltd
01
Because
you can
02
Because
Google is
03
Because
it works!
Thank
you
33
34
Appendix
©2022 Journey
Further. All rights
reserved. All related
logos, assets
messaging are
trademarks of
Journey Further Ltd
35
©2022 Journey
Further. All rights
reserved. All related
logos, assets
messaging are
trademarks of
Journey Further Ltd
Tools mentioned:
SALIENT
Google’s natural language API demo
Understanding BERT:
● Open Sourcing BERT: State-of-the-Art Pre-training for Natural Language
Processing
● BERT Explained: State of the art language model for NLP
● What’s My Line? Next Sentence Prediction in RunwayML with BERT
● BERT For Next Sentence Prediction
36
Syntax & Semantics
©2022 Journey
Further. All rights
reserved. All related
logos, assets
messaging are
trademarks of
Journey Further Ltd
Syntax is the grammatical structure of a
sentence, the order each word goes into.
Semantics is the intent part of a sentence, how
do the words in the sentence affect each other?
How does the order in which they come in
change your meaning?
NLP turns syntax and semantics into its own
data structure which specifies the relationship
between words and phrases. This is known as
ontology.
NLU takes this ontology and attempts to
prescribe intent to it.
“Patient’s mother was involved in a car accident
and injured her hand.”
37
Parts of speech
©2022 Journey
Further. All rights
reserved. All related
logos, assets
messaging are
trademarks of
Journey Further Ltd
Nouns - keywords are usually nouns. Nouns are
things.
Verbs - doing words
Adjectives - describing words
Superlatives - adjectives on a scale. Best,
worst, greatest, biggest, smallest.
Adverbs - describes a word. Quickly, slowly,
really, very.
Prepositions - Links a noun to another noun.
To, at, after, on.
Conjunctions - Joins clauses, sentences, or
words together. And, but, when.
38
Sentence structures/syntax
©2022 Journey
Further. All rights
reserved. All related
logos, assets
messaging are
trademarks of
Journey Further Ltd
Independent clause - a part of a sentence that
could stand alone. A subject, a verb, and a
complete idea.
I like SEO.
He is optimising a page.
Dependent clause - Not a complete sentence.
Sits with an independent clause to become a
complete sentence.
Because she said that,
As I’m currently looking into this,
Subject - Whatever’s doing the action in your
sentence.
I like SEO.
Verb - the action in your sentence.
I like SEO.
Object - What receives the action in
a sentence.
I like SEO.
Prepositional phrase - A phrase
that begins with a preposition, and
modifies a word in the sentence.
I like SEO on smaller websites.
39
Types of sentences
©2022 Journey
Further. All rights
reserved. All related
logos, assets
messaging are
trademarks of
Journey Further Ltd
Simple sentences - a sentence that could stand
alone. A subject, a verb, and a complete idea.
I like SEO.
He is optimising a page.
Compound sentences - A sentence that
contains two or more independent clauses, they
can be combined with a comma, a conjunction,
or with a semicolon.
I like SEO, I’m good at it.
I like SEO, but I’m no good at it.
Complex sentences - an independent
clause and one dependent clause (a
part of a sentence that can’t stand on
its own).
Although I like SEO, I don’t like site
speed.
Compound-complex sentences - a
sentence that has at least two
independent clauses and at least one
dependent clause. These can be
joined via commas or conjunctions,
though they can get confusing if your
comma game isn’t strong.
I like SEO, even though I spent
hours trying to edit a robots.txt, and
my laptop crashed trying to run a
crawl.