public class CONLLReader08 extends IOGenerals
| Modifier and Type | Field and Description |
|---|---|
static boolean |
NO_NORMALIZE |
static boolean |
NORMALIZE |
boolean |
normalizeOn |
EMPTY_FEAT, F_CONLL09, F_ONE_LINE, NO_TYPE, NUM, NUMBER, PIPE, REGEX, ROOT, ROOT_LEMMA, ROOT_POS, STRING, US| Constructor and Description |
|---|
CONLLReader08() |
CONLLReader08(boolean normalize) |
CONLLReader08(String file) |
CONLLReader08(String file,
boolean normalize) |
CONLLReader08(String testfile,
int formatTask) |
| Modifier and Type | Method and Description |
|---|---|
SentenceData09 |
getNext() |
SentenceData09 |
getNext(Instances is)
Read a instance an store it in a compressed format
|
SentenceData09 |
getNextCoNLL09()
i.forms[heads[l]-1]+" "+rel+" "+
Read a instance
|
boolean |
insert(Instances is,
SentenceData09 it) |
String |
normalize(String s) |
void |
setInputFormat(int format)
Sets the input format:
CONLL09 is standard,
ONE_LINE
|
void |
startReading(String file) |
public static final boolean NORMALIZE
public static final boolean NO_NORMALIZE
public boolean normalizeOn
public CONLLReader08(boolean normalize)
public CONLLReader08(String file)
public CONLLReader08(String file, boolean normalize)
public CONLLReader08()
public CONLLReader08(String testfile, int formatTask)
testfile - formatTask - public void setInputFormat(int format)
format - the fomrat (see the constants starting with F_).public void startReading(String file)
public SentenceData09 getNext()
public SentenceData09 getNextCoNLL09()
Exceptionpublic final SentenceData09 getNext(Instances is)
is - IOExceptionpublic final boolean insert(Instances is, SentenceData09 it)
Copyright © 2013. All rights reserved.