eloukas commited on
Commit
fe37a06
1 Parent(s): 6956e73

Update summaries

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -184,7 +184,7 @@ class DPResponse(BaseModel):
184
 
185
 
186
  # API endpoints
187
- @app.post("/g2g", response_model=G2GOutput, summary="Convert Greeklish to Greek")
188
  async def greeklish_to_greek(
189
  text: str = Query(
190
  ...,
@@ -222,7 +222,7 @@ class NERResponse(BaseModel):
222
 
223
 
224
  # @app.post("/ner", response_model=List[NERItem], summary="Named Entity Recognition")
225
- @app.post("/ner", response_model=NERResponse, summary="Named Entity Recognition")
226
  async def process_ner(
227
  text: str = Query(
228
  ...,
@@ -264,7 +264,7 @@ async def process_ner(
264
 
265
 
266
  # @app.post("/pos", response_model=List[POSItem], summary="Part-of-Speech Tagging")
267
- @app.post("/pos", response_model=POSResponse, summary="Part-of-Speech Tagging")
268
  async def process_pos(
269
  text: str = Query(
270
  ...,
@@ -354,7 +354,7 @@ async def process_pos(
354
 
355
 
356
  # @app.post("/dp", response_model=List[DPItem], summary="Dependency Parsing")
357
- @app.post("/dp", response_model=DPResponse, summary="Dependency Parsing")
358
  async def process_dp(
359
  text: str = Query(
360
  ...,
 
184
 
185
 
186
  # API endpoints
187
+ @app.post("/g2g", response_model=G2GOutput, summary="Convert Greeklish to Greek (G2G)")
188
  async def greeklish_to_greek(
189
  text: str = Query(
190
  ...,
 
222
 
223
 
224
  # @app.post("/ner", response_model=List[NERItem], summary="Named Entity Recognition")
225
+ @app.post("/ner", response_model=NERResponse, summary="Named Entity Recognition (NER)")
226
  async def process_ner(
227
  text: str = Query(
228
  ...,
 
264
 
265
 
266
  # @app.post("/pos", response_model=List[POSItem], summary="Part-of-Speech Tagging")
267
+ @app.post("/pos", response_model=POSResponse, summary="Part-of-Speech (POS) Tagging")
268
  async def process_pos(
269
  text: str = Query(
270
  ...,
 
354
 
355
 
356
  # @app.post("/dp", response_model=List[DPItem], summary="Dependency Parsing")
357
+ @app.post("/dp", response_model=DPResponse, summary="Dependency Parsing (DP)")
358
  async def process_dp(
359
  text: str = Query(
360
  ...,