Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Pelloin
svd2vec
Commits
b3c591ca
Commit
b3c591ca
authored
May 22, 2019
by
Valentin Pelloin
Browse files
documentation + notebook
parent
153f314b
Changes
92
Expand all
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
b3c591ca
*.pyc
__pycache__/
.ipynb_checkpoints/
*.binary
*.word2vec
text8
text8.zip
docs/Makefile
0 → 100644
View file @
b3c591ca
# Minimal makefile for Sphinx documentation
#
# You can set these variables from the command line.
SPHINXOPTS
=
SPHINXBUILD
=
sphinx-build
SOURCEDIR
=
source
BUILDDIR
=
build
# Put it first so that "make" without argument is like "make help".
help
:
@
$(SPHINXBUILD)
-M
help
"
$(SOURCEDIR)
"
"
$(BUILDDIR)
"
$(SPHINXOPTS)
$(O)
.PHONY
:
help Makefile
# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%
:
Makefile
@
$(SPHINXBUILD)
-M
$@
"
$(SOURCEDIR)
"
"
$(BUILDDIR)
"
$(SPHINXOPTS)
$(O)
\ No newline at end of file
docs/build/doctrees/environment.pickle
0 → 100644
View file @
b3c591ca
File added
docs/build/doctrees/getting_started.doctree
0 → 100644
View file @
b3c591ca
File added
docs/build/doctrees/index.doctree
0 → 100644
View file @
b3c591ca
File added
docs/build/doctrees/modules.doctree
0 → 100644
View file @
b3c591ca
File added
docs/build/doctrees/svd2vec.doctree
0 → 100644
View file @
b3c591ca
File added
docs/build/html/.buildinfo
0 → 100644
View file @
b3c591ca
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 2439f2e080dc27d413c99444c8f6e20c
tags: 645f666f9bcd5a90fca523b33c5a78b7
docs/build/html/_sources/getting_started.rst.txt
0 → 100644
View file @
b3c591ca
.. _getting_started:
Getting started with svd2vec
============================
.. raw:: html
:file: notebook.html
docs/build/html/_sources/index.rst.txt
0 → 100644
View file @
b3c591ca
.. svd2vec documentation master file, created by
sphinx-quickstart on Wed May 22 10:01:33 2019.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to svd2vec's documentation!
===================================
**SVD2vec** is a python library for representing documents words as vectors.
Vectors are created using the **PMI** (Pointwise Mutual Information) and the
**SVD** (Singular Value Decomposition).
This library implements recommendations from "Improving Distributional
Similarity with Lessons Learned from Word Embeddings" (Omer Levy, Yoav Goldberg,
and Ido Dagan) [#]_. This papers suggests that traditional methods like PMI and SVD
can be as good as word2vec by appling the same hyperparameters.
.. [#]
`Improving Distributional Similarity with Lessons Learned from Word Embeddings <https://www.mitpressjournals.org/doi/abs/10.1162/tacl_a_00134>`_.
**Omer Levy**, **Yoav Goldberg**, and **Ido Dagan**
Transactions of the Association for Computational Linguistics 2015 Vol. 3, 211-225
.. toctree::
:maxdepth: 5
:caption: Contents:
getting_started
svd2vec
Indices and tables
==================
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
docs/build/html/_sources/modules.rst.txt
0 → 100644
View file @
b3c591ca
svd2vec
=======
.. toctree::
:maxdepth: 4
svd2vec
docs/build/html/_sources/svd2vec.rst.txt
0 → 100644
View file @
b3c591ca
.. _svd2vec:
svd2vec documentation
=====================
.. autoclass:: svd2vec.svd2vec
:members:
docs/build/html/_static/alabaster.css
0 → 100644
View file @
b3c591ca
@import
url("basic.css")
;
/* -- page layout ----------------------------------------------------------- */
body
{
font-family
:
Georgia
,
serif
;
font-size
:
17px
;
background-color
:
#fff
;
color
:
#000
;
margin
:
0
;
padding
:
0
;
}
div
.document
{
width
:
940px
;
margin
:
30px
auto
0
auto
;
}
div
.documentwrapper
{
float
:
left
;
width
:
100%
;
}
div
.bodywrapper
{
margin
:
0
0
0
220px
;
}
div
.sphinxsidebar
{
width
:
220px
;
font-size
:
14px
;
line-height
:
1.5
;
}
hr
{
border
:
1px
solid
#B1B4B6
;
}
div
.body
{
background-color
:
#fff
;
color
:
#3E4349
;
padding
:
0
30px
0
30px
;
}
div
.body
>
.section
{
text-align
:
left
;
}
div
.footer
{
width
:
940px
;
margin
:
20px
auto
30px
auto
;
font-size
:
14px
;
color
:
#888
;
text-align
:
right
;
}
div
.footer
a
{
color
:
#888
;
}
p
.caption
{
font-family
:
inherit
;
font-size
:
inherit
;
}
div
.relations
{
display
:
none
;
}
div
.sphinxsidebar
a
{
color
:
#444
;
text-decoration
:
none
;
border-bottom
:
1px
dotted
#999
;
}
div
.sphinxsidebar
a
:hover
{
border-bottom
:
1px
solid
#999
;
}
div
.sphinxsidebarwrapper
{
padding
:
18px
10px
;
}
div
.sphinxsidebarwrapper
p
.logo
{
padding
:
0
;
margin
:
-10px
0
0
0px
;
text-align
:
center
;
}
div
.sphinxsidebarwrapper
h1
.logo
{
margin-top
:
-10px
;
text-align
:
center
;
margin-bottom
:
5px
;
text-align
:
left
;
}
div
.sphinxsidebarwrapper
h1
.logo-name
{
margin-top
:
0px
;
}
div
.sphinxsidebarwrapper
p
.blurb
{
margin-top
:
0
;
font-style
:
normal
;
}
div
.sphinxsidebar
h3
,
div
.sphinxsidebar
h4
{
font-family
:
Georgia
,
serif
;
color
:
#444
;
font-size
:
24px
;
font-weight
:
normal
;
margin
:
0
0
5px
0
;
padding
:
0
;
}
div
.sphinxsidebar
h4
{
font-size
:
20px
;
}
div
.sphinxsidebar
h3
a
{
color
:
#444
;
}
div
.sphinxsidebar
p
.logo
a
,
div
.sphinxsidebar
h3
a
,
div
.sphinxsidebar
p
.logo
a
:hover
,
div
.sphinxsidebar
h3
a
:hover
{
border
:
none
;
}
div
.sphinxsidebar
p
{
color
:
#555
;
margin
:
10px
0
;
}
div
.sphinxsidebar
ul
{
margin
:
10px
0
;
padding
:
0
;
color
:
#000
;
}
div
.sphinxsidebar
ul
li
.toctree-l1
>
a
{
font-size
:
120%
;
}
div
.sphinxsidebar
ul
li
.toctree-l2
>
a
{
font-size
:
110%
;
}
div
.sphinxsidebar
input
{
border
:
1px
solid
#CCC
;
font-family
:
Georgia
,
serif
;
font-size
:
1em
;
}
div
.sphinxsidebar
hr
{
border
:
none
;
height
:
1px
;
color
:
#AAA
;
background
:
#AAA
;
text-align
:
left
;
margin-left
:
0
;
width
:
50%
;
}
div
.sphinxsidebar
.badge
{
border-bottom
:
none
;
}
div
.sphinxsidebar
.badge
:hover
{
border-bottom
:
none
;
}
/* To address an issue with donation coming after search */
div
.sphinxsidebar
h3
.donation
{
margin-top
:
10px
;
}
/* -- body styles ----------------------------------------------------------- */
a
{
color
:
#004B6B
;
text-decoration
:
underline
;
}
a
:hover
{
color
:
#6D4100
;
text-decoration
:
underline
;
}
div
.body
h1
,
div
.body
h2
,
div
.body
h3
,
div
.body
h4
,
div
.body
h5
,
div
.body
h6
{
font-family
:
Georgia
,
serif
;
font-weight
:
normal
;
margin
:
30px
0px
10px
0px
;
padding
:
0
;
}
div
.body
h1
{
margin-top
:
0
;
padding-top
:
0
;
font-size
:
240%
;
}
div
.body
h2
{
font-size
:
180%
;
}
div
.body
h3
{
font-size
:
150%
;
}
div
.body
h4
{
font-size
:
130%
;
}
div
.body
h5
{
font-size
:
100%
;
}
div
.body
h6
{
font-size
:
100%
;
}
a
.headerlink
{
color
:
#DDD
;
padding
:
0
4px
;
text-decoration
:
none
;
}
a
.headerlink
:hover
{
color
:
#444
;
background
:
#EAEAEA
;
}
div
.body
p
,
div
.body
dd
,
div
.body
li
{
line-height
:
1.4em
;
}
div
.admonition
{
margin
:
20px
0px
;
padding
:
10px
30px
;
background-color
:
#EEE
;
border
:
1px
solid
#CCC
;
}
div
.admonition
tt
.xref
,
div
.admonition
code
.xref
,
div
.admonition
a
tt
{
background-color
:
#FBFBFB
;
border-bottom
:
1px
solid
#fafafa
;
}
div
.admonition
p
.admonition-title
{
font-family
:
Georgia
,
serif
;
font-weight
:
normal
;
font-size
:
24px
;
margin
:
0
0
10px
0
;
padding
:
0
;
line-height
:
1
;
}
div
.admonition
p
.last
{
margin-bottom
:
0
;
}
div
.highlight
{
background-color
:
#fff
;
}
dt
:target
,
.highlight
{
background
:
#FAF3E8
;
}
div
.warning
{
background-color
:
#FCC
;
border
:
1px
solid
#FAA
;
}
div
.danger
{
background-color
:
#FCC
;
border
:
1px
solid
#FAA
;
-moz-box-shadow
:
2px
2px
4px
#D52C2C
;
-webkit-box-shadow
:
2px
2px
4px
#D52C2C
;
box-shadow
:
2px
2px
4px
#D52C2C
;
}
div
.error
{
background-color
:
#FCC
;
border
:
1px
solid
#FAA
;
-moz-box-shadow
:
2px
2px
4px
#D52C2C
;
-webkit-box-shadow
:
2px
2px
4px
#D52C2C
;
box-shadow
:
2px
2px
4px
#D52C2C
;
}
div
.caution
{
background-color
:
#FCC
;
border
:
1px
solid
#FAA
;
}
div
.attention
{
background-color
:
#FCC
;
border
:
1px
solid
#FAA
;
}
div
.important
{
background-color
:
#EEE
;
border
:
1px
solid
#CCC
;
}
div
.note
{
background-color
:
#EEE
;
border
:
1px
solid
#CCC
;
}
div
.tip
{
background-color
:
#EEE
;
border
:
1px
solid
#CCC
;
}
div
.hint
{
background-color
:
#EEE
;
border
:
1px
solid
#CCC
;
}
div
.seealso
{
background-color
:
#EEE
;
border
:
1px
solid
#CCC
;
}
div
.topic
{
background-color
:
#EEE
;
}
p
.admonition-title
{
display
:
inline
;
}
p
.admonition-title
:after
{
content
:
":"
;
}
pre
,
tt
,
code
{
font-family
:
'Consolas'
,
'Menlo'
,
'DejaVu Sans Mono'
,
'Bitstream Vera Sans Mono'
,
monospace
;
font-size
:
0.9em
;
}
.hll
{
background-color
:
#FFC
;
margin
:
0
-12px
;
padding
:
0
12px
;
display
:
block
;
}
img
.screenshot
{
}
tt
.descname
,
tt
.descclassname
,
code
.descname
,
code
.descclassname
{
font-size
:
0.95em
;
}
tt
.descname
,
code
.descname
{
padding-right
:
0.08em
;
}
img
.screenshot
{
-moz-box-shadow
:
2px
2px
4px
#EEE
;
-webkit-box-shadow
:
2px
2px
4px
#EEE
;
box-shadow
:
2px
2px
4px
#EEE
;
}
table
.docutils
{
border
:
1px
solid
#888
;
-moz-box-shadow
:
2px
2px
4px
#EEE
;
-webkit-box-shadow
:
2px
2px
4px
#EEE
;
box-shadow
:
2px
2px
4px
#EEE
;
}
table
.docutils
td
,
table
.docutils
th
{
border
:
1px
solid
#888
;
padding
:
0.25em
0.7em
;
}
table
.field-list
,
table
.footnote
{
border
:
none
;
-moz-box-shadow
:
none
;
-webkit-box-shadow
:
none
;
box-shadow
:
none
;
}
table
.footnote
{
margin
:
15px
0
;
width
:
100%
;
border
:
1px
solid
#EEE
;
background
:
#FDFDFD
;
font-size
:
0.9em
;
}
table
.footnote
+
table
.footnote
{
margin-top
:
-15px
;
border-top
:
none
;
}
table
.field-list
th
{
padding
:
0
0.8em
0
0
;
}
table
.field-list
td
{
padding
:
0
;
}
table
.field-list
p
{
margin-bottom
:
0.8em
;
}
/* Cloned from
* https://github.com/sphinx-doc/sphinx/commit/ef60dbfce09286b20b7385333d63a60321784e68
*/
.field-name
{
-moz-hyphens
:
manual
;
-ms-hyphens
:
manual
;
-webkit-hyphens
:
manual
;
hyphens
:
manual
;
}
table
.footnote
td
.label
{
width
:
.1px
;
padding
:
0.3em
0
0.3em
0.5em
;
}
table
.footnote
td
{
padding
:
0.3em
0.5em
;
}
dl
{
margin
:
0
;
padding
:
0
;
}
dl
dd
{
margin-left
:
30px
;
}
blockquote
{
margin
:
0
0
0
30px
;
padding
:
0
;
}
ul
,
ol
{
/* Matches the 30px from the narrow-screen "li > ul" selector below */
margin
:
10px
0
10px
30px
;
padding
:
0
;
}
pre
{
background
:
#EEE
;
padding
:
7px
30px
;
margin
:
15px
0px
;
line-height
:
1.3em
;
}
div
.viewcode-block
:target
{
background
:
#ffd
;
}
dl
pre
,
blockquote
pre
,
li
pre
{
margin-left
:
0
;
padding-left
:
30px
;
}
tt
,
code
{
background-color
:
#ecf0f3
;
color
:
#222
;
/* padding: 1px 2px; */
}
tt
.xref
,
code
.xref
,
a
tt
{
background-color
:
#FBFBFB
;
border-bottom
:
1px
solid
#fff
;
}
a
.reference
{
text-decoration
:
none
;
border-bottom
:
1px
dotted
#004B6B
;
}
/* Don't put an underline on images */
a
.image-reference
,
a
.image-reference
:hover
{
border-bottom
:
none
;
}
a
.reference
:hover
{
border-bottom
:
1px
solid
#6D4100
;
}
a
.footnote-reference
{
text-decoration
:
none
;
font-size
:
0.7em
;
vertical-align
:
top
;
border-bottom
:
1px
dotted
#004B6B
;
}
a
.footnote-reference
:hover
{
border-bottom
:
1px
solid
#6D4100
;
}
a
:hover
tt
,
a
:hover
code
{
background
:
#EEE
;
}
@media
screen
and
(
max-width
:
870px
)
{
div
.sphinxsidebar
{
display
:
none
;
}
div
.document
{
width
:
100%
;
}
div
.documentwrapper
{
margin-left
:
0
;
margin-top
:
0
;
margin-right
:
0
;
margin-bottom
:
0
;
}
div
.bodywrapper
{
margin-top
:
0
;