ProphetNet | A research project for natural language generation, containing the official implementations by MSRA | Natural Language Processing library

 by   microsoft Python Version: Current License: MIT

kandi X-RAY | ProphetNet Summary

kandi X-RAY | ProphetNet Summary

ProphetNet is a Python library typically used in Artificial Intelligence, Natural Language Processing, Deep Learning, Pytorch, Bert applications. ProphetNet has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. However ProphetNet build file is not available. You can download it from GitHub.

This repo provides the code for reproducing the experiments in ProphetNet. In the paper, we propose a new pre-trained language model called ProphetNet for sequence-to-sequence learning with a novel self-supervised objective called future n-gram prediction. We have released the ProphetNet baselines for GLGE benchmark (A New General Language Generation Evaluation Benchmark) in here. Have a try! :). We provide ProphetNet-X family models for Chinses(ProphetNet-Zh), Multi-lingual(ProphetNet-Multi), English open domain dialog(ProphetNet-Dialog), Chinese open domain dialog(ProphetNet-Dialog-Zh), code generation(ProphetNet-Code). The details are described in ProphetNet-X paper. This repo is still developing, feel free to report bugs and we will fix them ~.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

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

            kandi-Quality Quality

              ProphetNet has 0 bugs and 0 code smells.

            kandi-Security Security

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

            kandi-License License

              ProphetNet is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              ProphetNet releases are not available. You will need to build from source code and install.
              ProphetNet has no build file. You will be need to create the build yourself to build the component from source.
              Installation instructions are not available. Examples and code snippets are available.
              ProphetNet saves you 2982 person hours of effort in developing the same functionality from scratch.
              It has 11433 lines of code, 687 functions and 83 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed ProphetNet and discovered the below as its top functions. This is intended to give you an instant insight into ProphetNet implemented functionality, and help decide if they suit your requirements.
            • Forward a query
            • Set input buffer
            • Linear interpolation
            • Get input buffer
            • Evaluate a QGE file
            • Replace double quotes in text
            • Compute and return a list of scores
            • Convert a dstc7av file to Dataset
            • Convert a daily text file to a single file
            • Fix the input text
            • Check if a string is a digit
            • Process eval_fn
            • Test for ROUGE
            • Convert a daily dialog
            • Convert reddit txt to fout
            • Forward computation
            • Given a list of sequences return the distinct distances between them
            • Compute the score for the given images
            • Converts a pretrained Reddit
            • Compute the prediction
            • Checks all files in the given path
            • Compute the prediction map for the given predictions
            • Evaluate a single dataset
            • Convert tweets to finetune
            • Compute the cider score
            • Calculate the average score
            • Test ROUGE
            • Calculate the BLEU score
            Get all kandi verified functions for this library.

            ProphetNet Key Features

            No Key Features are available at this moment for ProphetNet.

            ProphetNet Examples and Code Snippets

            No Code Snippets are available at this moment for ProphetNet.

            Community Discussions

            QUESTION

            ValueError: Unrecognized model in ./MRPC/. Should have a `model_type` key in its config.json, or contain one of the following strings in its name
            Asked 2022-Jan-13 at 14:10

            Goal: Amend this Notebook to work with Albert and Distilbert models

            Kernel: conda_pytorch_p36. I did Restart & Run All, and refreshed file view in working directory.

            Error occurs in Section 1.2, only for these 2 new models.

            For filenames etc., I've created a variable used everywhere:

            ...

            ANSWER

            Answered 2022-Jan-13 at 14:10
            Explanation:

            When instantiating AutoModel, you must specify a model_type parameter in ./MRPC/config.json file (downloaded during Notebook runtime).

            List of model_types can be found here.

            Solution:

            Code that appends model_type to config.json, in the same format:

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

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

            Vulnerabilities

            No vulnerabilities reported

            Install ProphetNet

            You can download it from GitHub.
            You can use ProphetNet 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

            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/microsoft/ProphetNet.git

          • CLI

            gh repo clone microsoft/ProphetNet

          • sshUrl

            git@github.com:microsoft/ProphetNet.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 microsoft

            vscode

            by microsoftTypeScript

            PowerToys

            by microsoftC#

            TypeScript

            by microsoftTypeScript

            terminal

            by microsoftC++

            Web-Dev-For-Beginners

            by microsoftJavaScript