All Downloads are FREE. Search and download functionalities are using the official Maven repository.

resources.NE.hyphens.jape Maven / Gradle / Ivy

Go to download

ANNIE is a general purpose information extraction system that provides the building blocks of many other GATE applications.

There is a newer version: 9.1
Show newest version
Phase: Hyphens
Input: Token SpaceToken
Options: control = appelt

/* A phase to deal with weird problems in hyphenated words
*/

Rule: UpperHyphenated
// two NNPs separated by no white space should also be an Upper. 
// This happens when they're hyphenated and the hyphen is part of the first NNP

(
 ({Token.category == NNP}| 
   {Token.orth == upperInitial}|
   {Token.orth == mixedCaps} 
  )
 (
  {Token.category == NNP}|
  {Token.orth == upperInitial}|
  {Token.orth == mixedCaps} 
 )
):tag
-->
:tag.Upper = {rule = "UpperHyphenated"}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy