From: Diana M. <d.m...@dc...> - 2010-10-15 14:56:15
|
It could be perfectly reasonable to expect that an abbreviation containing a full stop is annotated as a single Token, and it can be tricky to view in the GUI, so not realising that is quite understandable! It was just unfortunate that your example used an abbreviation otherwise you'd have had no issues! Diana On 15/10/10 15:48, Andrew Martin wrote: > Aha! That worked! > > Thank you for your help, probably would have taken me another week to > notice that. > > -Andrew > > On 15 October 2010 15:42, Diana Maynard <d.m...@dc... > <mailto:d.m...@dc...>> wrote: > > Hi Andrew > The reason is that the "." after Inc is a separate Token, so this is > why your rule isn't firing. > You would need to do something like the following to see the results > you want: > > > Phase: SomeTestRules > Input: Token > > Rule: MyRule > Priority: 20 > ( > {Token.category == "NNP"} > ):lhsTok > ({Token.string == "."})? > > {Token.category == "VBN"} > --> > :lhsTok.MyAnnotation = { message = "Match found", rule = MyRule } > > > > Regards > Diana > > > > > On 15/10/10 15:34, Andrew Martin wrote: > > Motorola Inc. filed several patent-infringement complaints > against Apple > Inc., further complicating the legal entanglements among technology > companies feuding on the mobile battleground. > > |