Skip to content

Commit

Permalink
textproc/py-sense2vec: Add py-sense2vec 2.0.2
Browse files Browse the repository at this point in the history
sense2vec (Trask et. al, 2015) is a nice twist on word2vec that lets you learn
more interesting and detailed word vectors. This library is a simple Python
implementation for loading, querying and training sense2vec models.
  • Loading branch information
sunpoet committed Feb 21, 2024
1 parent d9d3c5d commit a8d209d
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 0 deletions.
1 change: 1 addition & 0 deletions textproc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1552,6 +1552,7 @@
SUBDIR += py-rst2ansi
SUBDIR += py-rst2html5
SUBDIR += py-scour
SUBDIR += py-sense2vec
SUBDIR += py-sentencepiece
SUBDIR += py-simplebayes
SUBDIR += py-smartypants
Expand Down
27 changes: 27 additions & 0 deletions textproc/py-sense2vec/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
PORTNAME= sense2vec
PORTVERSION= 2.0.2
CATEGORIES= textproc python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}

MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Contextually-keyed word vectors
WWW= https://github.com/explosion/sense2vec

LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE

BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}catalogue>=2.0.1<2.1.0:devel/py-catalogue@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}numpy>=1.15.0,1:math/py-numpy@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}spacy>=3.0.0<4.0.0:textproc/py-spacy@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}srsly>=2.4.0<3.0.0:devel/py-srsly@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}wasabi>=0.8.1<1.2.0:textproc/py-wasabi@${PY_FLAVOR}

USES= python
USE_PYTHON= autoplist concurrent pep517

NO_ARCH= yes

.include <bsd.port.mk>
3 changes: 3 additions & 0 deletions textproc/py-sense2vec/distinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
TIMESTAMP = 1708448850
SHA256 (sense2vec-2.0.2.tar.gz) = c7df6f89f74d83ed13c85998fe5792e836f7971e099af955211a6adefabaa768
SIZE (sense2vec-2.0.2.tar.gz) = 61403
3 changes: 3 additions & 0 deletions textproc/py-sense2vec/pkg-descr
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
sense2vec (Trask et. al, 2015) is a nice twist on word2vec that lets you learn
more interesting and detailed word vectors. This library is a simple Python
implementation for loading, querying and training sense2vec models.

0 comments on commit a8d209d

Please sign in to comment.