mirror of https://github.com/explosion/spaCy.git
fix json (#5267)
This commit is contained in:
parent
fa760010a5
commit
7ad0fcf01d
|
@ -14,8 +14,7 @@
|
||||||
"from whatlies.language import SpacyLanguage",
|
"from whatlies.language import SpacyLanguage",
|
||||||
"",
|
"",
|
||||||
"lang = SpacyLanguage('en_core_web_md')",
|
"lang = SpacyLanguage('en_core_web_md')",
|
||||||
"words = ['cat', 'dog', 'fish', 'kitten', 'man', 'woman', ',
|
"words = ['cat', 'dog', 'fish', 'kitten', 'man', 'woman', 'king', 'queen', 'doctor', 'nurse']",
|
||||||
'king', 'queen', 'doctor', 'nurse']",
|
|
||||||
"",
|
"",
|
||||||
"emb = lang[words]",
|
"emb = lang[words]",
|
||||||
"emb.plot_interactive(x_axis='man', y_axis='woman')"
|
"emb.plot_interactive(x_axis='man', y_axis='woman')"
|
||||||
|
|
Loading…
Reference in New Issue