This commit is contained in:
Sofie Van Landeghem 2020-04-08 12:58:09 +02:00 committed by GitHub
parent fa760010a5
commit 7ad0fcf01d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -14,8 +14,7 @@
"from whatlies.language import SpacyLanguage",
"",
"lang = SpacyLanguage('en_core_web_md')",
"words = ['cat', 'dog', 'fish', 'kitten', 'man', 'woman', ',
'king', 'queen', 'doctor', 'nurse']",
"words = ['cat', 'dog', 'fish', 'kitten', 'man', 'woman', 'king', 'queen', 'doctor', 'nurse']",
"",
"emb = lang[words]",
"emb.plot_interactive(x_axis='man', y_axis='woman')"