Giter Site home page Giter Site logo

rosette-api / python Goto Github PK

View Code? Open in Web Editor NEW
37.0 17.0 91.0 1.68 MB

Rosette API Client Library for Python

License: Other

CSS 16.84% Python 83.16%
nlp machine-learning natural-language-processing text-analysis python entity-extraction name-generation language-detection language-identification categorization tokenization morphology lemmatization relation-extraction name-translation name-similarity sentiment-analysis text text-mining fuzzy-matching

python's Introduction

Rosette by Babel Street

PyPI version Python Versions

Rosette uses natural language processing, statistical modeling, and machine learning to analyze unstructured and semi-structured text across hundreds of language-script combinations, revealing valuable information and actionable data. Rosette provides endpoints for extracting entities and relationships, translating and comparing the similarity of names, categorizing and adding linguistic tags to text and more. Rosette Server is the on-premises installation of Rosette, with access to Rosette's functions as RESTful web service endpoints. This solves cloud security worries and allows customization (models/indexes) as needed for your business.

Rosette API Access

Quick Start

Installation

pip install rosette_api

Examples

View small example programs for each Rosette endpoint in the examples directory.

Documentation & Support

Binding Developer Information

If you are modifying the binding code, please refer to the developer README file.

python's People

Contributors

asoosprecognox avatar bwsawyer avatar cp2boston avatar davidliu-github avatar dmurga avatar fhasanaj avatar hgaudet avatar iredpath avatar jkho avatar karin-basis avatar katsuya-tomioka avatar kbailey-basistech avatar krczeck avatar lauren12292 avatar machine-user-rosette avatar matt-l-01 avatar samhausmann avatar seth-mg avatar tomhubbardbt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

python's Issues

Temporary file Warnings

When i try to run the sentiment file on the process of obtaining sentiment scores of the data set I have got,I repeatedly get the warning shown below for every request sent.It would be great if someone can help me fix this issue.Appreciate your time and effort.Cheers

/usr/local/lib/python3.5/dist-packages/rosette/api.py:229: ResourceWarning: unclosed file <_io.BufferedReader name='/tmp/tmp06za34ck.html'>
self.load_document_string(open(path, "rb").read())

Two examples hit dead endpoints

root@c1f18c11022f:/rosette/python/examples# python transliteration.py --key REDACTED
u'notFound': requested resource not found:
  https://api.rosette.com/rest/v1/transliteration
null
root@c1f18c11022f:/rosette/python/examples# 
root@c1f18c11022f:/rosette/python/examples# python name_deduplication.py --key REDACTED
u'notFound': requested resource not found:
  https://api.rosette.com/rest/v1/name-deduplication
null

CMake fails when installing

Hello, I'm trying to install this lib in my project but it all end with a big red error and:

dist_wheel -d /tmp/pip-wheel-hqztqplb --python-tag cp34:
  running bdist_wheel
  running build
  running build_ext
  CMake Error: The source directory "/tmp/pip-install-_k0gefvs/rosette" does not appear to contain CMakeLists.txt.
  Specify --help for usage, or press the help button on the CMake GUI.
  setup.py exiting with returncode 1

I tried with python version 3.4, 3.5, 3.6 on the standard docker container (https://hub.docker.com/_/python/) but no luck :(

how to reproduce:

docker run -it --entrypoint /bin/sh python:<version>
apt update && apt install -y build-essential python3-dev cmake
pip install rosette

and just look at it fail.

I'm a python n00b but my google-fu found only similar errors on other libs while dealing with their source code, so kind of 100km form where I am 🤷‍♂️

What could I be doing wrong?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.