Package | Description |
---|---|
edu.mit.jmwe.data.concordance |
Provides interfaces and classes for accessing data taken Semcor-formatted concordances, useful for benchmarking detectors.
|
Modifier and Type | Class and Description |
---|---|
protected static class |
ConcordanceTagger.TaggerToken
Represents a semcor token that is not yet tagged.
|
Modifier and Type | Method and Description |
---|---|
static ConcordanceToken |
ConcordanceToken.parse(java.lang.String str)
Parses a string of the form "test_NN_stem1_stem2_..._stemN_1_0" into a
ConcordanceToken instance. |
static ConcordanceToken |
ConcordanceToken.toToken(int tokenNum,
int partNum,
edu.mit.jsemcor.element.IWordform wf,
edu.mit.jsemcor.element.ISentence sent)
Constructs a semcor token object from the given token number, part
number, IWordform, and sentence drawn from the semcor corpus.
|
Modifier and Type | Method and Description |
---|---|
static java.util.List<ConcordanceToken> |
ConcordanceToken.parseList(java.lang.String str)
Parses a string formed from the concatenation of strings of the form
"test-1-0-NN-stem1:stem2 " into a list of corresponding
ConcordanceToken instances. |
static java.util.List<ConcordanceToken> |
ConcordanceToken.toTokens(edu.mit.jsemcor.element.IToken t,
int tokenNum,
edu.mit.jsemcor.element.ISentence sent)
Returns a list of Concordance token objects if the token specified by the
token number in the sentence is a continuous MWE.
|
Copyright © 2011 Massachusetts Institute of Technology. All Rights Reserved.