Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

Outline

Visit our documentation page.

How to properly write documentation:

Packages

In any package directory, overall package comments can be made in the __init__.py of the directory. At the top of the __init__.py, include your comments in between triple quotations.

Classes

In any class file, include overall class comments at the top of the file in between triple quotes and/or in the init function.

Functions

reStructuredText Docstring Format is the standard. Here is an example:

def format_data(self, predictions, verbose=False):
    """
    Formats word level labeling of the Unstructured Data Labeler as you want

    :param predictions: A 2D list of word level predictions/labeling
    :type predictions: Dict
    :param verbose: A flag to determine verbosity
    :type verbose: Bool
    :return: JSON structure containing specified formatted output
    :rtype: JSON

    :Example:
        Look at this test. Don't forget the double colons to make a code block::
            This is a codeblock
            Type example code here
    """

How to update the documentation:

  1. Set up your local environment
# install sphinx requirements
# install the requirements from the feature branch
pip install pandoc &&
pip install -r requirements.txt &&
pip install -r requirements-ml.txt && 
pip install -r requirements-reports.txt && 
pip install -r requirements-docs.txt  &&
pip install -e . 
  1. And finally, from the root of DataProfiler, run the following commands to generate the sphinx documentation:
cd _docs/docs
python update_documentation.py
  1. View new docs
open index.html
Morty Proxy This is a proxified and sanitized view of the page, visit original site.