Skip to content

Commit ca888a9

Browse files
authored
Some update of documents and unify the version of release. (#118)
1 parent 46c6364 commit ca888a9

File tree

3 files changed

+15
-7
lines changed

3 files changed

+15
-7
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88

99
# Introduction
1010
ONNXMLTools enables you to convert models from different machine learning toolkits into [ONNX](https://onnx.ai). Currently the following toolkits are supported:
11-
* Apple CoreML
11+
* Apple Core ML
1212
* scikit-learn (subset of models convertible to ONNX)
1313
* Keras (version 2.0.0 or higher)
1414
* LightGBM (through its scikit-learn interface)
1515

16-
(To convert ONNX model to CoreML, see [onnx-coreml](https://github.com/onnx/onnx-coreml))
16+
(To convert ONNX model to Core ML, see [onnx-coreml](https://github.com/onnx/onnx-coreml))
1717

1818
# Getting Started
1919
Clone this repository on your local machine.
@@ -37,7 +37,7 @@ This package uses ONNX, NumPy, and ProtoBuf. If you are converting a model from
3737
4. LightGBM (scikit-learn interface)
3838

3939
## Examples
40-
Here is a simple example to convert a CoreML model:
40+
Here is a simple example to convert a Core ML model:
4141
```python
4242
import onnxmltools
4343
import coremltools
@@ -90,4 +90,4 @@ onnx_model = onnxmltools.convert_keras(keras_model)
9090
[MIT License](LICENSE)
9191

9292
## Acknowledgments
93-
The initial version of this package was developed by the following engineers and data scientists at Microsoft during winter 2017: Zeeshan Ahmed, Wei-Sheng Chin, Aidan Crook, Xavier Dupre, Costin Eseanu, Tom Finley, Lixin Gong, Scott Inglis, Pei Jiang, Ivan Matantsev, Prabhat Roy, M. Zeeshan Siddiqui, Shouheng Yi, Shauheen Zahirazami, Yiwen Zhu.
93+
The package was developed by the following engineers and data scientists at Microsoft starting from winter 2017: Zeeshan Ahmed, Wei-Sheng Chin, Aidan Crook, Xavier Dupre, Costin Eseanu, Tom Finley, Lixin Gong, Scott Inglis, Pei Jiang, Ivan Matantsev, Prabhat Roy, M. Zeeshan Siddiqui, Shouheng Yi, Shauheen Zahirazami, Yiwen Zhu, Du Li, Xuan Li, Wenbing Li

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ ONNXMLTools enables you to convert models from different machine
1919
learning toolkits into `ONNX <https://onnx.ai>`_.
2020
Currently the following toolkits are supported:
2121

22-
* Apple CoreML
22+
* Apple Core ML
2323
* scikit-learn (subset of models convertible to ONNX)
2424
* Keras (version 2.0.0 or higher)
2525
* LightGBM (through its scikit-learn interface)
@@ -42,7 +42,7 @@ This package uses ONNX, NumPy, and ProtoBuf. If you are converting a model from
4242
Example
4343
=======
4444

45-
Here is a simple example to convert a CoreML model:
45+
Here is a simple example to convert a Core ML model:
4646

4747
::
4848

setup.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,21 @@
1818
packages = find_packages()
1919
assert packages
2020

21+
# read version from the package file.
22+
version_str = '1.0.0.0000'
23+
with (open(os.path.join(this, 'onnxmltools/__init__.py'), "r")) as f:
24+
line = [_ for _ in [_.strip("\r\n ")
25+
for _ in f.readlines()] if _.startswith("__version__")]
26+
if len(line) > 0:
27+
version_str = line[0].split('=')[1].strip('" ')
28+
2129
README = os.path.join(os.getcwd(), "README.rst")
2230
with open(README) as f:
2331
long_description = f.read()
2432

2533
setup(
2634
name='onnxmltools',
27-
version='1.2.0.0116',
35+
version=version_str,
2836
description="Converts Machine Learning models to ONNX",
2937
long_description=long_description,
3038
license='MIT License',

0 commit comments

Comments
 (0)