Have got text transformations working
This commit is contained in:
parent
9f2fa96b92
commit
41daf7cfc9
14 changed files with 178 additions and 17 deletions
16
models.go
Normal file
16
models.go
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
package main
|
||||
|
||||
type TextSpan struct {
|
||||
Text string `json:"text"`
|
||||
Pos int `json:"pos"`
|
||||
Len int `json:"len"`
|
||||
}
|
||||
|
||||
type ProcessTextRequest struct {
|
||||
Action string `json:"action"`
|
||||
Input []TextSpan `json:"input"`
|
||||
}
|
||||
|
||||
type ProcessTextResponse struct {
|
||||
Output []TextSpan `json:"output"`
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue