@@ -58,6 +58,31 @@ public Activation addInput(Document doc, int begin, int end) {
5858 return addInput (doc , begin , end , null , doc .bottom );
5959 }
6060
61+ /**
62+ * Propagate an input activation into the network.
63+ *
64+ * @param doc The current document
65+ * @param begin The range begin
66+ * @param end The range end
67+ * @param value The activation value of this input activation
68+ */
69+ public Activation addInput (Document doc , int begin , int end , double value ) {
70+ return addInput (doc , begin , end , null , doc .bottom , value );
71+ }
72+
73+ /**
74+ * Propagate an input activation into the network.
75+ *
76+ * @param doc The current document
77+ * @param begin The range begin
78+ * @param end The range end
79+ * @param value The activation value of this input activation
80+ * @param targetValue The target activation value for supervised learning
81+ */
82+ public Activation addInput (Document doc , int begin , int end , double value , double targetValue ) {
83+ return addInput (doc , begin , end , null , doc .bottom , value , targetValue );
84+ }
85+
6186
6287 /**
6388 * Propagate an input activation into the network.
@@ -110,7 +135,22 @@ public Activation addInput(Document doc, int begin, int end, Integer rid, Interp
110135 * @param value The activation value of this input activation
111136 */
112137 public Activation addInput (Document doc , int begin , int end , Integer rid , InterprNode o , double value ) {
113- return get ().addInput (doc , begin , end , rid , o , value );
138+ return addInput (doc , begin , end , rid , o , value , 0.0 );
139+ }
140+
141+ /**
142+ * Propagate an input activation into the network.
143+ *
144+ * @param doc The current document
145+ * @param begin The range begin
146+ * @param end The range end
147+ * @param rid The relational id (e.g. the word position)
148+ * @param o The interpretation node
149+ * @param value The activation value of this input activation
150+ * @param targetValue The target activation value for supervised learning
151+ */
152+ public Activation addInput (Document doc , int begin , int end , Integer rid , InterprNode o , double value , double targetValue ) {
153+ return get ().addInput (doc , begin , end , rid , o , value , targetValue );
114154 }
115155
116156
0 commit comments