id
int64
0
458k
file_name
stringlengths
4
119
file_path
stringlengths
14
227
content
stringlengths
24
9.96M
size
int64
24
9.96M
language
stringclasses
1 value
extension
stringclasses
14 values
total_lines
int64
1
219k
avg_line_length
float64
2.52
4.63M
max_line_length
int64
5
9.91M
alphanum_fraction
float64
0
1
repo_name
stringlengths
7
101
repo_stars
int64
100
139k
repo_forks
int64
0
26.4k
repo_open_issues
int64
0
2.27k
repo_license
stringclasses
12 values
repo_extraction_date
stringclasses
433 values
6,900
doc-pypi-links.sh
ilius_pyglossary/scripts/doc-pypi-links.sh
#!/bin/bash grep -roh 'https://pypi.org/project/[^)]*' doc/p/ | sort | uniq --count
85
Python
.py
2
41
71
0.609756
ilius/pyglossary
2,176
238
22
GPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,901
dump.py
ilius_pyglossary/scripts/dump.py
#!/usr/bin/env python3 import sys from pprint import pformat from pyglossary.glossary import Glossary glos = Glossary() glos.read(sys.argv[1]) for entry in glos: print("Words: " + pformat(entry.l_word)) print("Definitions: " + pformat(entry.defis)) print("-------------------------")
290
Python
.py
10
27.4
46
0.689531
ilius/pyglossary
2,176
238
22
GPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,902
sort-jsonl.py
ilius_pyglossary/scripts/wiktextract/sort-jsonl.py
#!/usr/bin/env python # read json lines from stdin, # sort them by "word" key and print import operator import sys from json import loads data: "list[tuple[str, str]]" = [] for line in sys.stdin: line = line.strip() # noqa: PLW2901 if not line: continue row = loads(line) data.append((row.get("word"), line)) ...
394
Python
.py
16
22.8125
37
0.723118
ilius/pyglossary
2,176
238
22
GPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,903
extract-schema.py
ilius_pyglossary/scripts/wiktextract/extract-schema.py
import json import sys from collections import Counter from collections import OrderedDict as odict from dataclasses import dataclass from typing import Any @dataclass(slots=True) class Node: Type: str = "" Dict: "dict[str, Node] | None" = None KeyScore: "Counter | None" = None ListOf: "Node | None" = None de...
3,917
Python
.py
138
25.384058
83
0.679754
ilius/pyglossary
2,176
238
22
GPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,904
fix-css.py
ilius_pyglossary/scripts/appledict/fix-css.py
import sys from os.path import dirname, realpath, splitext sys.path.insert(0, dirname(dirname(dirname(realpath(__file__))))) from pyglossary.apple_utils import substituteAppleCSS for fpath in sys.argv[1:]: if fpath.endswith("-fixed.css"): continue fpathNoExt, _ = splitext(fpath) fpathNew = fpathNoExt + "-fixed....
508
Python
.py
16
29.6875
65
0.740286
ilius/pyglossary
2,176
238
22
GPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,905
doc-pypi-links.sh
ilius_pyglossary/scripts/doc-pypi-links.sh
#!/bin/bash grep -roh 'https://pypi.org/project/[^)]*' doc/p/ | sort | uniq --count
85
Python
.pyp
2
41
71
0.609756
ilius/pyglossary
2,176
238
22
GPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,906
pyglossary.pyw
ilius_pyglossary/pyglossary.pyw
#!/usr/bin/env python3 import sys from os.path import dirname sys.path.insert(0, dirname(__file__)) from pyglossary.ui.main import main main()
147
Python
.pyw
6
22.833333
37
0.781022
ilius/pyglossary
2,176
238
22
GPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,907
__main__.py
codespell-project_codespell/codespell_lib/__main__.py
import sys from ._codespell import _script_main if __name__ == "__main__": sys.exit(_script_main())
106
Python
.py
4
24
36
0.65
codespell-project/codespell
1,850
470
225
GPL-2.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,908
_text_util.py
codespell-project_codespell/codespell_lib/_text_util.py
# # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; version 2 of the License. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the impli...
1,038
Python
.py
25
39
76
0.732938
codespell-project/codespell
1,850
470
225
GPL-2.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,909
_codespell.py
codespell-project_codespell/codespell_lib/_codespell.py
# # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; version 2 of the License. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the impli...
44,133
Python
.py
1,191
26.893367
124
0.558973
codespell-project/codespell
1,850
470
225
GPL-2.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,910
__init__.py
codespell-project_codespell/codespell_lib/__init__.py
from ._codespell import _script_main, main from ._version import __version__ # type: ignore[import-not-found] __all__ = ["__version__", "_script_main", "main"]
162
Python
.py
3
52.666667
67
0.664557
codespell-project/codespell
1,850
470
225
GPL-2.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,911
_spellchecker.py
codespell-project_codespell/codespell_lib/_spellchecker.py
# # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; version 2 of the License. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the impli...
2,393
Python
.py
65
30.307692
75
0.635893
codespell-project/codespell
1,850
470
225
GPL-2.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,912
test_basic.py
codespell-project_codespell/codespell_lib/tests/test_basic.py
import contextlib import inspect import os import os.path as op import re import subprocess import sys from io import StringIO from pathlib import Path from shutil import copyfile from typing import Any, Generator, Optional, Tuple, Union from unittest import mock import pytest import codespell_lib as cs_ from codespe...
47,142
Python
.py
1,273
30.933229
126
0.612962
codespell-project/codespell
1,850
470
225
GPL-2.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,913
test_dictionary.py
codespell-project_codespell/codespell_lib/tests/test_dictionary.py
import glob import os import os.path as op import pathlib import re from typing import Any, Dict, Iterable, Optional, Set, Tuple import pytest from codespell_lib._codespell import ( _builtin_dictionaries, supported_languages, word_regex_def, ) spellers = {} root = pathlib.Path(__file__).parent.parent t...
13,590
Python
.py
343
31.708455
87
0.582324
codespell-project/codespell
1,850
470
225
GPL-2.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,914
setup.py
piskvorky_gensim/setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2014 Radim Rehurek <radimrehurek@seznam.cz> # Licensed under the GNU LGPL v2.1 - https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html """ Run with:: python ./setup.py install """ import itertools import os import platform import shutil import ...
14,778
Python
.py
311
42.44373
402
0.69066
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,915
gensim Quick Start.ipynb
piskvorky_gensim/gensim Quick Start.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "This tutorial has moved.\n", "\n", "Please see https://radimrehurek.com/gensim/auto_examples/." ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "...
626
Python
.py
34
14.970588
64
0.559122
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,916
install_wheel.py
piskvorky_gensim/continuous_integration/install_wheel.py
"""Install the built wheel for testing under AppVeyor. Assumes that gensim/dist contains a single wheel to install. """ import os import subprocess curr_dir = os.path.dirname(__file__) dist_path = os.path.join(curr_dir, '..', 'dist') wheels = [ os.path.join(dist_path, f) for f in os.listdir(dist_path) if f.en...
487
Python
.py
14
33
69
0.708511
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,917
check_wheels.py
piskvorky_gensim/continuous_integration/check_wheels.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2019 RaRe Technologies s.r.o. # Licensed under the GNU LGPL v2.1 - https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html """Print available wheels for a particular Python package.""" import re import sys import requests def to_int(value): value ...
985
Python
.py
30
27.7
95
0.620908
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,918
upgrade_pip_py310.py
piskvorky_gensim/continuous_integration/upgrade_pip_py310.py
# This script needs to be able run under both Python 2 and 3 without crashing # It only achieves the desired effect under Py3.10 on Linux and MacOS. import subprocess import sys import tempfile if sys.platform in ('linux', 'darwin') and sys.version_info[:2] == (3, 10): import urllib.request with tempfile.NamedT...
495
Python
.py
10
46.1
85
0.742268
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,919
Poincare Evaluation.ipynb
piskvorky_gensim/docs/notebooks/Poincare Evaluation.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Evaluation of Poincare Embeddings" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "This notebook demonstrates how well Poincare embeddings perform on the tasks detailed in the [original paper](https:/...
169,348
Python
.py
2,654
58.102864
437
0.666603
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,920
WordRank_wrapper_quickstart.ipynb
piskvorky_gensim/docs/notebooks/WordRank_wrapper_quickstart.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": { "collapsed": true }, "source": [ "# WordRank wrapper tutorial on Lee Corpus\n", "\n", "WordRank is a new word embedding algorithm which captures the semantic similarities in a text data well. See this [notebook](Wordrank_comparisons.ip...
13,859
Python
.py
209
62.110048
1,767
0.678828
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,921
downloader_api_tutorial.ipynb
piskvorky_gensim/docs/notebooks/downloader_api_tutorial.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Tutorial for using Gensim's API for downloading corpuses/models\n", "Let's start by importing the api module." ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ ...
25,975
Python
.py
495
46.727273
405
0.568053
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,922
soft_cosine_benchmark.ipynb
piskvorky_gensim/docs/notebooks/soft_cosine_benchmark.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Benchmark: Implement Levenshtein term similarity matrix and fast SCM between corpora ([RaRe-Technologies/gensim PR #2016][#2016])\n", "\n", " [#2016]: https://github.com/RaRe-Technologies/gensim/pull/2016 (Implement Levenshte...
209,285
Python
.py
4,605
38.368512
834
0.351583
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,923
lda_model_difference.ipynb
piskvorky_gensim/docs/notebooks/lda_model_difference.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Comparison of two LDA models & visualize difference" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## In this notebook, I want to show how you can compare models with itself and with other model and...
6,259,678
Python
.py
2,291
2,721.787866
2,954,347
0.645215
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,924
summarization_tutorial.ipynb
piskvorky_gensim/docs/notebooks/summarization_tutorial.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "This tutorial has moved.\n", "\n", "Please see https://radimrehurek.com/gensim/auto_examples/." ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "...
626
Python
.py
34
14.970588
64
0.559122
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,925
Wordrank_comparisons.ipynb
piskvorky_gensim/docs/notebooks/Wordrank_comparisons.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Comparison of WordRank, Word2Vec and FastText\n", "\n", "[Wordrank](https://arxiv.org/pdf/1506.02761v3.pdf) is a fresh new approach to the word embeddings, which formulates it as a ranking problem. That is, given a word w, it...
31,069
Python
.py
579
48.955095
1,898
0.637733
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,926
atmodel_prediction_tutorial.ipynb
piskvorky_gensim/docs/notebooks/atmodel_prediction_tutorial.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Authorship prediction with the author-topic model" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "In this tutorial, you will learn how to use the author-topic model in Gensim for authorship predictio...
267,682
Python
.py
1,844
139.32321
27,938
0.740392
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,927
FastText_Tutorial.ipynb
piskvorky_gensim/docs/notebooks/FastText_Tutorial.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Using FastText via Gensim" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "This tutorial is about using [fastText](https://github.com/facebookresearch/fastText) model in Gensim. There are two ways you...
31,037
Python
.py
773
34.476067
519
0.547416
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,928
atmodel_tutorial.ipynb
piskvorky_gensim/docs/notebooks/atmodel_tutorial.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# The author-topic model: LDA with metadata\n", "\n", "In this tutorial, you will learn how to use the author-topic model in Gensim. We will apply it to a corpus consisting of scientific papers, to get insight about the authors...
225,681
Python
.py
1,691
127.881727
162,926
0.712862
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,929
lda_training_tips.ipynb
piskvorky_gensim/docs/notebooks/lda_training_tips.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "This tutorial has moved.\n", "\n", "Please see https://radimrehurek.com/gensim/auto_examples/." ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "...
626
Python
.py
34
14.970588
64
0.559122
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,930
doc2vec-wikipedia.ipynb
piskvorky_gensim/docs/notebooks/doc2vec-wikipedia.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Training Doc2Vec on Wikipedia articles" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "This notebook replicates the **Document Embedding with Paragraph Vectors** paper, http://arxiv.org/abs/1507.0799...
38,876
Python
.py
654
54.191131
734
0.650564
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,931
Topic_dendrogram.ipynb
piskvorky_gensim/docs/notebooks/Topic_dendrogram.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Visualizing Topic clusters\n", "\n", "In this notebook, we will learn how to visualize topic clusters using dendrogram. Dendrogram is a tree-structured graph which can be used to visualize the result of a hierarchical cluster...
5,581,352
Python
.py
5,448
1,013.827643
212,401
0.638205
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,932
annoytutorial.ipynb
piskvorky_gensim/docs/notebooks/annoytutorial.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "This tutorial has moved.\n", "\n", "Please see https://radimrehurek.com/gensim/auto_examples/." ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "...
626
Python
.py
34
14.970588
64
0.559122
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,933
pivoted_document_length_normalisation.ipynb
piskvorky_gensim/docs/notebooks/pivoted_document_length_normalisation.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Pivoted Document Length Normalization\n", "\n", "## Background\n", "\n", "In many cases, normalizing the tfidf weights for each term favors weight of terms of the documents with shorter length. The _pivoted document l...
35,923
Python
.py
419
81.02148
22,256
0.825259
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,934
ensemble_lda_with_opinosis.ipynb
piskvorky_gensim/docs/notebooks/ensemble_lda_with_opinosis.ipynb
{ "cells": [ { "cell_type": "code", "execution_count": null, "metadata": { "scrolled": false }, "outputs": [], "source": [ "import logging\n", "from gensim.models import EnsembleLda, LdaMulticore\n", "from gensim.models.ensemblelda import rank_masking\n", "from gensim.corpora im...
5,446
Python
.py
178
26.617978
390
0.63003
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,935
doc2vec-IMDB.ipynb
piskvorky_gensim/docs/notebooks/doc2vec-IMDB.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "This tutorial has moved.\n", "\n", "Please see https://radimrehurek.com/gensim/auto_examples/." ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "...
626
Python
.py
34
14.970588
64
0.559122
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,936
topic_network.ipynb
piskvorky_gensim/docs/notebooks/topic_network.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Topic Networks\n", "\n", "In this notebook, we will learn how to visualize topic model using network graphs. Networks can be a great way to explore topic models. We can use it to navigate that how topics belonging to one cont...
26,720
Python
.py
482
50.717842
1,689
0.636097
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,937
sklearn_api.ipynb
piskvorky_gensim/docs/notebooks/sklearn_api.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "## Using wrappers for Scikit learn API" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "This tutorial is about using gensim models as a part of your scikit learn workflow with the help of wrappers found...
28,710
Python
.py
1,009
23.969277
304
0.574131
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,938
Poincare Tutorial.ipynb
piskvorky_gensim/docs/notebooks/Poincare Tutorial.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Tutorial on Poincaré Embeddings" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "This notebook discusses the basic ideas and use-cases for Poincaré embeddings and demonstrates what kind of operations ...
28,599
Python
.py
562
46.371886
1,631
0.67511
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,939
wikinews-bigram-en.ipynb
piskvorky_gensim/docs/notebooks/wikinews-bigram-en.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Illustrating common terms usage using Wikinews in english" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## getting data\n", "\n", "We get the cirrussearch dump of wikinews (a dump meant for...
14,227
Python
.py
296
43.72973
1,696
0.631685
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,940
Word2Vec_FastText_Comparison.ipynb
piskvorky_gensim/docs/notebooks/Word2Vec_FastText_Comparison.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Comparison of FastText and Word2Vec " ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Facebook Research open sourced a great project recently - [fastText](https://github.com/facebookresearch/fastText)...
38,456
Python
.py
595
59.74958
2,210
0.658608
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,941
ldaseqmodel.ipynb
piskvorky_gensim/docs/notebooks/ldaseqmodel.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "\n", "# Dynamic Topic Models Tutorial" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "\n", "### What is this tutorial about?\n", "This tutorial will exaplin what Dynamic Topic Models are, a...
49,953
Python
.py
1,031
43.018429
1,666
0.631413
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,942
soft_cosine_tutorial.ipynb
piskvorky_gensim/docs/notebooks/soft_cosine_tutorial.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Finding similar documents with Word2Vec and Soft Cosine Measure \n", "\n", "Soft Cosine Measure (SCM) [1, 3] is a promising new tool in machine learning that allows us to submit a query and return the most relevant documents....
24,079
Python
.py
591
36.1489
619
0.616473
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,943
topic_coherence_model_selection.ipynb
piskvorky_gensim/docs/notebooks/topic_coherence_model_selection.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Performing Model Selection Using Topic Coherence\n", "\n", "This notebook will perform topic modeling on the 20 Newsgroups corpus using LDA. We will perform model selection (over the number of topics) using topic coherence as...
25,071
Python
.py
575
39.08
780
0.647657
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,944
Any2Vec_Filebased.ipynb
piskvorky_gensim/docs/notebooks/Any2Vec_Filebased.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# *2Vec File-based Training: API Tutorial\n", "\n", "This tutorial introduces a new file-based training mode for **`gensim.models.{Word2Vec, FastText, Doc2Vec}`** which leads to (much) faster training on machines with many core...
18,975
Python
.py
550
30.067273
696
0.629608
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,945
nmslibtutorial.ipynb
piskvorky_gensim/docs/notebooks/nmslibtutorial.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Similarity Queries using Nmslib Tutorial" ] }, { "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ "This tutorial is about using the ([Non-Metric Space Library (NMSLIB)](https://github.com...
301,877
Python
.py
1,076
275.740706
71,948
0.923039
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,946
Training_visualizations.ipynb
piskvorky_gensim/docs/notebooks/Training_visualizations.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Setup Visdom\n", "\n", "Install it with:\n", "\n", "`pip install visdom`\n", "\n", "Start the server:\n", "\n", "`python -m visdom.server`\n", "\n", "Visdom now can be accessed at http://localh...
18,511
Python
.py
254
68.314961
1,710
0.683354
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,947
Corpora_and_Vector_Spaces.ipynb
piskvorky_gensim/docs/notebooks/Corpora_and_Vector_Spaces.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "This tutorial has moved.\n", "\n", "Please see https://radimrehurek.com/gensim/auto_examples/." ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "...
626
Python
.py
34
14.970588
64
0.559122
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,948
deepir.ipynb
piskvorky_gensim/docs/notebooks/deepir.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "## Deep Inverse Regression with Yelp reviews\n", "\n", "In this note we'll use [gensim](https://radimrehurek.com/gensim/) to turn the Word2Vec machinery into a document classifier, as in [Document Classification by Inversion of...
32,646
Python
.py
471
64.66879
19,521
0.791049
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,949
dtm_example.ipynb
piskvorky_gensim/docs/notebooks/dtm_example.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# DTM Example\n", "\n", "In this example we will present a sample usage of the DTM wrapper. Prior to using this you need to compile the [DTM code](https://github.com/magsilva/dtm) yourself or use one of the [binaries](https://g...
25,703
Python
.py
354
68.268362
15,267
0.668034
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,950
doc2vec-lee.ipynb
piskvorky_gensim/docs/notebooks/doc2vec-lee.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "This tutorial has moved.\n", "\n", "Please see https://radimrehurek.com/gensim/auto_examples/." ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "...
626
Python
.py
34
14.970588
64
0.559122
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,951
gensim Quick Start.ipynb
piskvorky_gensim/docs/notebooks/gensim Quick Start.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "This tutorial has moved.\n", "\n", "Please see https://radimrehurek.com/gensim/auto_examples/." ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "...
626
Python
.py
34
14.970588
64
0.559122
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,952
topic_coherence-movies.ipynb
piskvorky_gensim/docs/notebooks/topic_coherence-movies.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Benchmark testing of coherence pipeline on Movies dataset\n", "## How to find how well coherence measure matches your manual annotators" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "__Introduct...
14,245
Python
.py
477
25.188679
515
0.59079
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,953
nmf_tutorial.ipynb
piskvorky_gensim/docs/notebooks/nmf_tutorial.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Gensim Tutorial on Online Non-Negative Matrix Factorization" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "This notebooks explains basic ideas behind the open source NMF implementation in [Gensim](h...
537,415
Python
.py
2,710
193.193727
57,956
0.88425
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,954
distance_metrics.ipynb
piskvorky_gensim/docs/notebooks/distance_metrics.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "This tutorial has moved.\n", "\n", "Please see https://radimrehurek.com/gensim/auto_examples/." ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "...
626
Python
.py
34
14.970588
64
0.559122
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,955
topic_methods.ipynb
piskvorky_gensim/docs/notebooks/topic_methods.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# New Term Topics Methods and Document Coloring" ] }, { "cell_type": "code", "execution_count": 20, "metadata": {}, "outputs": [], "source": [ "from gensim.corpora import Dictionary\n", "from gensim.models...
65,706
Python
.py
942
64.677282
15,496
0.750602
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,956
Varembed.ipynb
piskvorky_gensim/docs/notebooks/Varembed.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# VarEmbed Tutorial\n", "\n", "Varembed is a word embedding model incorporating morphological information, capturing shared sub-word features. Unlike previous work that constructs word embeddings directly from morphemes, varemb...
12,731
Python
.py
148
81.635135
1,631
0.701264
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,957
test_notebooks.py
piskvorky_gensim/docs/notebooks/test_notebooks.py
import os import sys import tempfile from glob import glob import nbformat from nbconvert.preprocessors import ExecutePreprocessor from nbconvert.preprocessors.execute import CellExecutionError "from smart_open import smart_open\n", def _notebook_run(path): """Execute a notebook via nbconvert and collect output....
1,477
Python
.py
39
29.102564
78
0.61049
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,958
Topics_and_Transformations.ipynb
piskvorky_gensim/docs/notebooks/Topics_and_Transformations.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "This tutorial has moved.\n", "\n", "Please see https://radimrehurek.com/gensim/auto_examples/." ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "...
626
Python
.py
34
14.970588
64
0.559122
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,959
Similarity_Queries.ipynb
piskvorky_gensim/docs/notebooks/Similarity_Queries.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "This tutorial has moved.\n", "\n", "Please see https://radimrehurek.com/gensim/auto_examples/." ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "...
626
Python
.py
34
14.970588
64
0.559122
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,960
word2vec.ipynb
piskvorky_gensim/docs/notebooks/word2vec.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "This tutorial has moved.\n", "\n", "Please see https://radimrehurek.com/gensim/auto_examples/." ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "...
626
Python
.py
34
14.970588
64
0.559122
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,961
translation_matrix.ipynb
piskvorky_gensim/docs/notebooks/translation_matrix.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Translation Matrix Tutorial" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## What is it ?" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Suppose we are given a se...
37,933
Python
.py
1,051
31.660324
626
0.57627
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,962
gensim_news_classification.ipynb
piskvorky_gensim/docs/notebooks/gensim_news_classification.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "This tutorial has moved.\n", "\n", "Please see https://radimrehurek.com/gensim/auto_examples/." ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "...
626
Python
.py
34
14.970588
64
0.559122
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,963
Tensorboard_visualizations.ipynb
piskvorky_gensim/docs/notebooks/Tensorboard_visualizations.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# TensorBoard Visualizations\n", "\n", "\n", "In this tutorial, we will learn how to visualize different types of NLP based Embeddings via TensorBoard. TensorBoard is a data visualization framework for visualizing and inspe...
186,617
Python
.py
1,284
139.060748
128,449
0.63606
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,964
online_w2v_tutorial.ipynb
piskvorky_gensim/docs/notebooks/online_w2v_tutorial.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Online word2vec tutorial\n", "\n", "So far, word2vec cannot increase the size of vocabulary after initial training. To handle unknown words, not in word2vec vocaburary, you must retrain updated documents over again.\n", ...
9,441
Python
.py
335
23.602985
277
0.579179
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,965
topic_coherence_tutorial.ipynb
piskvorky_gensim/docs/notebooks/topic_coherence_tutorial.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Demonstration of the topic coherence pipeline in Gensim" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Introduction" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ ...
21,938
Python
.py
473
42.156448
1,532
0.648777
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,966
WMD_tutorial.ipynb
piskvorky_gensim/docs/notebooks/WMD_tutorial.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Finding similar documents with Word2Vec and WMD \n", "\n", "Word Mover's Distance is a promising new tool in machine learning that allows us to submit a query and return the most relevant documents. For example, in a blog pos...
21,841
Python
.py
554
34.891697
717
0.632546
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,967
poincare_numpy.patch
piskvorky_gensim/docs/notebooks/poincare/poincare_numpy.patch
diff --git a/poincare.py b/poincare.py index ecae36e..f85bf22 100644 --- a/poincare.py +++ b/poincare.py @@ -1,160 +1,169 @@ +import argparse +import csv import nltk from nltk.corpus import wordnet as wn from math import * +import pickle import random +import re import numpy as np -import matplotlib.pyplot as plt ...
13,875
Python
.py
320
42.271875
170
0.590094
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,968
conf.py
piskvorky_gensim/docs/src/conf.py
# -*- coding: utf-8 -*- # # gensim documentation build configuration file, created by # sphinx-quickstart on Wed Mar 17 13:42:21 2010. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All ...
9,350
Python
.py
231
37.640693
107
0.700895
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,969
check_gallery.py
piskvorky_gensim/docs/src/check_gallery.py
"""Check that the cached gallery files are up to date. If they are stale, then Sphinx will attempt to rebuild them from source. When running the documentation build on CI, we want to avoid rebuilding the gallery, because that takes too long. Instead, we use this script to warn the author of the PR that they need to ...
2,772
Python
.py
63
36.174603
112
0.641397
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,970
run_doc.py
piskvorky_gensim/docs/src/gallery/howtos/run_doc.py
r""" How to Author Gensim Documentation ================================== How to author documentation for Gensim. """ ############################################################################### # Background # ---------- # # Gensim is a large project with a wide range of functionality. # Unfortunately, not all of...
8,054
Python
.py
174
45.241379
142
0.713542
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,971
run_doc2vec_imdb.py
piskvorky_gensim/docs/src/gallery/howtos/run_doc2vec_imdb.py
r""" How to reproduce the doc2vec 'Paragraph Vector' paper ===================================================== Shows how to reproduce results of the "Distributed Representation of Sentences and Documents" paper by Le and Mikolov using Gensim. """ import logging logging.basicConfig(format='%(asctime)s : %(levelname...
19,497
Python
.py
389
47.493573
185
0.656858
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,972
run_compare_lda.py
piskvorky_gensim/docs/src/gallery/howtos/run_compare_lda.py
r""" How to Compare LDA Models ========================= Demonstrates how you can visualize and compare trained topic models. """ # sphinx_gallery_thumbnail_number = 2 import logging logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO) #########################################...
8,569
Python
.py
189
42.89418
177
0.622494
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,973
run_downloader_api.py
piskvorky_gensim/docs/src/gallery/howtos/run_downloader_api.py
r""" How to download pre-trained models and corpora ============================================== Demonstrates simple and quick access to common corpora and pretrained models. """ import logging logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO) #############################...
4,515
Python
.py
105
40.580952
132
0.534125
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,974
run_corpora_and_vector_spaces.py
piskvorky_gensim/docs/src/gallery/core/run_corpora_and_vector_spaces.py
r""" Corpora and Vector Spaces ========================= Demonstrates transforming text into a vector space representation. Also introduces corpus streaming and persistence to disk in various formats. """ import logging logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO) ####...
14,277
Python
.py
259
53.467181
132
0.665664
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,975
run_core_concepts.py
piskvorky_gensim/docs/src/gallery/core/run_core_concepts.py
r""" Core Concepts ============= This tutorial introduces Documents, Corpora, Vectors and Models: the basic concepts and terms needed to understand and use gensim. """ import pprint ############################################################################### # The core concepts of ``gensim`` are: # # 1. :ref:`cor...
15,054
Python
.py
304
48.233553
183
0.708571
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,976
run_topics_and_transformations.py
piskvorky_gensim/docs/src/gallery/core/run_topics_and_transformations.py
r""" Topics and Transformations =========================== Introduces transformations and demonstrates their use on a toy corpus. """ import logging logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO) ###########################################################################...
14,611
Python
.py
279
50.989247
177
0.718711
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,977
run_similarity_queries.py
piskvorky_gensim/docs/src/gallery/core/run_similarity_queries.py
r""" Similarity Queries ================== Demonstrates querying a corpus for similar documents. """ import logging logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO) ############################################################################### # # Creating the Corpus # ---...
9,565
Python
.py
170
54.729412
208
0.711268
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,978
run_word2vec.py
piskvorky_gensim/docs/src/gallery/tutorials/run_word2vec.py
r""" Word2Vec Model ============== Introduces Gensim's Word2Vec model and demonstrates its use on the `Lee Evaluation Corpus <https://hekyll.services.adelaide.edu.au/dspace/bitstream/2440/28910/1/hdl_28910.pdf>`_. """ import logging logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging...
25,529
Python
.py
579
41.336788
126
0.642739
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,979
run_lda.py
piskvorky_gensim/docs/src/gallery/tutorials/run_lda.py
r""" LDA Model ========= Introduces Gensim's LDA model and demonstrates its use on the NIPS corpus. """ import logging logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO) ############################################################################### # The purpose of this tut...
12,616
Python
.py
275
44.145455
128
0.695041
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,980
run_scm.py
piskvorky_gensim/docs/src/gallery/tutorials/run_scm.py
r""" Soft Cosine Measure =================== Demonstrates using Gensim's implemenation of the SCM. """ ############################################################################### # Soft Cosine Measure (SCM) is a promising new tool in machine learning that # allows us to submit a query and return the most relevan...
6,658
Python
.py
133
48.744361
165
0.703094
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,981
run_doc2vec_lee.py
piskvorky_gensim/docs/src/gallery/tutorials/run_doc2vec_lee.py
r""" Doc2Vec Model ============= Introduces Gensim's Doc2Vec model and demonstrates its use on the `Lee Corpus <https://hekyll.services.adelaide.edu.au/dspace/bitstream/2440/28910/1/hdl_28910.pdf>`__. """ import logging logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO) ####...
16,619
Python
.py
330
48.836364
139
0.674689
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,982
run_fasttext.py
piskvorky_gensim/docs/src/gallery/tutorials/run_fasttext.py
r""" FastText Model ============== Introduces Gensim's fastText model and demonstrates its use on the Lee Corpus. """ import logging logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO) ############################################################################### # Here, we'l...
10,335
Python
.py
222
45.252252
306
0.589083
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,983
run_annoy.py
piskvorky_gensim/docs/src/gallery/tutorials/run_annoy.py
r""" Fast Similarity Queries with Annoy and Word2Vec =============================================== Introduces the Annoy library for similarity queries on top of vectors learned by Word2Vec. """ LOGS = False # Set to True if you want to see progress in logs. if LOGS: import logging logging.basicConfig(forma...
15,445
Python
.py
344
43.06686
101
0.661128
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,984
run_wmd.py
piskvorky_gensim/docs/src/gallery/tutorials/run_wmd.py
r""" Word Mover's Distance ===================== Demonstrates using Gensim's implemenation of the WMD. """ ############################################################################### # Word Mover's Distance (WMD) is a promising new tool in machine learning that # allows us to submit a query and return the most r...
5,165
Python
.py
109
46.183486
103
0.674871
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,985
run_ensemblelda.py
piskvorky_gensim/docs/src/gallery/tutorials/run_ensemblelda.py
r""" Ensemble LDA ============ Introduces Gensim's EnsembleLda model """ import logging logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO) ############################################################################### # This tutorial will explain how to use the EnsembleLDA ...
5,237
Python
.py
130
38.523077
118
0.66647
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,986
__init__.py
piskvorky_gensim/docs/src/sphinx_rtd_theme/__init__.py
""" Sphinx Read the Docs theme. From https://github.com/ryan-roemer/sphinx-bootstrap-theme. """ from os import path import sphinx __version__ = '0.5.0' __version_full__ = __version__ def get_html_theme_path(): """Return list of HTML theme paths.""" cur_dir = path.abspath(path.dirname(path.dirname(__file_...
1,101
Python
.py
23
43.26087
114
0.695408
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,987
run_doc.py
piskvorky_gensim/docs/src/auto_examples/howtos/run_doc.py
r""" How to Author Gensim Documentation ================================== How to author documentation for Gensim. """ ############################################################################### # Background # ---------- # # Gensim is a large project with a wide range of functionality. # Unfortunately, not all of...
8,054
Python
.py
174
45.241379
142
0.713542
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,988
run_doc2vec_imdb.py
piskvorky_gensim/docs/src/auto_examples/howtos/run_doc2vec_imdb.py
r""" How to reproduce the doc2vec 'Paragraph Vector' paper ===================================================== Shows how to reproduce results of the "Distributed Representation of Sentences and Documents" paper by Le and Mikolov using Gensim. """ import logging logging.basicConfig(format='%(asctime)s : %(levelname...
19,497
Python
.py
389
47.493573
185
0.656858
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,989
run_compare_lda.py
piskvorky_gensim/docs/src/auto_examples/howtos/run_compare_lda.py
r""" How to Compare LDA Models ========================= Demonstrates how you can visualize and compare trained topic models. """ # sphinx_gallery_thumbnail_number = 2 import logging logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO) #########################################...
8,569
Python
.py
189
42.89418
177
0.622494
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,990
run_downloader_api.py
piskvorky_gensim/docs/src/auto_examples/howtos/run_downloader_api.py
r""" How to download pre-trained models and corpora ============================================== Demonstrates simple and quick access to common corpora and pretrained models. """ import logging logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO) #############################...
4,515
Python
.py
105
40.580952
132
0.534125
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,991
run_compare_lda.ipynb
piskvorky_gensim/docs/src/auto_examples/howtos/run_compare_lda.ipynb
{ "cells": [ { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "%matplotlib inline" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "\nHow to Compare...
11,395
Python
.py
233
42.201717
1,499
0.599301
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,992
run_doc.ipynb
piskvorky_gensim/docs/src/auto_examples/howtos/run_doc.ipynb
{ "cells": [ { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "%matplotlib inline" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "\nHow to Author ...
9,057
Python
.py
89
95.359551
2,741
0.707883
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,993
run_downloader_api.ipynb
piskvorky_gensim/docs/src/auto_examples/howtos/run_downloader_api.ipynb
{ "cells": [ { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "%matplotlib inline" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "\nHow to downloa...
8,187
Python
.py
295
20.99322
804
0.518561
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,994
run_doc2vec_imdb.ipynb
piskvorky_gensim/docs/src/auto_examples/howtos/run_doc2vec_imdb.ipynb
{ "cells": [ { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "%matplotlib inline" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "\n# How to repro...
23,094
Python
.py
341
60.961877
2,813
0.651885
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,995
run_corpora_and_vector_spaces.py
piskvorky_gensim/docs/src/auto_examples/core/run_corpora_and_vector_spaces.py
r""" Corpora and Vector Spaces ========================= Demonstrates transforming text into a vector space representation. Also introduces corpus streaming and persistence to disk in various formats. """ import logging logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO) ####...
14,277
Python
.py
259
53.467181
132
0.665664
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,996
run_core_concepts.ipynb
piskvorky_gensim/docs/src/auto_examples/core/run_core_concepts.ipynb
{ "cells": [ { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "%matplotlib inline" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "\nCore Concepts\...
18,305
Python
.py
277
59.32852
3,103
0.676448
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,997
run_topics_and_transformations.ipynb
piskvorky_gensim/docs/src/auto_examples/core/run_topics_and_transformations.ipynb
{ "cells": [ { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "%matplotlib inline" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "\n# Topics and T...
17,297
Python
.py
216
73.361111
6,990
0.693303
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,998
run_core_concepts.py
piskvorky_gensim/docs/src/auto_examples/core/run_core_concepts.py
r""" Core Concepts ============= This tutorial introduces Documents, Corpora, Vectors and Models: the basic concepts and terms needed to understand and use gensim. """ import pprint ############################################################################### # The core concepts of ``gensim`` are: # # 1. :ref:`cor...
15,054
Python
.py
304
48.233553
183
0.708571
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,999
run_topics_and_transformations.py
piskvorky_gensim/docs/src/auto_examples/core/run_topics_and_transformations.py
r""" Topics and Transformations =========================== Introduces transformations and demonstrates their use on a toy corpus. """ import logging logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO) ###########################################################################...
14,611
Python
.py
279
50.989247
177
0.718711
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)