/* Ċ Ġ* ĠCopyright ĠĠ 2 0 2 0 ĠDavid ĠG ĠJ ones Ċ Ġ* Ċ Ġ* ĠLicensed Ġunder Ġthe ĠApache ĠLicense , ĠVersion Ġ 2 . 0 Ġ( the Ġ" License "); Ċ Ġ* Ġyou Ġmay Ġnot Ġuse Ġthis Ġfile Ġexcept Ġin Ġcompliance Ġwith Ġthe ĠLicense . Ċ Ġ* ĠYou Ġmay Ġobtain Ġa Ġcopy Ġof Ġthe ĠLicense Ġat Ċ Ġ* Ċ Ġ* ĠĠĠĠ Ġhttp :// www . apache . org / licenses / LICENSE - 2 . 0 Ċ Ġ* Ċ Ġ* ĠUnless Ġrequired Ġby Ġapplicable Ġlaw Ġor Ġagreed Ġto Ġin Ġwriting , Ġsoftware Ċ Ġ* Ġdistributed Ġunder Ġthe ĠLicense Ġis Ġdistributed Ġon Ġan Ġ" AS ĠIS " ĠBASIS , Ċ Ġ* ĠWITHOUT ĠWARRANTIES ĠOR ĠCONDITIONS ĠOF ĠANY ĠKIND , Ġeither Ġexpress Ġor Ġimplied . Ċ Ġ* ĠSee Ġthe ĠLicense Ġfor Ġthe Ġspecific Ġlanguage Ġgoverning Ġpermissions Ġand Ċ Ġ* Ġlimitations Ġunder Ġthe ĠLicense . Ċ Ġ* Ċ Ġ*/ Ċ Ċ package Ġinfo . dg j ones . bar nable . domain . general Ċ Ċ import Ġinfo . dg j ones . bar nable . concept . Core Fields Ċ import Ġinfo . dg j ones . bar nable . n arrative . build In Depth Under standing Lex icon Ċ import Ġinfo . dg j ones . bar nable . parser . run Text Process Ċ import Ġorg . junit . jupiter . api . Assertions Ċ import Ġorg . junit . jupiter . api . Test Ċ Ċ class ĠTime Test Ġ{ ĊĠĠĠ Ġval Ġlex icon Ġ= Ġbuild In Depth Under standing Lex icon () ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` Time Ġmodification Ġ- ĠY esterday `() Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġtext Processor Ġ= Ġrun Text Process (" John Ġwalk ed Ġhome Ġyesterday ", Ġlex icon ) ĊĊĠĠĠĠĠĠĠ ĠAssertions . assertEquals ( 1 , Ġtext Processor . working Memory . concepts . size ) ĊĠĠĠĠĠĠĠ Ġval Ġwalk Ġ= Ġtext Processor . working Memory . concepts [ 0 ] ĊĠĠĠĠĠĠĠ ĠAssertions . assertEquals ( Act s . P TRANS . name , Ġwalk . name ) ĊĠĠĠĠĠĠĠ ĠAssertions . assertEquals (" John ", Ġwalk . value ( Act Fields . Actor )?. value Name ( Human Fields . FirstName )) ĊĠĠĠĠĠĠĠ ĠAssertions . assertEquals (" Home ", Ġwalk . value ( Act Fields . To )?. value Name ( Core Fields . Name )) ĊĠĠĠĠĠĠĠ ĠAssertions . assertEquals (" Y esterday ", Ġwalk . value Name ( Time Fields . TIME )) ĊĠĠĠ Ġ} ĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` Time Ġmodification Ġ- ĠL ater `() Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġtext Processor Ġ= Ġrun Text Process (" John Ġwalk ed Ġhome Ġlater ", Ġlex icon ) ĊĊĠĠĠĠĠĠĠ ĠAssertions . assertEquals ( 1 , Ġtext Processor . working Memory . concepts . size ) ĊĠĠĠĠĠĠĠ Ġval Ġwalk Ġ= Ġtext Processor . working Memory . concepts [ 0 ] ĊĠĠĠĠĠĠĠ ĠAssertions . assertEquals ( Act s . P TRANS . name , Ġwalk . name ) ĊĠĠĠĠĠĠĠ ĠAssertions . assertEquals (" John ", Ġwalk . value ( Act Fields . Actor )?. value Name ( Human Fields . FirstName )) ĊĠĠĠĠĠĠĠ ĠAssertions . assertEquals (" Home ", Ġwalk . value ( Act Fields . To )?. value Name ( Core Fields . Name )) ĊĠĠĠĠĠĠĠ ĠAssertions . assertEquals (" Later ", Ġwalk . value Name ( Time Fields . TIME )) ĊĠĠĠ Ġ} Ċ }