date-extractor | Extract dates from text | Natural Language Processing library

 by   DanielJDufour Python Version: 5.1.5 License: Apache-2.0

kandi X-RAY | date-extractor Summary

kandi X-RAY | date-extractor Summary

date-extractor is a Python library typically used in Artificial Intelligence, Natural Language Processing applications. date-extractor has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has low support. You can install using 'pip install date-extractor' or download it from GitHub, PyPI.

Extract dates from text
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              date-extractor has a low active ecosystem.
              It has 42 star(s) with 11 fork(s). There are 4 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 13 open issues and 6 have been closed. On average issues are closed in 245 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of date-extractor is 5.1.5

            kandi-Quality Quality

              date-extractor has 0 bugs and 0 code smells.

            kandi-Security Security

              date-extractor has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              date-extractor code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              date-extractor is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              date-extractor releases are not available. You will need to build from source code and install.
              Deployable package is available in PyPI.
              Build file is available. You can build the component from source.
              Installation instructions are not available. Examples and code snippets are available.
              date-extractor saves you 276 person hours of effort in developing the same functionality from scratch.
              It has 667 lines of code, 31 functions and 6 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed date-extractor and discovered the below as its top functions. This is intended to give you an instant insight into date-extractor implemented functionality, and help decide if they suit your requirements.
            • Gets the first date from a string
            • Create a datetime from a dictionary
            • Normalize a year
            • Convert a string to a number
            • Generate the globals
            Get all kandi verified functions for this library.

            date-extractor Key Features

            No Key Features are available at this moment for date-extractor.

            date-extractor Examples and Code Snippets

            Use
            Pythondot img1Lines of Code : 9dot img1License : Permissive (Apache-2.0)
            copy iconCopy
            from date_extractor import extract_dates
            
            text = "I arrived in that city on January 4, 1937"
            dates = extract_dates(text)
            # [datetime.datetime(1937, 1, 4, 0, 0, tzinfo=)]
            
            from date_extractor import extract_date
            
            date = extract_date("2018-06-07 16:31:  
            Returning Precision
            Pythondot img2Lines of Code : 5dot img2License : Permissive (Apache-2.0)
            copy iconCopy
            from date_extractor import extract_date
            
            text = "I arrived in that city in 1937"
            date, precision = extract_date(text, return_precision=True)
            # precision = 'year'
              
            Installation
            Pythondot img3Lines of Code : 1dot img3License : Permissive (Apache-2.0)
            copy iconCopy
            pip3 install date-extractor
              

            Community Discussions

            QUESTION

            How to remove date chunk from bigger string without regex?
            Asked 2020-Feb-02 at 18:33

            NOTE - This question might seem similar to this or this or this, but none of them exactly solved my problem.

            I want to remove the probable date strings from a string of bigger length containing this date string in between. Like if the input string is "13th June 2020 is the day to remember" the output will be "is the day to remember". Now I've already tried these three modules:

            1. parseddatetime
            2. date-extractor
            3. datefinder

            Like this:

            ...

            ANSWER

            Answered 2020-Feb-02 at 18:33

            I found out a new package named python-sutime [a python wrapper for Stanford NLP's sutime java libraries]. It helps me remove the particular date chunks from strings. It works even if there are multiple dates in single string.

            The disadvantage of using this package is additional installation of the java jdk dependencies required. But nevertheless this is kinda perfect for getting the thing done.

            Here is the usage example I used :

            Source https://stackoverflow.com/questions/59590044

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install date-extractor

            You can install using 'pip install date-extractor' or download it from GitHub, PyPI.
            You can use date-extractor like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.

            Support

            Contact Daniel Dufour at daniel.j.dufour@gmail.com.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
          • PyPI

            pip install date-extractor

          • CLONE
          • HTTPS

            https://github.com/DanielJDufour/date-extractor.git

          • CLI

            gh repo clone DanielJDufour/date-extractor

          • sshUrl

            git@github.com:DanielJDufour/date-extractor.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Consider Popular Natural Language Processing Libraries

            transformers

            by huggingface

            funNLP

            by fighting41love

            bert

            by google-research

            jieba

            by fxsjy

            Python

            by geekcomputers

            Try Top Libraries by DanielJDufour

            geowarp

            by DanielJDufourJavaScript

            djenv

            by DanielJDufourPython

            language-detector

            by DanielJDufourPython

            geo-extent

            by DanielJDufourJavaScript

            location-extractor

            by DanielJDufourPython