Named Entity Recognition 25.3
Named Entity Recognition User and Programming Guide

# Simplified Grammar File Containing Patterns to Match Times of Day

NOTE: The following grammar file is a simplified version provided for example purposes, rather than actual source code.

    <entity name="time_24_hour" type="public">
       <pattern>[01][0-9]:[0-5][0-9]</pattern>
       <pattern>2[0-3]:[0-5][0-9]</pattern>
    </entity>

    <entity name="time_all" type="public">
       <pattern>(?A:time_24_hour)</pattern>
       <entry headword="Midnight"/>
       <entry headword="midnight"/>
       <pattern>([1-9]|10|11|12) ?[ap]\.?m\.?</pattern>
    </entity>

Copyright 2013-2025 Open Text
Version 25.3 | Last updated July 2025

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: Knowledge Discovery Named Entity Recognition 25.3

Topic Title: Simplified Grammar File Containing Patterns to Match Times of Day