Giter Site home page Giter Site logo

katanl-automationtest's Introduction

Kata NL Automation Test

This program is made for automate Kata NL Testing. You can test the NL by preparing a .txt file format that includes sentences and the label that the NL should recognize. The output of the test will be an excel file with an important information about the result.

Getting Started

These instructions will get you a copy of the project up and running on your local machine.

Prerequisites

Things you need to install:

Installing

A step by step series of examples that tell you how to get the program running

  1. Clone this project (You know how to clone right?)

  2. Once you already installed python, run: pip install -r requirements.txt

  3. After all the packages required in the requirements.txt already installed. Open predict.py

Running the tests

In predict.py , you'll find the following variables:

TXT_INPUT_FILENAME = "datatraining"
EXCEL_OUTPUT_FILENAME = "Test Result After Training"
EXCEL_WORKSHEET_NAME = "Test Result"
BASE_DIR = 'F:\\Some\\Path'
NL_ID = "YOUR-NL-ID"
NL_TOKEN = "YOUR-NL-TOKEN"
THRESHOLD = 0.5
API_ENDPOINT = "https://geist.kata.ai/nlus/" + NL_ID + "/predict"

Usage

You can utilize those variable based on their function:

TXT_INPUT_FILENAME : file name with .txt extension for input

EXCEL_OUTPUT_FILENAME : file name for the excel output

EXCEL_WORKSHEET_NAME : worksheet name for the excel output

BASE_DIR : the base directory for TXT_INPUT_FILENAME

NL_ID : kata NL ID

NL_TOKEN : kata NL Token

THRESHOLD : minimum threshold for a sentence to passed the test

API_ENDPOINT : kata prediction API Endpoint

If all looks good, you can run predict.py and wait for the test result.

Contributing

Is something missing/incorrect? Please let me know by contacting [email protected]. If you know how to fix it straight away, don’t hesitate to create a pull request on this GitHub repository.

katanl-automationtest's People

Contributors

arozak25 avatar dependabot[bot] avatar

Stargazers

Bruno Henrique avatar restu suhendar avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.