public class ChunkPath extends Object
| Constructor and Description |
|---|
ChunkPath(Document doc,
AceMention m1,
AceMention m2)
builds the ChunkPath between two AceMentions.
|
ChunkPath(Document doc,
int from,
int to)
builds the ChunkPath from position
from to position
to in Document doc. |
ChunkPath(String chunkString) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(String chunk)
returns true if the ChunkPath includes
chunk. |
boolean |
equals(ChunkPath c) |
ArrayList<String> |
getChunks()
returns the chunks in the ChunkPath: an array of Strings of the heads
of the chunks (or null if no chunk sequence was found)
|
String |
getLastChunk()
returns the last chunk in the ChunkPath.
|
int |
hashCode() |
int |
matchFromLeft(int posn,
Document doc) |
int |
matchFromRight(int posn,
Document doc) |
int |
size()
returns the number of chunks in the ChunkPath, or -1 if there is
no chunk path.
|
String |
toString() |
void |
write(PrintWriter pw) |
public ChunkPath(Document doc, AceMention m1, AceMention m2)
public ChunkPath(Document doc, int from, int to)
from to position
to in Document doc.public ChunkPath(String chunkString)
public ArrayList<String> getChunks()
public String getLastChunk()
public int size()
public boolean contains(String chunk)
chunk.public void write(PrintWriter pw)
public boolean equals(ChunkPath c)
public int matchFromLeft(int posn,
Document doc)
public int matchFromRight(int posn,
Document doc)
Copyright © 2016 New York University. All rights reserved.