Updated relation PTIs and the PTIs order.
Change-Id: If98b8d376f20277c16129858085aca29608c597a
diff --git a/misc/payloads.md b/misc/payloads.md
index c0f2eb6..806ba65 100644
--- a/misc/payloads.md
+++ b/misc/payloads.md
@@ -94,27 +94,26 @@
These positions are always stored in integer.
-Relation TUI, left-part TUI and right-part TUI are also stored in
+Left-part TUI, right-part TUI, and relation TUI are also stored in
payloads. Relation TUIs are only necessary, in case an attribute
refers to it. It is necessary to have different length in payloads
for each of the following relations, so that the start and the end
ositions of the left and right parts can be determined.
1) Term to term relation
-has 1 integer for the right part token position, 1 short for the
-relation TUI, 1 short for the left-part TUI, and 1 short for
-right-part TUI. For example:
+has 1 integer for the right part token position, 1 short for the left-part TUI, 1 short for
+right-part TUI and 1 short for the
+relation TUI. For example:
- >:dependency$\<b\>32\<i\>3\<s\>3\<s\>5\<s\>4
+ >:dependency$\<b\>32\<i\>3\<s\>5\<s\>4\<s\>3
-has a token as the right part at (end) position 3, the relation
-TUI 3, the source TUI 5 and the target TUI 4.
+has a token as the right part at (end) position 3, the source TUI 5, the target TUI 4 and the relation TUI 3.
2) Term to element relation
has 1 integer for the start position of the right part, 1 integer
or the end position of the right part, and 3 TUIs as above.
- >:dependency$\<b\>33\<i\>1\<i\>3\<s\>3\<s\>5\<s\>4
+ >:dependency$\<b\>33\<i\>1\<i\>3\<s\>5\<s\>4\<s\>3
means the right part starts at token position 1 and ends at token
position 3.
@@ -124,7 +123,7 @@
to differentiate payload length, 1 integer for end position of the
right part, and 3 TUIs as above.
- >:dependency$\<b\>34\<i\>2\<b\>0\<i\>3\<s\>3\<s\>5\<s\>4
+ >:dependency$\<b\>34\<i\>2\<b\>0\<i\>3\<s\>5\<s\>4\<s\>3
means the left part ends at token position 2, and right part is a
term ending at position 3.
@@ -134,21 +133,17 @@
start position of the right part, 1 integer for end position of the
right part, and 3 TUIs as above.
- >:dependency$\<b\>35\<i\>2\<i\>3\<i\>4\<s\>3\<s\>5\<s\>4
+ >:dependency$\<b\>35\<i\>2\<i\>3\<i\>4\<s\>5\<s\>4\<s\>3
means the left part ends at token position 2, the right part is an
element starting at position 3 and ending at position 4.
*PTIs* (it’s a relation payload if the third bit is set):
- 32 >, term to term (with optional TUI and certainty)
- 33 >, term to element (with optional TUI and certainty)
- 34 >, element to term (with optional TUI and certainty)
- 35 >, element to element (with optional TUI and certainty)
- 40 <, term to term (with optional TUI and certainty)
- 41 <, term to element (with optional TUI and certainty)
- 42 <, element to term (with optional TUI and certainty)
- 43 <, element to element (with optional TUI and certainty)
+ 32 term to term relation (with optional relation TUI and certainty)
+ 33 term to element relation (with optional relation TUI and certainty)
+ 34 element to term relation (with optional relation TUI and certainty)
+ 35 element to element relation (with optional relation TUI and certainty)
### Attribute payloads
Each attribute has two payloads:
@@ -185,7 +180,3 @@
0 (no bit is set).
-
-
-
-