<gh_stars>0
import predict
import imdb
import deceptive_train
import sentimental_train
from os import system, name


def clear():
    if name == 'nt':
        _ = system('cls')
    else:
        _ = system('clear')


while (1):
    clear()
    print('----------------')
    print('Reviews Classification AI')
    print('----------------')
    try:
        choice = int(input('1. Train\n2. Predict\n3. Search\n4. Exit\nYour choice: '))
    except ValueError:
        choice = -1

    if (choice == 1):
        deceptive_train.main()
        sentimental_train.main()
        pass
    elif(choice == 2):
        predict.main([])
        pass
    elif(choice == 3):
        imdb.main()
        pass
    elif(choice == 4):
        break
    else:
        print('Invalid Input.')
        input('Press Enter to continue...')

import predict
import imdb
import deceptive_train
import sentimental_train
from os import system, name


def clear():
    if name == 'nt':
        _ = system('cls')
    else:
        _ = system('clear')


while (1):
    clear()
    print('----------------')
    print('Reviews Classification AI')
    print('----------------')
    try:
        choice = int(input('1. Train\n2. Predict\n3. Search\n4. Exit\nYour choice: '))
    except ValueError:
        choice = -1

    if (choice == 1):
        deceptive_train.main()
        sentimental_train.main()
        pass
    elif(choice == 2):
        predict.main([])
        pass
    elif(choice == 3):
        imdb.main()
        pass
    elif(choice == 4):
        break
    else:
        print('Invalid Input.')
        input('Press Enter to continue...')