spacy_grammar | Language Tool style grammar handling with spaCy | Natural Language Processing library

 by   tokestermw Python Version: Current License: GPL-3.0

kandi X-RAY | spacy_grammar Summary

kandi X-RAY | spacy_grammar Summary

spacy_grammar is a Python library typically used in Artificial Intelligence, Natural Language Processing, Bert applications. spacy_grammar has no bugs, it has no vulnerabilities, it has build file available, it has a Strong Copyleft License and it has low support. You can download it from GitHub.

This packages uses the spaCy 2.0 alpha which provide support for adding custom attributes to Doc, Span, and Token objects. It also leverages the Matcher API in spaCy to quickly match on spaCy tokens not dissimilar to regex. It reads a grammar.yml file to load up custom patterns and returns the results inside Doc, Span, and Token. It is extensible through adding rules to grammar.yml (though currently only the simple string matching is implemented). A lot of thanks to spacymoji and languagetool for inspiration.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              spacy_grammar has a low active ecosystem.
              It has 33 star(s) with 4 fork(s). There are 3 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 4 open issues and 1 have been closed. On average issues are closed in 9 days. There are 1 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of spacy_grammar is current.

            kandi-Quality Quality

              spacy_grammar has 0 bugs and 1 code smells.

            kandi-Security Security

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

            kandi-License License

              spacy_grammar is licensed under the GPL-3.0 License. This license is Strong Copyleft.
              Strong Copyleft licenses enforce sharing, and you can use them when creating open source projects.

            kandi-Reuse Reuse

              spacy_grammar releases are not available. You will need to build from source code and install.
              Build file is available. You can build the component from source.
              Installation instructions, examples and code snippets are available.
              spacy_grammar saves you 29 person hours of effort in developing the same functionality from scratch.
              It has 79 lines of code, 5 functions and 4 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed spacy_grammar and discovered the below as its top functions. This is intended to give you an instant insight into spacy_grammar implemented functionality, and help decide if they suit your requirements.
            • Parse the grammar file
            • Check pattern type
            • Load grammar file
            Get all kandi verified functions for this library.

            spacy_grammar Key Features

            No Key Features are available at this moment for spacy_grammar.

            spacy_grammar Examples and Code Snippets

            No Code Snippets are available at this moment for spacy_grammar.

            Community Discussions

            Trending Discussions on spacy_grammar

            QUESTION

            Model for measuring grammatical text quality
            Asked 2020-Oct-05 at 08:11

            I generate text via transformer models and I am looking for a way of measuring the grammatical text-quality. Like the text: "Today is a good day. I slept well and got up good in the morning." should be rated higher than: "Yesterday I went into bed and. got Breakfast son."

            Are there any models, which can do this job which I didnt find before, or is there any other way of measuring the quality of the grammatical output of the text?

            What I found out was, that spacy has the option to show whether a text has a grammatical error, but what I am more interested in is a score which included the length of the text and the amount of error it has. Also I looked into NLTK readability, but this aims at how well the text can be understood, which depends on more than the grammar only.

            Thank you!

            ...

            ANSWER

            Answered 2020-Oct-05 at 08:10

            So I found what I was looking for: In this paper the researchers tested different measures for their ability on checking grammar mistakes for text without references (what the GLEU-Score can be used for). They also tested the python-language-tool which is also used for spell checking in open-office. This tool is able to measure the amount of grammar mistakes in a text. For my purpose, I will just divide the amount of error through the amount of words in the text, which gives me an error metric.

            Maybe this helps someone, who has the same issue. Here the example code, based on pypi:

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

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

            Vulnerabilities

            No vulnerabilities reported

            Install spacy_grammar

            This package uses Python 3.6.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

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

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/tokestermw/spacy_grammar.git

          • CLI

            gh repo clone tokestermw/spacy_grammar

          • sshUrl

            git@github.com:tokestermw/spacy_grammar.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 tokestermw

            tensorflow-shakespeare

            by tokestermwPython

            spacy_hunspell

            by tokestermwPython

            text-gan-tensorflow

            by tokestermwPython

            spacy_kenlm

            by tokestermwPython

            uncertainty-deep-learning

            by tokestermwPython