Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
bagustris committed Apr 18, 2024
1 parent c592bd9 commit fa30dbe
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 8 deletions.
5 changes: 5 additions & 0 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ The examples only covers some important features of Nkululeko. For more details,
nkululeko.utils.rst


.. automodule:: nkululeko
:members:
:undoc-members:
:show-inheritance:

Indices and tables
==================

Expand Down
16 changes: 8 additions & 8 deletions nkululeko/demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
This script is used to test the loading of a previously trained model and run it in demo mode.
It requires the project config file to be run before.
Usage:
python -m nkululeko.demo [--config CONFIG] [--file FILE] [--list LIST] [--folder FOLDER] [--outfile OUTFILE]
Usage:
python -m nkululeko.demo [--config CONFIG] [--file FILE] [--list LIST] [--folder FOLDER] [--outfile OUTFILE]
Options:
--config CONFIG The base configuration file (default: exp.ini)
--file FILE A file that should be processed (16kHz mono wav)
--list LIST A file with a list of files, one per line, that should be processed (16kHz mono wav)
--folder FOLDER A name of a folder where the files within the list are in (default: ./)
--outfile OUTFILE A filename to store the results in CSV
Options: \n
--config CONFIG The base configuration file (default: exp.ini) \n
--file FILE A file that should be processed (16kHz mono wav) \n
--list LIST A file with a list of files, one per line, that should be processed (16kHz mono wav) \n
--folder FOLDER A name of a folder where the files within the list are in (default: ./) \n
--outfile OUTFILE A filename to store the results in CSV (default: None)
"""
import argparse
import configparser
Expand Down
13 changes: 13 additions & 0 deletions nkululeko/predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@
# use some model and add automatically predicted labels to train and test splits
# then save as a new dataset

"""This script is used to call the nkululeko PREDICT framework.
It loads a configuration file, creates a new experiment,
and performs automatic prediction on the train and test datasets. The predicted labels are added to the datasets and
saved as a new dataset.
Usage: \n
python3 -m nkululeko.predict [--config CONFIG_FILE] \n
Arguments: \n
--config (str): The path to the base configuration file (default: exp.ini)
"""

import argparse
import configparser
import os
Expand Down

0 comments on commit fa30dbe

Please sign in to comment.