Giter Club home page Giter Club logo

chemistry_api's Introduction

API for ChmRxnExtractor

API Deployement of reaction synthesis extraction model.

Installation

pip install -r requirements.txt

Usage

Starting API

This project uses Flask to implement its API and can be start using the follwing command:

python main.py

Creating extractions

In order to analyse the contents of a paragarph that describes a polymer synthesis reaction, the paragraphs should be passed in a JSON object to the "/extract" endpoint of the API. For example, if the server were to be running locally in port 5000 the follwing would result in the server respoinding with the extraction to the three embedded paragraphs:

curl -X POST http://localhost:5000/extract \
-H "Content-Type: application/json" \
-d '{
        "paragraphs": [
            "First, the reaction between diphenylacetylene and tungstencarbene complex 4 was examined. At 100 C n dioxane, cycloheptadienone derivative 5 was produced in 21% yield along witha trace of rearranged cycloheptadienone 6 (Scheme 11). Longerreflux times led to formation of greater amounts of cyclo-heptadienone 6t the expense of 5. Cycloheptadienone 5 was converted to 6 after 2h at 140 C he mechanism presumablyinvolves consecutive 1,5-hydride shifts S4 In contrast to previous results obtained with alkylcarbene-tungsten complexes and alkynes, the cycloaddition reaction was never complete at 100 C. Optimal yields of cycloheptadienone 6 ( 55% ) were obtained whenthe reaction was conducted in refluxing xylene (140 C) in the presence of 1,2-bis(diphenyIphosphino) enzene.",
            "Reaction of diphenylacetylene with complex 19A led to only cycloheptadienone 23A in 30 $ yield; with (phenylcyclopropy1)- carbene complex 19B, cycloheptadienone 25 was produced in 53% yield"
        ]
    }'

chemistry_api's People

Contributors

juanmoo avatar

Stargazers

Jiang Guo avatar

Watchers

James Cloos avatar  avatar

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.