Coder Social home page Coder Social logo

askem-ta1-dockervm's People

Contributors

cl4yton avatar enoriega avatar free-quarks avatar jastier avatar myedibleenso avatar ualiangzhang avatar vincentraymond-ua avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

rchamplin

askem-ta1-dockervm's Issues

Update Notebook Examples

There are a few notebooks we have with examples of using our endpoints. However I think they are probably outdated at this point. We should make sure they get updated before the program ends so they are still valid documentation. This issue is to remind us and track that work.

  • eq2amr endpoints updated
  • #53
  • image2mml endpoints updated
  • isa endpoints updated
  • text-reading endpoints updated

We should also make sure the README is up to date as well with respect to these endpoints.

  • eq2amr endpoints updated
  • code2amr endpoints updated
  • image2mml endpoints updated
  • isa endpoints updated
  • text-reading endpoints updated

Tasks

No tasks being tracked yet.

Create proxy api and docker image

Create a REST API using fastapi to serve as the entry point that will orchestrate our annotation workflows and route requests to the appropriate web service (MIT or AZ)

Text input endpoint

This endpoint will receive one or more text files in its request's body and pass them along to the reading pipelines.
After both results are ready, it will run the canonical format unifier

[code2fn] Enrich `code2fn-rest` with example of zip archive -> fn

Enrich the jupyter notebook associated with code2fn-rest with an example illustrating how to process a zip archive of code.

Tasks

  1. 2 of 3
    Integration
    jastier vincentraymond-ua
  2. Code2FN enhancement
    vincentraymond-ua

[code2fn] Add `end-to-end-rest` example for processing source code

In coordination with @vincentraymond-ua , add add code2FN notebooks to code2fn-rest example.

Tasks

  1. Integration
    jastier
  2. 2 of 3
    Integration
    jastier vincentraymond-ua
  3. Code2FN Integration high priority
    titomeister
  4. Code2FN Integration high priority
    vincentraymond-ua

[code2fn] example of gromet -> AMR in `end-to-end-rest`

In coordination with @Free-Quarks , enhance or supplement end-to-end-rest example with AMR output.

We have a snippet we expect to work (to be added to code2amr.ipynb), but MORAE doesn't yet support our typical gromet:

from IPython.display import display, HTML, Image
from pathlib import Path
import requests
import json
import os

pp = lambda x: print(json.dumps(x, indent=2))

SKEMA_PA_SERVICE = os.environ.get("SKEMA_PA_ADDRESS", "http://skema-py:8000")
SKEMA_RS_SERVICE = os.environ.get("SKEMA_RS_ADDRESS", "http://skema-rs:8080")


filename = "CHIME_SIR.py"
with open(Path("/data") / "skema" / "code" / filename, "r") as infile:
    code = infile.read()

# display file contents
display(HTML(f"<code>{code}</code>"))

# API call and response

response = requests.post(f"{SKEMA_RS_SERVICE}/extract-comments", json={"language" : "Python", "code" : code})

r = requests.put(f"{BASE_URL}/models/PN", json=response.json())
r.json()

# NOTE: the put request cleans up after itself (from @Free-Quarks)
#requests.delete(f"{BASE_URL}/models/{MODEL_ID}").text

Tasks

  1. Code2FN documentation wontfix
    cl4yton

Suggestion of descriptive text for Code2FN in e2e jupyter notebook for OpenHouse demo

<text>

The Code2FN service take code as input (in multiple different forms), runs the program analysis pipeline to parse the files into CAST and translate the CAST into a Function Network (FN) and returns Gromet Function Network Module Collection (GrometFNModuleCollection) JSON.

The service currently accepts Python and Fortran (family) source code. The language type is determined by the filename extensions:

  • Python: .py
  • Fortran: .f, for, f95

The service can accept the following four types of code forms:

  • string containing code
  • single file
  • multi-file - array of text-blobs and corresponding filenames
  • zip archive containing a directory tree of source code files

</text>

@vincentraymond-ua :

  • Can you verify that my list of supported Fortran extensions is accurate and complete?
  • Does my description of the input types look correct?

[code2fn] Example notebook in `end-to-end-rest` for code -> fn

Provide a jupyter notebook for the code2fn-rest example illustrating how to call program analysis endpoints to generate function networks from code.

Tasks

[documentation] consolidate examples to use a single docker-compose file

To reduce confusion, we move away from the subdir-based examples to a unified approach that uses a single docker-compose file.

Tasks

  1. enoriega
  2. Free-Quarks

[code2fn] Enrich `end-to-end-rest` example gromet output with code comment metadata

Tasks

  1. 3 of 3
    Code2FN documentation high priority
    cl4yton
  2. Code2FN Integration high priority
    titomeister

Depends on ml4ai/skema#239

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.