Skip to content

Instantly share code, notes, and snippets.

@LowriWilliams
Created January 26, 2021 14:31
Show Gist options
  • Save LowriWilliams/e58d2446eae9ace46e70cd1ef4f6cca2 to your computer and use it in GitHub Desktop.
Save LowriWilliams/e58d2446eae9ace46e70cd1ef4f6cca2 to your computer and use it in GitHub Desktop.
wn/multilingual.ipynb
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "code",
"execution_count": 47,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"['als', 'arb', 'bul', 'cat', 'cmn', 'dan', 'ell', 'eng', 'eus', 'fas', 'fin', 'fra', 'glg', 'heb', 'hrv', 'ind', 'ita', 'jpn', 'nld', 'nno', 'nob', 'pol', 'por', 'qcn', 'slv', 'spa', 'swe', 'tha', 'zsm']\n",
"\n",
"\n",
"['cane', 'Canis_familiaris']\n"
]
}
],
"source": [
"print(sorted(wn.langs()))\n",
"print('\\n')\n",
"print(wn.synset('dog.n.01').lemma_names('ita'))"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.2"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment