gate.plugins.Lang_French.grammar.first.jape Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gate-extraction Show documentation
Show all versions of gate-extraction Show documentation
Gate based component, that can process the Text units to extract informations using Gate's tools (such as grammars, gazetteers, tokenizer or POS Taggers).
This project contains two versions, a simple component and webservice one.
/*
* first.jape
*
* Copyright (c) 1998-2004, The University of Sheffield.
*
* This file is part of GATE (see http://gate.ac.uk/), and is free
* software, licenced under the GNU Library General Public License,
* Version 2, June 1991 (in the distribution as file licence.html,
* and also available at http://gate.ac.uk/gate/licence.html).
*
* Diana Maynard, 10 Sep 2001
*
* $Id: first.jape 6376 2004-11-24 16:27:30Z diana $
*/
Phase: First
Input: Token Lookup
Options: control = appelt
// this has to be run first of all
// contains any macros etc needed only for standard grammars
//////////////////////////////////////////////////////////////
Macro: SPACE
// space
// control
// space control
// control space
(
({SpaceToken.kind == space}
({SpaceToken.kind == control})?
({SpaceToken.kind == control})?
)
|
({SpaceToken.kind == control}
({SpaceToken.kind == control})?
({SpaceToken.kind == space})?
)
)
///////////////////////////////////////////////////////////////
Rule: Silly
// we have to have a rule here, so we'll just have something silly
(
{Token.string == "afguahughaegarth"}
)
:silly
-->
{}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy