/** * Options don't do anything. */ public Label newLabel(String labelStr, int options) { return newLabel(labelStr); }
private static int [] zzUnpackTrans() { int [] result = new int[169]; int offset = 0; offset = zzUnpackTrans(ZZ_TRANS_PACKED_0, offset, result); return result; }
private static int [] zzUnpackAttribute() { int [] result = new int[14]; int offset = 0; offset = zzUnpackAttribute(ZZ_ATTRIBUTE_PACKED_0, offset, result); return result; }
/** * Pushes the specified amount of characters back into the input stream. * * They will be read again by then next call of the scanning method * * @param number the number of characters to be read again. * This number must not be greater than yylength()! */ public void yypushback(int number) { if ( number > yylength() ) zzScanError(ZZ_PUSHBACK_2BIG); zzMarkedPos -= number; }
public NegraPennTreebankParserParams() { super(new NegraPennLanguagePack(defaultLeaveGF, defaultGFCharacter)); //wsg2010: Commented out by Roger? //return new NegraHeadFinder(); //return new LeftHeadFinder(); headFinder = new NegraHeadFinder(); // override output encoding: make it UTF-8 setOutputEncoding("UTF-8"); }
public NegraPennTreeReaderFactory() { this(2, false, true, new NegraPennLanguagePack()); }
private static int [] zzUnpackAttribute() { int [] result = new int[17]; int offset = 0; offset = zzUnpackAttribute(ZZ_ATTRIBUTE_PACKED_0, offset, result); return result; }
@Override public TreeReaderFactory treeReaderFactory() { return new NegraPennTreeReaderFactory(this); }
private static int [] zzUnpackAction() { int [] result = new int[17]; int offset = 0; offset = zzUnpackAction(ZZ_ACTION_PACKED_0, offset, result); return result; }
private static int [] zzUnpackRowMap() { int [] result = new int[17]; int offset = 0; offset = zzUnpackRowMap(ZZ_ROWMAP_PACKED_0, offset, result); return result; }
public NegraPennTokenizer(Reader r) { super(new NegraPennLexer(r)); }
@Override public LabelFactory labelFactory() { return new NegraLabelFactory(); }
/** {@inheritDoc} */ public HeadFinder typedDependencyHeadFinder() { return new NegraHeadFinder(this); }
/** * Pushes the specified amount of characters back into the input stream. * * They will be read again by then next call of the scanning method * * @param number the number of characters to be read again. * This number must not be greater than yylength()! */ public void yypushback(int number) { if ( number > yylength() ) zzScanError(ZZ_PUSHBACK_2BIG); zzMarkedPos -= number; }
private static int [] zzUnpackAction() { int [] result = new int[14]; int offset = 0; offset = zzUnpackAction(ZZ_ACTION_PACKED_0, offset, result); return result; }
private static int [] zzUnpackTrans() { int [] result = new int[117]; int offset = 0; offset = zzUnpackTrans(ZZ_TRANS_PACKED_0, offset, result); return result; }
private static int [] zzUnpackRowMap() { int [] result = new int[14]; int offset = 0; offset = zzUnpackRowMap(ZZ_ROWMAP_PACKED_0, offset, result); return result; }
/** * Nothing fancy now: just makes the argument the value of the label */ public Label newLabelFromString(String encodedLabelStr) { return newLabel(encodedLabelStr); }
public NegraPennTreeNormalizer() { this(new NegraPennLanguagePack()); }
/** {@inheritDoc} */ public HeadFinder headFinder() { return new NegraHeadFinder(this); }