Metadata-Version: 1.0
Name: hornbill4p
Version: 0.1.1
Summary: hornbill python client and util
Home-page: http://www.datastory.com.cn
Author: mouhao
Author-email: mouhao@hudongpai.com
License:                   DATASTORY Co. Ltd. LICENSE
                   Version 1, April 2018

Copyright (C) 2018 Datastory <http://www.datastory.com.cn>

All rights reserved.

TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1.

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Description-Content-Type: UNKNOWN
Description: python client for hornbill
        
        test in python3.6
        
        # use case:
        
        
        ## classify
        
        ```python
        import hornbill4p
        
        host = 'algorithm3'
        port = 50051
        client = hornbill4p.HornbillRpcClient(host, port)
        res = client.classify("是个宝宝儿", ["ADTWT"])
        print(res)
        ```
        ```bash
        > ADTWT$1
        ```
        
        ## batch_classify
        
        ```python
        import hornbill4p
        
        host = 'algorithm3'
        port = 50051
        client = hornbill4p.HornbillRpcClient(host, port)
        res = client.batch_classify(["是个宝宝儿", "是个宝宝儿"], ["ADTWT"])
        
        for i in res:
            print(i)
        ```
        ```bash
        > ADTWT$1
        > ADTWT$1
        ```
        
        
        
        # install 
        
        ```bash
        git clone https://git.datatub.com/hornbill/hornbill4p.git
        ```
        
        ```bash
        pip install -r requirements.txt
        python setup.py install
        ```
         
        
Platform: UNKNOWN
