DeepNLPF

DeepNLPF

  • ABOUT
  • GUIDE
  • REPOSITORY
  • SUPPORT

โ€บUser Guide

Install

  • Installation

User Guide

  • How to begin?
  • CLI Commands
  • API RESTful
  • DashBoard
  • Notifications
  • Benchmarking
  • Deploy

Others

  • JupyterLab

CLI Commands

๐Ÿšง Under construction!

DeepNLPF Command Line Interface.

Help

Shell
Output
deepnlpf -h
usage: deepnlpf [-h] [-v] [-install INSTALL] [-uninstall UNINSTALL] [-listplugins LISTPLUGINS] [-api API]

DeepNLPF Command Line Interface - CLI

optional arguments:
-h, --help show this help message and exit
-v, --version show version.
-install INSTALL, --install INSTALL
Command for install plugin.
-uninstall UNINSTALL, --uninstall UNINSTALL
Command for uninstall plugin.
-listplugins LISTPLUGINS, --listplugins LISTPLUGINS
Command for listplugins plugin.
-api API, --api API Command run api.

๐Ÿ™ Enjoy the program! :)

Version

Shell
Output
deepnlpf -v
๐Ÿ™ DeepNLPF V x.x.x

Create project

Shell
Output
deepnlpf --new [project_name] [json|yaml|ini|xml]
project_name
โ”œโ”€โ”€ pipeline.py
โ”œโ”€โ”€ custom_pipeline.json
โ””โ”€โ”€ README.md

Plugins

List all plugins published

Shell
Output
deepnlpf --plugins published
cogcomp
stanfordcorenlp
spacy
semafor
supwsd
stanza

Install one plugin

Shell
Output
deepnlpf --install [plugin_name]
stanfordcorenlp
stanza

List all plugins instaled

Shell
Output
deepnlpf --plugins installed
stanfordcorenlp
stanza

Create new plugin

Shell
Output
deepnlpf --new plugin [name_plugin]
/home/user_name/deepnlpf_data/name_plugin/
resources/
README.md
manifest.json
requeriments.sh
plugin_name.py

Dataset

Save new dataset

To save a dataset, it must be organized in one of the two directory structures shown below.

Simple structure

/home/your_user/path_dataset/
                    document_1.txt
                    document_2.txt
                    ..

or Complete Structure

/home/your_user/path_dataset/
                    train/
                        pos/
                            document_01.txt
                            document_02.txt
                            ..
                        neg/
                            document_01.txt
                            document_02.txt
                            ..
                    test/
                        pos/
                            document_01.txt
                            document_02.txt
                            ..
                        neg/
                            document_01.txt
                            document_02.txt
                            ..

Sentences must be saved in the TXT file, one per line. For the doc: document_1.txt You have the following sentences one after another.

1 A misty ridge uprises from the surge.
2 The author of a keygen uses a disassembler to look at the raw assembly code.
3 The child was carefully wrapped and bound into the cradle by means of a cord.
4 The system as described above has its greatest application in an arrayed configuration of antenna elements.
5 The student association is the vpath_oice of the undergraduate student population of the State University of New York at Buffalo.

You must use the command: deepnlpf --savedataset [path_dir_dataset] by passing the path of your dataset directory as an argument, as per the example below.

Shell
Output
deepnlpf --savedataset /home/your_user/path_dataset/dataset_name
    dataset: dataset_name
โ”œโ”€โ”€ train:
โ”‚ โ””โ”€โ”€ documents [pos]: 100%|โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 12500/12500 [00:50<00:00, 245.24it/s]
โ”‚ โ””โ”€โ”€ documents [neg]: 100%|โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 12500/12500 [00:51<00:00, 241.78it/s]
โ”œโ”€โ”€ test:
โ”‚ โ””โ”€โ”€ documents [pos]: 100%|โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 12500/12500 [00:59<00:00, 211.20it/s]
โ”‚ โ””โ”€โ”€ documents [neg]: 100%|โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 12500/12500 [01:01<00:00, 202.22it/s]
โ””โ”€โ”€ _id_dataset: 5d8f5e3825fc15b3ec6f43a6

List all datasets

Lists all dataset saved in the database.

Shell
Output
deepnlpf --listdataset all
    โ”œโ”€โ”€ Dataset: dataset_name
โ”‚ ID: 5d8f55f4b3b87b4d30ee0445
โ”‚ Register: 2019-09-28 09:45:40.725000

โ”œโ”€โ”€ Dataset: dataset_name
โ”‚ id_dataset: 5d8f576dd54e23a38cb3e819
โ”‚ register: 2019-09-28 09:51:57.850000

Delete one dataset

Used the command deepnlpf --deletedataset [_id_dataset] for delete a specific dataset.

Shell
deepnlpf --deletedataset 5d8f576dd54e23a38cb3e819 

Pipeline

Run pipeline

Used the command deepnlpf --pipeline [custom_pipeline.json] for execute pipeline custom analises languagem.

Shell
deepnlpf --pipeline custom_pipeline.json

After running a custom analysis pipeline, all results are saved to the database.

View result analysis

Used the command deepnlf viewannotation [_id_dataset] for view annotation processing the dataset.

Shell
deepnlf --viewannotation 5d8ed3b6495308534096e879

Generated Annotation

Shell
deepnlf --generatedannotation [_id_pool_datset]

View annotation

Shell
deepnlpf --viewannotation [_id_pool_dataset]

Statistics

Shell
Output
deepnlpf --statistics [dataset_name|dataset_id]

API

Start API

Shell
Output
deepnlpf --start api

Stop API

Shell
Output
Ctrl + c

DashBoard

Start DashBoard

Shell
Output
deepnlpf --dashboard api

Stop DashBoard

Shell
Output
Ctrl + c
โ† How to begin?API RESTful โ†’
  • Help
  • Version
  • Create project
  • Plugins
    • List all plugins published
    • Install one plugin
    • List all plugins instaled
    • Create new plugin
  • Dataset
    • Save new dataset
    • List all datasets
    • Delete one dataset
  • Pipeline
    • Run pipeline
    • View result analysis
    • Generated Annotation
    • View annotation
  • Statistics
  • API
    • Start API
    • Stop API
  • DashBoard
    • Start DashBoard
    • Stop DashBoard
DeepNLPF
DeepNLPF
AboutGuideRepositorySupport
Community
User Showcase
Connect
BlogGitHubStardeepnlpf@gmail.com
Copyright ยฉ 2022 DeepNLPF.