Hindi DateTime Parser

Extract the Date and Time related phrases from the sentence written in English Manner and Hindi Language (Hinglish) and tells the exact date and time correspondingly.

22
9
Python

Hindi-DateTime-Parser

platform
platform

Extract the Date and Time related phrases from the sentence written in English Manner and Hindi Language (Hinglish) and tells the exact date and time correspondingly. Built from scratch.

Few Examples

Usage

Running the code at terminal

  1. git clone https://github.com/Chirayu-sopho/Hindi-DateTime-Parser.git
  2. python main.py
  3. Give the text

Using in your own project

  1. In root directory, git clone https://github.com/Chirayu-sopho/Hindi-DateTime-Parser.git
  2. In python, import hdtp
  3. print (hdtp.HindiParser(“kal dopahar”))

    [print is no longer a statement in python 3]

New Features

In root directory, python

>>>import hdtp

>>>print (hdtp.GetEmails(“input text”))

{Gives list of emails in the input text}

>>>print (hdtp.GetIndianPhoneNumbers(“input text”))

{Gives list of phone numbers from the text written in Indian formats)

>>>print (hdtp.DiseaseFinder(“en”, “input text here”))

{Gives the disease and its definition from the database.txt corresponding to the input text}

NLP Features

>>>print (hdtp.GetSentences(“text”))
>>>print (hdtp.GetTokens(“text”))

Contribution

Contributions can make the implementation applicable for a wider range of data. You may contribute as follows:

  1. Implementing //TODOs in the comments in the files.
  2. Making issues for examples that are not working correctly.
  3. Making code better and effective.
  4. Implementation for more data and enlarging the test data.
  5. Any form of contribution would be highly appreciated.

Acknowledgements

Amit Manchanda for Guidance.

Google and Stackoverflow for solving issues.

Thanks

©MIT License

Feel free to contact me for anything related to the repository.
cite @Chirayu Asati