Home » Android » Failed :app:transformResourcesWithMergeJavaResForDebug.> Illegal char <:> at index 44: \edu\stanford\nlp\models\kbp\tokensregex\per:other_family.rules

Failed :app:transformResourcesWithMergeJavaResForDebug.> Illegal char <:> at index 44: \edu\stanford\nlp\models\kbp\tokensregex\per:other_family.rules

Posted by: admin November 1, 2017 Leave a comment

Questions:

So i’m trying to use the StanfordCoreNLP library within my Android Studio project to do some analysis on text, but for some reason there seems to be an issue with this one particular file.

It’s saying there’s an illegal char <:> at index 44

I have added all the .jar files as libraries to the project, however this .rules file is the only one causing an issue:

 

\edu\stanford\nlp\models\kbp\tokensregex\per:other_family.rules:

{ result: “per:other_family”, pattern: ( $ENTITY “,” [] /great/ /-/ /grandmother|grandfather|grandson|granddaughter|uncle|aunt|cousin|nephew|niece/ /of/ $SLOT_VALUE ) }
{ result: “per:other_family”, pattern: ( $ENTITY “,” [] /great/ /-/ /grandmother|grandfather|grandson|granddaughter|uncle|aunt|cousin|nephew|niece/ $SLOT_VALUE ) }
{ result: “per:other_family”, pattern: ( $ENTITY “,” /great/ /-/ /grandmother|grandfather|grandson|granddaughter|uncle|aunt|cousin|nephew|niece/ /of/ $SLOT_VALUE ) }
{ result: “per:other_family”, pattern: ( $ENTITY [] /great/ /-/ /grandmother|grandfather|grandson|granddaughter|uncle|aunt|cousin|nephew|niece/ /of/ $SLOT_VALUE ) }
{ result: “per:other_family”, pattern: ( $ENTITY [] /great/ /-/ /grandmother|grandfather|grandson|granddaughter|uncle|aunt|cousin|nephew|niece/ $SLOT_VALUE ) }
{ result: “per:other_family”, pattern: ( $ENTITY /great/ /-/ /grandmother|grandfather|grandson|granddaughter|uncle|aunt|cousin|nephew|niece/ /of/ $SLOT_VALUE ) }
{ result: “per:other_family”, pattern: ( $ENTITY [] /great/ /grandmother|grandfather|grandson|granddaughter|uncle|aunt|cousin|nephew|niece/ /of/ $SLOT_VALUE ) }
{ result: “per:other_family”, pattern: ( $ENTITY [] /great/ /grandmother|grandfather|grandson|granddaughter|uncle|aunt|cousin|nephew|niece/ $SLOT_VALUE ) }
{ result: “per:other_family”, pattern: ( $ENTITY /great/ /grandmother|grandfather|grandson|granddaughter|uncle|aunt|cousin|nephew|niece/ /of/ $SLOT_VALUE ) }
{ result: “per:other_family”, pattern: ( $ENTITY /grandmother|grandfather|grandson|granddaughter|uncle|aunt|cousin|nephew|niece/ /of/ $SLOT_VALUE ) }
{ result: “per:other_family”, pattern: ( $ENTITY /grandmother|grandfather|grandson|granddaughter|uncle|aunt|cousin|nephew|niece/ $SLOT_VALUE ) }
{ result: “per:other_family”, pattern: ( $ENTITY /grandmother|grandfather|grandson|granddaughter|uncle|aunt|cousin|nephew|niece/ /of/ $SLOT_VALUE ) }
{ result: “per:other_family”, pattern: ( $ENTITY “,” /grandmother|grandfather|grandson|granddaughter|uncle|aunt|cousin|nephew|niece/ /of/ $SLOT_VALUE ) }
{ result: “per:other_family”, pattern: ( $ENTITY “,” /grandmother|grandfather|grandson|granddaughter|uncle|aunt|cousin|nephew|niece/ $SLOT_VALUE ) }
{ result: “per:other_family”, pattern: ( $ENTITY “,” /grandmother|grandfather|grandson|granddaughter|uncle|aunt|cousin|nephew|niece/ /of/ $SLOT_VALUE ) }
{ result: “per:other_family”, pattern: ( $ENTITY /is/ /the/ [] /great/ /-/ /grandmother|grandfather|grandson|granddaughter|uncle|aunt|cousin|nephew|niece/ /of/ $SLOT_VALUE ) }
{ result: “per:other_family”, pattern: ( $ENTITY /is/ /the/ /great/ /-/ /grandmother|grandfather|grandson|granddaughter|uncle|aunt|cousin|nephew|niece/ /of/ $SLOT_VALUE ) }
{ result: “per:other_family”, pattern: ( $ENTITY /is/ /the/ /great/ /-/ /grandmother|grandfather|grandson|granddaughter|uncle|aunt|cousin|nephew|niece/ /of/ $SLOT_VALUE ) }
{ result: “per:other_family”, pattern: ( $ENTITY /is/ /the/ /-/ /grandmother|grandfather|grandson|granddaughter|uncle|aunt|cousin|nephew|niece/ /of/ $SLOT_VALUE ) }
{ result: “per:other_family”, pattern: ( $ENTITY /is/ /the/ /great/ /-/ /grandmother|grandfather|grandson|granddaughter|uncle|aunt|cousin|nephew|niece/ /of/ $SLOT_VALUE ) }
{ result: “per:other_family”, pattern: ( $ENTITY /is/ /the/ /-/ /grandmother|grandfather|grandson|granddaughter|uncle|aunt|cousin|nephew|niece/ /of/ $SLOT_VALUE ) }
{ result: “per:other_family”, pattern: ( $ENTITY /is/ /the/ /-/ /grandmother|grandfather|grandson|granddaughter|uncle|aunt|cousin|nephew|niece/ /of/ $SLOT_VALUE ) }
{ result: “per:other_family”, pattern: ( $ENTITY /is/ /the/ /grandmother|grandfather|grandson|granddaughter|uncle|aunt|cousin|nephew|niece/ /of/ $SLOT_VALUE ) }
{ result: “per:other_family”, pattern: ( $ENTITY /is/ /the/ /great/ /-/ /grandmother|grandfather|grandson|granddaughter|uncle|aunt|cousin|nephew|niece/ /of/ $SLOT_VALUE ) }
{ result: “per:other_family”, pattern: ( $ENTITY /is/ /the/ /-/ /grandmother|grandfather|grandson|granddaughter|uncle|aunt|cousin|nephew|niece/ /of/ $SLOT_VALUE ) }
{ result: “per:other_family”, pattern: ( $ENTITY /is/ /the/ /-/ /grandmother|grandfather|grandson|granddaughter|uncle|aunt|cousin|nephew|niece/ /of/ $SLOT_VALUE ) }
{ result: “per:other_family”, pattern: ( $ENTITY /is/ /the/ /grandmother|grandfather|grandson|granddaughter|uncle|aunt|cousin|nephew|niece/ /of/ $SLOT_VALUE ) }
{ result: “per:other_family”, pattern: ( $ENTITY /is/ /the/ /grandmother|grandfather|grandson|granddaughter|uncle|aunt|cousin|nephew|niece/ /of/ $SLOT_VALUE ) }
{ result: “per:other_family”, pattern: ( $ENTITY /is/ /the/ [] /grandmother|grandfather|grandson|granddaughter|uncle|aunt|cousin|nephew|niece/ /of/ $SLOT_VALUE ) }
{ result: “per:other_family”, pattern: ( $ENTITY /is/ /the/ /grandmother|grandfather|grandson|granddaughter|uncle|aunt|cousin|nephew|niece/ /of/ $SLOT_VALUE ) }
{ result: “per:other_family”, pattern: ( $ENTITY /’s/ /great/ /-/ /grandmother|grandfather|grandson|granddaughter|uncle|aunt|cousin|nephew|niece/ /,/ $SLOT_VALUE ) }
{ result: “per:other_family”, pattern: ( $ENTITY /’s/ /great/ /-/ /grandmother|grandfather|grandson|granddaughter|uncle|aunt|cousin|nephew|niece/ $SLOT_VALUE ) }

  
<…continues…>

The .rules file cannot be modified and I don’t see any errors with the file, any suggestions on how to fix this error?

Answers: