Commit 1ab6240e authored by gogamza's avatar gogamza
Browse files

make to support tensorflow >= 2.3.0 and keras >= 2.4.3

parent c0697e1c
Loading
Loading
Loading
Loading
+0 −11
Original line number Diff line number Diff line
@@ -38,17 +38,6 @@ Common sense, the first is the right answer.

#### Install

**NB:** `PyKoSpacing` depends on `keras` which only supports `python==3.6.x`. Using [Anaconda](https://www.anaconda.com/) to install 'PyKoSpacing' will prevent interference with system-wide python packages.

##### Anaconda Install
```
conda create --name py-kospacing python=3.6 --yes
conda activate py-kospacing
conda install keras=2.1.5 h5py=2.7.1 --yes
pip install tensorflow==1.6.0 argparse">=1.4.0"
pip install git+https://github.com/haven-jeon/PyKoSpacing.git
```

##### PyPI Install
Pre-requisite:
```
+1 −1
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@ os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
model_path = pkg_resources.resource_filename('pykospacing', os.path.join('resources', 'models', 'kospacing'))
dic_path = pkg_resources.resource_filename('pykospacing', os.path.join('resources', 'dicts', 'c2v.dic'))
model = load_model(model_path)
model._make_predict_function()
model.make_predict_function()
w2idx, _ = load_vocab(dic_path)


+3 −3
Original line number Diff line number Diff line
tensorflow == 1.4.*
keras == 2.1.*
h5py == 2.7.*
tensorflow >= 2.3.0
keras >= 2.4.3
h5py >= 2.10.1
+3 −3
Original line number Diff line number Diff line
@@ -16,9 +16,9 @@ setup(name='pykospacing',
      include_package_data=True,

      install_requires=[
          'tensorflow >= 1.4.0, <= 1.6.0',
          'keras >= 2.1.5',
          'h5py >= 2.7.1',
          'tensorflow >= 2.3.0',
          'keras >= 2.4.3',
          'h5py >= 2.10.0',
          'argparse >= 1.4.0',
      ],