Skip to content

Commit

Permalink
fix doc
Browse files Browse the repository at this point in the history
  • Loading branch information
yongzhuo committed Jan 21, 2020
1 parent 85470be commit e426544
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@


# 安装
1. 通过PyPI安装(自带模型文件):
1. 通过PyPI安装(模型文件另需下载, 详见[命名实体提取](##命名实体提取), [词性标注](##词性标注)):
```
pip install macropodus
```
Expand Down Expand Up @@ -291,6 +291,7 @@ print(res_han2zh)


# 参考/引用
* StringPreHandler(提取数字,纯数字):[https://github.com/zhanzecheng/Time_NLP](https://github.com/zhanzecheng/Time_NLP)
* textrank_gensim: [https://github.com/RaRe-Technologies/gensim](https://github.com/RaRe-Technologies/gensim)
* 最大概率(DAG-动态规划)词典分词: [https://github.com/fxsjy/jieba](https://github.com/fxsjy/jieba)
* CRF(-未解决): [https://github.com/BrikerMan/Kashgari](https://github.com/BrikerMan/Kashgari)
Expand Down
5 changes: 5 additions & 0 deletions macropodus/data/model/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# !/usr/bin/python
# -*- coding: utf-8 -*-
# @time : 2019/12/21 23:06
# @author : Mo
# @function:
12 changes: 7 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
author=AUTHOR,
author_email=EMAIL,
url=URL,
packages=find_packages(exclude=('test')),
package_data={'macropodus': ['*.*', 'data/*', 'data/dict/*',
packages=find_packages(), # (exclude=('test')),
package_data={'macropodus': ['*.*', 'data/*', 'data/dict/*',
'data/embedding/*', 'data/embedding/word2vec/*',
'data/model/*']
},
Expand All @@ -55,6 +55,11 @@
# 说明, tensorflow>=1.13.0 or tensorflow-gpu>=1.13.0
# 项目工程目录这里Macropodus, 实际上, 下边还要有一层macropodus, 也就是说, macropodus和setup同一层
# data包里必须要有__init__.py, 否则文件不会生成, .py文件才能copy

# anaconda3创建环境
# conda remove -n py35 --all
# conda create -n py351 python=3.5

# 编译的2种方案:

# 方案一
Expand All @@ -67,7 +72,4 @@
# python setup.py bdist_wheel --universal
# twine upload dist/*

#
# conda remove -n py35 --all
# conda create -n py351 python=3.5

0 comments on commit e426544

Please sign in to comment.