Debian Codegraph @

bindings/java/org/linkgrammar/Link.java

raw
1
2 /*************************************************************************/
3 /* */
4 /* Use of the link grammar parsing system is subject to the terms of the */
5 /* license set forth in the LICENSE file included with this software. */
6 /* This license allows free redistribution and use in source and binary */
7 /* forms, with or without modification, subject to certain conditions. */
8 /* */
9 /*************************************************************************/
10
11 package org.linkgrammar;
12
13 /**
14 * Represents a <em>Link Grammar</em> link as part of a parse result.
15 * Link objects contain the indices of the word they link to as well
16 * as an identifier of the type of link and label for the left and
17 * right connectors.
18 *
19 * @author Borislav Iordanov
20 *
21 */
22 public class Link
23 {
24 private int left, right;
25 private String label, leftLabel, rightLabel;
26
27 public int getLeft()
28 {
29 return left;
30 }
31 public void setLeft(int left)
32 {
33 this.left = left;
34 }
35 public int getRight()
36 {
37 return right;
38 }
39 public void setRight(int right)
40 {
41 this.right = right;
42 }
43 public String getLabel()
44 {
45 return label;
46 }
47 public void setLabel(String label)
48 {
49 this.label = label;
50 }
51 public String getLeftLabel()
52 {
53 return leftLabel;
54 }
55 public void setLeftLabel(String leftLabel)
56 {
57 this.leftLabel = leftLabel;
58 }
59 public String getRightLabel()
60 {
61 return rightLabel;
62 }
63 public void setRightLabel(String rightLabel)
64 {
65 this.rightLabel = rightLabel;
66 }
67 }