Skip to content

Commit 5f1ec05

Browse files
committed
feat(api)!: changed how end offsets are computed
1 parent c25be59 commit 5f1ec05

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

openapi.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
info:
22
title: Isaacus API
3-
version: 0.4.0
3+
version: 0.5.0
44
description: A RESTful API for using Isaacus legal AI models, data and other solutions.
55
termsOfService: https://isaacus.com/terms
66
contact:
@@ -986,7 +986,7 @@ components:
986986
examples:
987987
- - index: 0
988988
start: 0
989-
end: 45
989+
end: 46
990990
score: 0.8825573934438159
991991
text: I agree not to tell anyone about the document.
992992
type: object
@@ -1001,7 +1001,7 @@ components:
10011001
chunks:
10021002
- index: 0
10031003
start: 0
1004-
end: 45
1004+
end: 46
10051005
score: 0.8825573934438159
10061006
text: I agree not to tell anyone about the document.
10071007
UniversalClassificationChunk:
@@ -1024,11 +1024,11 @@ components:
10241024
end:
10251025
type: integer
10261026
minimum: 1.0
1027-
description: The index of the character in the original text where the chunk
1028-
ends, beginning from `0` (such that, in Python, the chunk is equivalent
1029-
to `text[start:end+1]`).
1027+
description: The index of the character immediately after the last character
1028+
of the chunk in the original text, beginning from `0` (such that, in Python,
1029+
the chunk is equivalent to `text[start:end]`).
10301030
examples:
1031-
- 45
1031+
- 46
10321032
score:
10331033
type: number
10341034
maximum: 1.0
@@ -1059,7 +1059,7 @@ components:
10591059
examples:
10601060
- index: 0
10611061
start: 0
1062-
end: 45
1062+
end: 46
10631063
score: 0.8825573934438159
10641064
text: I agree not to tell anyone about the document.
10651065
UniversalClassificationRequest:
@@ -1178,7 +1178,7 @@ components:
11781178
chunks:
11791179
- index: 0
11801180
start: 0
1181-
end: 45
1181+
end: 46
11821182
score: 0.8825573934438159
11831183
text: I agree not to tell anyone about the document.
11841184
usage:
@@ -1197,7 +1197,7 @@ components:
11971197
chunks:
11981198
- index: 0
11991199
start: 0
1200-
end: 45
1200+
end: 46
12011201
score: 0.8825573934438159
12021202
text: I agree not to tell anyone about the document.
12031203
usage:

0 commit comments

Comments
 (0)