Skip to content

Commit 52d86e0

Browse files
author
Jinho Choi
committed
Prepared for 0.0.2.
1 parent 27b3b0a commit 52d86e0

File tree

7 files changed

+36
-23
lines changed

7 files changed

+36
-23
lines changed

elit-component/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>cloud.elit</groupId>
99
<artifactId>elit</artifactId>
10-
<version>0.0.3-SNAPSHOT</version>
10+
<version>0.0.2-SNAPSHOT</version>
1111
</parent>
1212

1313
<dependencies>
@@ -20,7 +20,7 @@
2020
<dependency>
2121
<groupId>cloud.elit</groupId>
2222
<artifactId>elit-sdk</artifactId>
23-
<version>0.0.3-SNAPSHOT</version>
23+
<version>0.0.2-SNAPSHOT</version>
2424
</dependency>
2525
</dependencies>
2626
</project>

elit-sdk/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>cloud.elit</groupId>
99
<artifactId>elit</artifactId>
10-
<version>0.0.3-SNAPSHOT</version>
10+
<version>0.0.2-SNAPSHOT</version>
1111
</parent>
1212

1313
<dependencies>

elit-sdk/src/main/java/cloud/elit/sdk/DecodeComponent.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@
2020

2121
/**
2222
* This abstract class is inherited by components used for decoding, but not for training.
23-
* @param <I>
24-
* @param <O>
25-
* @param <P>
2623
*/
2724
public abstract class DecodeComponent<I, O, P extends Parameters> extends Component<I, O, P> {
2825
/** {@inheritDoc} */

elit-sdk/src/main/java/cloud/elit/sdk/nlp/structure/node/AbstractNode.java

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,22 @@ public AbstractNode(int token_id, String token, String lemma, String syn_tag, St
6262

6363
// =================================== Abstract ===================================
6464

65-
/** @return this node. */
65+
/**
66+
* @return this node.
67+
*/
6668
public abstract N self();
6769

68-
/** @return the index of the child. */
70+
/**
71+
* @param node
72+
* @return the index of the child.
73+
*/
6974
public abstract int getChildIndex(N node);
7075

71-
/** @return the default index for add. */
76+
/**
77+
* @param list
78+
* @param node
79+
* @return the default index for add.
80+
*/
7281
protected abstract int getDefaultIndex(List<N> list, N node);
7382

7483
// =================================== Fields ===================================

elit-sdk/src/main/java/cloud/elit/sdk/nlp/structure/node/NLPNode.java

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ public void setEndOffset(int offset) {
146146

147147
// ============================== Primary Dependencies ==============================
148148

149-
/** {@link #isChildOf(NLPNode, String)} && {@link #isDependencyLabel(String)}. */
150149
public boolean isChildOf(NLPNode node, String label) {
151150
return isChildOf(node) && isDependencyLabel(label);
152151
}
@@ -237,24 +236,24 @@ public String getValency() {
237236
}
238237

239238
/**
240-
* @return "<" if there is only one child oNLPNode the left-hand side,
241-
* "<<" if there are more thaNLPNode one child oNLPNode the left-hand side,
239+
* @return "[" if there is only one child oNLPNode the left-hand side,
240+
* "[[" if there are more thaNLPNode one child oNLPNode the left-hand side,
242241
* null if there is no child oNLPNode the left-hand side.
243242
*/
244243
public String getLeftValency() {
245-
if (getLeftMostChild(1) != null) return "<<";
246-
if (getLeftMostChild() != null) return "<";
244+
if (getLeftMostChild(1) != null) return "[[";
245+
if (getLeftMostChild() != null) return "[";
247246
return null;
248247
}
249248

250249
/**
251-
* @return ">" if there is only one child oNLPNode the right-hand side,
252-
* "<<" if there are more thaNLPNode one child oNLPNode the right-hand side,
250+
* @return "]" if there is only one child oNLPNode the right-hand side,
251+
* "]]" if there are more thaNLPNode one child oNLPNode the right-hand side,
253252
* null if there is no child oNLPNode the right-hand side.
254253
*/
255254
public String getRightValency() {
256-
if (getRightMostChild(1) != null) return ">>";
257-
if (getRightMostChild() != null) return ">";
255+
if (getRightMostChild(1) != null) return "]]";
256+
if (getRightMostChild() != null) return "]";
258257
return null;
259258
}
260259

elit-sdk/src/main/java/cloud/elit/sdk/util/DSUtils.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ static public <N>N getLast(List<N> list) {
3131
}
3232

3333
/**
34-
* e.g., getFirst(list, "VB", (n,s) -> AbstractNode::isSyntacticTag);
34+
* e.g., getFirst(list, "VB", (n,s) - AbstractNode::isSyntacticTag);
3535
* @param matcher takes a node and the supplement, and returns true if its field matches to the specific predicate.
3636
* @return the first item in the list matching the condition if exists; otherwise, {@code null}.
3737
*/
@@ -41,7 +41,7 @@ static public <N>N getFirst(List<N> list, Predicate<N> matcher)
4141
}
4242

4343
/**
44-
* e.g., getLast(list, "VB", (n,s) -> AbstractNode::isSyntacticTag);
44+
* e.g., getLast(list, "VB", (n,s) - AbstractNode::isSyntacticTag);
4545
* @param matcher takes a node and the supplement, and returns true if its field matches to the specific predicate.
4646
* @return the last node in the list matching the condition.
4747
*/
@@ -51,7 +51,7 @@ static public <N>N getLast(List<N> list, Predicate<N> matcher)
5151
}
5252

5353
/**
54-
* e.g., getMatchedList(list, "VB", (n,s) -> AbstractNode::isSyntacticTag);
54+
* e.g., getMatchedList(list, "VB", (n,s) - AbstractNode::isSyntacticTag);
5555
* @param matcher takes a node and the supplement, and returns true if its field matches to the specific predicate.
5656
* @return the sublist of the original list containing only matched items.
5757
*/
@@ -61,7 +61,7 @@ static public <N>List<N> getMatchedList(List<N> list, Predicate<N> matcher)
6161
}
6262

6363
/**
64-
* e.g., contains(list, "VB", (n,s) -> AbstractNode::isSyntacticTag);
64+
* e.g., contains(list, "VB", (n,s) - AbstractNode::isSyntacticTag);
6565
* @param matcher takes a node and the supplement, and returns true if its field matches to the specific predicate.
6666
* @return true if the list contains any item matching the condition.
6767
*/

pom.xml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>cloud.elit</groupId>
55
<artifactId>elit</artifactId>
6-
<version>0.0.3-SNAPSHOT</version>
6+
<version>0.0.2-SNAPSHOT</version>
77
<packaging>pom</packaging>
88

99
<name>ELIT: Evolution of Language and Information Technology</name>
@@ -97,6 +97,14 @@
9797
<groupId>org.apache.maven.plugins</groupId>
9898
<artifactId>maven-javadoc-plugin</artifactId>
9999
<version>3.0.0</version>
100+
<executions>
101+
<execution>
102+
<id>attach-javadocs</id>
103+
<goals>
104+
<goal>jar</goal>
105+
</goals>
106+
</execution>
107+
</executions>
100108
</plugin>
101109
<plugin>
102110
<groupId>org.apache.maven.plugins</groupId>

0 commit comments

Comments
 (0)