Update vector pkg download link
This commit is contained in:
parent
425ba5563c
commit
e829bf8f14
@ -1,7 +1,6 @@
|
||||
# 3.16
|
||||
|
||||
- Use internal pkg download link
|
||||
- keep it private, 闭源
|
||||
- Use github vector pkg download link
|
||||
|
||||
# 3.15
|
||||
|
||||
|
@ -1,8 +1,5 @@
|
||||
# Caution: this project is Out of Service!!!
|
||||
|
||||
We are sorry, but you can read the codes and implement by yourself or use other packages.
|
||||
|
||||
在维护这个项目上,我们投入了大量的时间和资金成本,现在 Chatopera 会尽可能的维护有限的开源项目以保证质量。
|
||||
[![PyPI](https://img.shields.io/pypi/v/synonyms.svg)](https://pypi.python.org/pypi/synonyms) [![](https://img.shields.io/pypi/pyversions/synonyms.svg)](https://pypi.org/pypi/synonyms/) [![](https://img.shields.io/pypi/l/synonyms.svg)](https://pypi.org/pypi/synonyms/) [![](https://img.shields.io/pypi/status/synonyms.svg)](https://pypi.org/pypi/synonyms/)
|
||||
[![](https://img.shields.io/pypi/format/synonyms.svg)](https://pypi.org/pypi/synonyms/)
|
||||
|
||||
# Synonyms
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
# synonyms 分数评测 [(v3.13.0)](https://pypi.python.org/pypi/synonyms/3.13.0)
|
||||
# synonyms 分数评测 [(v3.16.0)](https://pypi.python.org/pypi/synonyms/3.16.0)
|
||||
| 词1 | 词2 | synonyms | 人工评定 |
|
||||
| --- | --- | --- | --- |
|
||||
| 轿车 | 汽车 | 0.892 | 0.98 |
|
||||
|
@ -22,8 +22,9 @@ if [ -f synonyms/data/words.vector.gz ]; then
|
||||
mv synonyms/data/words.vector.gz tmp
|
||||
fi
|
||||
|
||||
rm -rf ./dist/*
|
||||
python setup.py sdist
|
||||
# python setup.py sdist upload -r pypi
|
||||
mv tmp/words.vector.gz synonyms/data/words.vector.gz
|
||||
|
||||
echo "Now upload ./dist/synonyms-xxx.tar.gz to `corsair:/static/ml/synonyms` download from http://192.168.2.217:30080/ml/synonyms/"
|
||||
echo "For internal package downloading, now upload ./dist/synonyms-xxx.tar.gz to corsair:/static/ml/synonyms download from http://192.168.2.217:30080/ml/synonyms/"
|
16
scripts/pypi.sh
Executable file
16
scripts/pypi.sh
Executable file
@ -0,0 +1,16 @@
|
||||
#! /bin/bash
|
||||
###########################################
|
||||
# publish package to pypi
|
||||
###########################################
|
||||
|
||||
# constants
|
||||
baseDir=$(cd `dirname "$0"`;pwd)
|
||||
export PYTHONUNBUFFERED=1
|
||||
export PATH=/opt/miniconda3/envs/venv-py3/bin:$PATH
|
||||
|
||||
# functions
|
||||
|
||||
# main
|
||||
[ -z "${BASH_SOURCE[0]}" -o "${BASH_SOURCE[0]}" = "$0" ] || return
|
||||
cd $baseDir/..
|
||||
python setup.py upload -r pypi
|
@ -124,7 +124,7 @@ def keywords(sentence, topK=5, withWeight=False, allowPOS=()):
|
||||
word embedding
|
||||
'''
|
||||
# vectors
|
||||
_f_url = os.environ.get("SYNONYMS_WORD2VEC_BIN_URL_ZH_CN", "http://192.168.2.217:30080/ml/synonyms/words.vector.gz")
|
||||
_f_url = os.environ.get("SYNONYMS_WORD2VEC_BIN_URL_ZH_CN", "https://github.com/chatopera/Synonyms/releases/download/3.15.0/words.vector.gz")
|
||||
_f_model = os.path.join(curdir, 'data', 'words.vector.gz')
|
||||
_download_model = not os.path.exists(_f_model)
|
||||
if "SYNONYMS_WORD2VEC_BIN_MODEL_ZH_CN" in ENVIRON:
|
||||
|
Loading…
Reference in New Issue
Block a user