Skip to content

afranck64/chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Text Analysis

Run a text analysis using word sentiment scores and a markov-chain

Requirements

Usage

Training

python main.py train

Run a sentence analysis

python main.py analyse "Is this program really working?"

# Sentence: «Is this program really working?»
# Analysis: {'is_assert': 0, 'is_negative': 0, 'is_neutral': 1, 'is_positive': 0, 'is_question': 1, 'is_request': 1, 'object': '', 'object_is_human': 0, 'subject': 'this', 'subject_is_human': 0, 'verb': 'Is'}

Start the program: python main.py "this is the sentence."

Author(s)

Releases

No releases published

Packages

No packages published

Languages