* Note: Do not use this class, internal use only!
*/
diff --git a/opennlp-coref/src/main/java/opennlp/tools/coref/CorefSample.java b/opennlp-coref/src/main/java/opennlp/tools/coref/CorefSample.java
index 07f9ba80..19d95ebf 100644
--- a/opennlp-coref/src/main/java/opennlp/tools/coref/CorefSample.java
+++ b/opennlp-coref/src/main/java/opennlp/tools/coref/CorefSample.java
@@ -20,16 +20,26 @@
import java.util.ArrayList;
import java.util.List;
+import opennlp.tools.commons.Sample;
import opennlp.tools.parser.Parse;
-public class CorefSample {
+/**
+ * Encapsulates {@link Parse parses} that originate from parsing operation on text.
+ */
+public class CorefSample implements Sample {
private final List
* Incompatible extents are chosen at random from the set of extents which don't meet these criteria.
diff --git a/opennlp-coref/src/main/java/opennlp/tools/formats/muc/FullParseCorefEnhancerStream.java b/opennlp-coref/src/main/java/opennlp/tools/formats/muc/FullParseCorefEnhancerStream.java
index 98adfc8c..32019e07 100644
--- a/opennlp-coref/src/main/java/opennlp/tools/formats/muc/FullParseCorefEnhancerStream.java
+++ b/opennlp-coref/src/main/java/opennlp/tools/formats/muc/FullParseCorefEnhancerStream.java
@@ -44,51 +44,40 @@ static Parse createIncompleteParse(String[] tokens) {
StringBuilder textBuilder = new StringBuilder();
for (int i = 0; i < tokens.length; i++) {
-
- if (textBuilder.length() > 0) {
+ if (!textBuilder.isEmpty()) {
textBuilder.append(' ');
}
-
int startOffset = textBuilder.length();
textBuilder.append(tokens[i]);
tokenSpans[i] = new Span(startOffset, textBuilder.length());
}
String text = textBuilder.toString();
-
Parse p = new Parse(text, new Span(0, text.length()), AbstractBottomUpParser.INC_NODE, 0, 0);
-
for (int i = 0; i < tokenSpans.length; i++) {
Span tokenSpan = tokenSpans[i];
p.insert(new Parse(text, new Span(tokenSpan.getStart(), tokenSpan.getEnd()),
AbstractBottomUpParser.TOK_NODE, 0, i));
}
-
return p;
}
-
+
+ @Override
public RawCorefSample read() throws IOException {
RawCorefSample sample = samples.read();
-
if (sample != null) {
-
List
+
+
+
+
+
+
+
+ Criticism in the U.S. over recent Japanese acquisitions is looming ever larger in the two countries' relations.
+ Officials from both nations say the U.S. public's skittishness about Japanese investment could color a second round of bilateral economic talks scheduled for next week in Washington.
+ Not that Washington and Tokyo disagree on the Japanese acquisitions; indeed, each has come out in favor of unfettered investment in the U.S.
+ Where they disagree is on the subject of U.S. direct investment in Japan.
+ The U.S. wants the removal of what it perceives as barriers to investment; Japan denies there are real barriers.
+ The heated talk stirred up by recent Japanese investments in the U.S. is focusing attention on the differences in investment climate, even though it's only one of many subjects to be covered in the bilateral talks, known as the Structural Impediments Initiative.
+ The Japanese "should see this rhetoric as a signal of the need for a change in their own economy," says Charles Dallara, U.S. assistant Treasury secretary, who has been in Tokyo this week informally discussing the impending negotiations with government and business leaders.
+ "We have a long history of maintaining an open direct-investment policy," Mr. Dallara says.
+ "U.S. investors should have a greater opportunity at direct investment" in Japan.
+ The Japanese fret openly about the U.S. public's rancor.
+ One clear sign of Japan's nervousness came this week, when a spokesman for Japan's Foreign Ministry devoted nearly all of a regular, half-hour briefing for foreign journalists to the subject of recent Japanese investments in the U.S.
+ "We believe that it is vitally important for those Japanese business interests {in the U.S.} to be more aware of the emotions and concerns of the American people," said the spokesman, Taizo Watanabe.
+ At the same time, though, he chastised the media for paying such close attention to Japanese investment when other foreign countries, notably Britain, are acquiring more American assets.
+