Giter Club home page Giter Club logo

tuple_label's Introduction

tuple_label

标注服务的后台

运行

pip3 install -r requirements.txt
# 建立本地库
python3 manage.py makemigrations
python3 manage.py migrate
# 本地运行
python3 manage.py runserver 0.0.0.0:8000

功能:

提供project项目表、label标签表、label_document标注表的基础增删改查接口
项目的整体导入、导出

接口示例(以project为例):

# 获取project 列表
method: get
url: localhost:8000/api/project/
返回结果:
    {
        "count": 2,
        "next": null,
        "previous": null,
        "results": [
            {
                "id": 1,
                "name": "三元组标记",
                "description": "百度Ai比赛数据"
            },
            {
                "id": 2,
                "name": "project2",
                "description": "测试说明"
            }
        ]
    }

# 获取id 为1的project 
method: get
url:localhost:8000/api/project/1
返回结果:
    {
        "id": 1,
        "name": "三元组标记",
        "description": "百度Ai比赛数据"
    }

# 增加 project
method: post
url: localhost:8000/api/project/
json data:
{
    "id": 1,
    "name": "三元组标记",
    "description": "百度Ai比赛数据"
}

# 修改id 为1的project
method: post
url: localhost:8000/api/project/1
json data:
    {
        "id": 1,
        "name": "三元组标记modify",
        "description": "百度Ai比赛数据modify"
    }

# 删除id 为1的project 
method: delete
url:localhost:8000/api/project/1

更新requirements.txt

pipreqs --force . # 更新依赖 

tuple_label's People

Contributors

jaccccccccccccccccccccccccccccck avatar

Watchers

James Cloos 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.