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
9d3df708
Commit
9d3df708
authored
Jul 01, 2019
by
Valentin Pelloin
Browse files
added requirements.txt & shifted pmi now with k=1 (no shifting, better results)
parent
674e543b
Changes
2
Hide whitespace changes
Inline
Side-by-side
setup.py
View file @
9d3df708
...
...
@@ -3,6 +3,9 @@ from setuptools import setup
with
open
(
"README.md"
,
"r"
)
as
fh
:
long_description
=
fh
.
read
()
with
open
(
"requirements.txt"
,
"r"
)
as
f
:
required
=
f
.
read
().
splitlines
()
setup
(
name
=
'svd2vec'
,
version
=
'0.2'
,
description
=
'A library that converts words to vectors using PMI and SVD'
,
...
...
@@ -17,5 +20,6 @@ setup(name='svd2vec',
classifiers
=
[
"Programming Language :: Python :: 3"
,
"License :: OSI Approved :: MIT License"
,
"Operating System :: OS Independent"
,]
"Operating System :: OS Independent"
],
install_requires
=
required
)
svd2vec/core.py
View file @
9d3df708
...
...
@@ -79,7 +79,7 @@ class svd2vec:
window
=
10
,
dyn_window_weight
=
WINDOW_WEIGHT_WORD2VEC
,
cds_alpha
=
0.75
,
neg_k_shift
=
5
,
neg_k_shift
=
1
,
eig_p_weight
=
0
,
nrm_type
=
NRM_SCHEME_ROW
,
sub_threshold
=
1e-5
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment