File size: 2,666 Bytes
5760b44
 
 
 
03eec87
5760b44
 
 
ca2592c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5760b44
 
 
 
 
 
 
 
 
 
 
 
 
a5fed35
 
5760b44
 
 
 
 
 
 
 
 
 
 
6373819
 
5760b44
 
6373819
5760b44
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
openapi: 3.0.3
info:
  title: Comma fixer
  description: Comma fixer, using machine learning to fix placement of commas within a string of text.
  version: 0.1.0
servers:
  - url: 'https://localhost:5000'
paths:
  /fix-commas:
    post:
      summary: Fixes comma placement in a sentence using the fine-tuned model
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                s:
                  type: string
                  example: 'This, is a sentence with wrong commas at least some.'
                  description: The text with commas to fix. Commas can be removed, added, reordered at will, or left 
                    unchanged. Other punctuation, whitespaces and so on will stay intact.
      responses:
        200:
          description: Commas fixed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  s:
                    type: string
                    example: 'This is a sentence with wrong commas, at least some.'
                    description: A text with commas fixed, or unchanged if not necessary. Everything other that 
                      commas will stay as it was originally.

        400:
          description: A required field missing from the POST request body JSON.

# TODO remove duplication here

  /baseline/fix-commas:
    post:
      summary: Fixes comma placement in a sentence using the baseline model
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                s:
                  type: string
                  example: 'This, is a sentence with wrong commas at least some.'
                  description: The text with commas to fix. Commas can be removed, added, reordered at will, or left 
                    unchanged. Other punctuation, whitespaces and so on will stay intact.
      responses:
        200:
          description: Commas fixed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  s:
                    type: string
                    example: 'This is a sentence with wrong commas, at least some.'
                    description: A text with commas fixed, or unchanged if not necessary. Everything other that 
                      commas will stay as it was originally.

        400:
          description: A required field missing from the POST request body JSON.