ParlAI | evaluating AI models on a variety | Machine Learning library

 by   facebookresearch Python Version: 1.7.1 License: MIT

kandi X-RAY | ParlAI Summary

kandi X-RAY | ParlAI Summary

ParlAI is a Python library typically used in Artificial Intelligence, Machine Learning applications. ParlAI has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has medium support. You can download it from GitHub.

ParlAI currently requires Python3.8+ and Pytorch 1.6 or higher. Dependencies of the core modules are listed in requirements.txt. Some models included (in parlai/agents) have additional requirements. We strongly recommend you install ParlAI in a venv or conda environment. We do not support Windows at this time, but many users report success on Windows using Python 3.8 and issues with Python 3.9. We are happy to accept patches that improve Windows support.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              ParlAI has a medium active ecosystem.
              It has 10103 star(s) with 2052 fork(s). There are 291 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 53 open issues and 1483 have been closed. On average issues are closed in 50 days. There are 4 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of ParlAI is 1.7.1

            kandi-Quality Quality

              ParlAI has 0 bugs and 0 code smells.

            kandi-Security Security

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

            kandi-License License

              ParlAI 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

              ParlAI releases are available to install and integrate.
              Build file is available. You can build the component from source.
              Installation instructions are not available. Examples and code snippets are available.
              ParlAI saves you 94378 person hours of effort in developing the same functionality from scratch.
              It has 101490 lines of code, 5680 functions and 1117 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed ParlAI and discovered the below as its top functions. This is intended to give you an instant insight into ParlAI implemented functionality, and help decide if they suit your requirements.
            • Setup the argument parser .
            • Adds command line options to the given parser .
            • Run the Parley action .
            • Argument specific to MTurk .
            • Generate context .
            • Convert model weight to a dictionary .
            • Setup Heroku client .
            • Evaluate wordstat .
            • Write dialog to file .
            • Fetch and concatenate results .
            Get all kandi verified functions for this library.

            ParlAI Key Features

            No Key Features are available at this moment for ParlAI.

            ParlAI Examples and Code Snippets

            copy iconCopy
            1. Clinc 150
            2. Banking 77
            3. SNIPS
            4. HWU64
            
            export OUTPUT_DIR="/home/data/dse_evaluate"
            
            # 1. Download raw data for snips and hwu64 (we direct acquire clinc150 and banking 77 from a package named "datasets")
            
            wget https://raw.githubusercontent.com/  
            ACCENTOR: Adding Chit-Chat to Enhance Task-Oriented Dialogues,Baseline Models
            Pythondot img2Lines of Code : 39dot img2License : Strong Copyleft (CC-BY-SA-4.0)
            copy iconCopy
            cp -r ./v1.0/accentor-sgd .
            
            python3 gen_delex.py
            
            python3 gen_parlai_data.py
            
            parlai train_model -t fromfile:parlaiformat --fromfile_datapath ./parlai --fromfile-datatype-extension true  -m transformer/generator --init-model zoo:tutorial_transformer  
            Multi-GPT2,How to run
            Pythondot img3Lines of Code : 37dot img3no licencesLicense : No License
            copy iconCopy
            python train.py \
            --train_datasets datasets/ConvAI2/dummy.txt \
            --valid_datasets datasets/ConvAI2/dummy.txt \
            --test_datasets datasets/ConvAI2/dummy.txt \
            --train_datasets_cache datasets/dummy_cache_gpt2 \
            --valid_datasets_cache datasets/dummy_cache_  

            Community Discussions

            QUESTION

            Why am I getting these tracebacks?
            Asked 2021-Feb-13 at 10:40

            I'm currently trying out ParlAi by following the quickstart from the documentation. I already installed ParlAi and currently on "View a task & train a model" but when I run the code parlai display_data --task babi:task10k:1, I got these tracebacks instead.

            ...

            ANSWER

            Answered 2021-Feb-13 at 10:40

            Yes, these tracebacks indicate errors. The kinds of errors here are pkg_resources.ContextualVersionConflict which is kind of confusing because they don't have Error in their name. For these traceback blocks the last line is the error, the second to last is the way the error was raised.

            pkg_resources.ContextualVersionConflict: (urllib3 1.25.8 (c:\users\dean\anaconda3\lib\site-packages), Requirement.parse('urllib3~=1.25.9'), {'parlai'})

            Shows that you urllib3 is at 1.25.8, but it needs to be between 1.25.9 and 1.26.

            pkg_resources.ContextualVersionConflict: (Sphinx 2.4.0 (c:\users\dean\anaconda3\lib\site-packages), Requirement.parse('Sphinx>=3.0'), {'sphinx-autodoc-typehints'})

            means that your sphinx is 2.4.0 but should be greater than or equal to 3.0.

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

            QUESTION

            ModuleNotFoundError: No module named 'mephisto.core'
            Asked 2021-Jan-31 at 00:21

            I'm using the latest version of Mephisto on macOS Catalina. I am trying to run ParlAI, and specifically the acute_eval task. According to the Instructions of both Mephisto and AcuteEVAL, I should be able to execute run.py and get the task running. However, I get this error as I run it, using this command:

            ...

            ANSWER

            Answered 2021-Jan-31 at 00:21

            The ParlAI installation instructions on github state that Python 3.7 or higher is required, however it appears that you are using Python 3.6. This is likely the cause of the issue, and the program should work if you upgrade your Python version.

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

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

            Vulnerabilities

            No vulnerabilities reported

            Install ParlAI

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

            Quick StartBasics: world, agents, teachers, action and observationsCreating a new dataset/taskList of available tasks/datasetsCreating a seq2seq agentList of available agentsModel zoo (list pretrained models)Running crowdsourcing tasksPlug into Facebook Messenger
            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/facebookresearch/ParlAI.git

          • CLI

            gh repo clone facebookresearch/ParlAI

          • sshUrl

            git@github.com:facebookresearch/ParlAI.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

            Reuse Pre-built Kits with ParlAI

            Consider Popular Machine Learning Libraries

            tensorflow

            by tensorflow

            youtube-dl

            by ytdl-org

            models

            by tensorflow

            pytorch

            by pytorch

            keras

            by keras-team

            Try Top Libraries by facebookresearch

            segment-anything

            by facebookresearchJupyter Notebook

            fairseq

            by facebookresearchPython

            Detectron

            by facebookresearchPython

            detectron2

            by facebookresearchPython

            fastText

            by facebookresearchHTML