RE: Help needed with document creation time/date

2016-07-13 Thread Finan, Sean
Sounds cool! -Original Message- From: Abramowitsch, Peter [mailto:pabramowit...@hearst.com] Sent: Wednesday, July 13, 2016 3:28 PM To: dev@ctakes.apache.org Subject: Re: Help needed with document creation time/date Thank you! Knowing now that it's a do-it-yourself thing, I might also tr

Re: Help needed with document creation time/date

2016-07-13 Thread Abramowitsch, Peter
Thank you! Knowing now that it's a do-it-yourself thing, I might also try adding those expressions to a RegexAnnotator that I'm using: It allows the expressions to be added and combined in an external file. https://logiciels.lina.univ-nantes.fr/redmine/.../uima-tokens-regex-documen tation.pdf I

RE: Help needed with document creation time/date

2016-07-13 Thread Finan, Sean
Just to be clear, DATE_PATTERN is whatever regex you use. For instance: static private final Pattern DATE_PATTERN = Pattern.compile( ".*Principal Date\\D+(\\d+) (\\d+).*", DOTALL ); -Original Message- From: Abramowitsch, Peter [mailto:pabramowit...@hearst.com] Sent: Wednesday, July

Re: Help needed with document creation time/date

2016-07-13 Thread Abramowitsch, Peter
Got it. Thanks On 7/13/16, 12:00 PM, "Finan, Sean" wrote: >DATE_PATTERN.matcher

RE: Help needed with document creation time/date

2016-07-13 Thread Finan, Sean
Basically, you just want to create a TimeMention. Here is a short example: final String docText = jcas.getDocumentText(); final Matcher dateMatcher = DATE_PATTERN.matcher( docText ); if ( dateMatcher.matches() ) { final TimeMention docTime = new TimeMention( jcas );

Re: Help needed with document creation time/date

2016-07-13 Thread Abramowitsch, Peter
Thanks Sean. Great advice. I have a regexNER, but didn't go that route because it looked as if there was an inbuilt mechanism waiting to be activated. Say I know the time from some external source, is there a kosher way I can inject it into the CAS as a creation time property so that it can be re

RE: Help needed with document creation time/date

2016-07-13 Thread Finan, Sean
Hi Peter, Our group has used two different approaches, depending upon the note type: 1. Use a custom AE that creates creation time based upon a regex. This works well for notes that have a header or footer with a known format. 2. Use the last normalized temporal expression. For my test notes

Help needed with document creation time/date

2016-07-13 Thread Abramowitsch, Peter
Hello All How can I get Ctakes to deduce the document creation datetime from the text. I have a pipeline including the following engines Basic Token Processing FastUMLS Zoner ClearNLPDependencyParserAE PolarityCleartkAnalysisEngine UncertaintyCleartkAnalysisEngine HistoryCleartkAnalysisEngi