Skip to main content

AutoChatBot

Authors-

  • Kritik Seth

For documentation- either scroll down or click here

clean

def make_train_dataset(lines, conv_lines):

takes input of lines and conversations, returns a list of questions and answers

:type lines: string
:param lines: path were text file of lines is present

:type conv_lines: string
:param conv_lines: path were text file of conversations is present

def clean_train_dataset(text):

takes input list of questiond or answers, returns clean list of strings

:type text: text
:param text: list of strings

def make_count_dict(q, a):

makes a dictionary of words

:type q: list
:param q: list of questions

:type a: list
:param a: list of answers

def count_rare_words(cd, mincount):

counts the number of rare words

:type cd: dictionary
:param cd: count dictionary {word:key}

:type mincount: int
:param mincount: minimum length of a question

def make_word_dict(cd, mincount, tokens={'':0, '':1, '':2, '':3}):

makes dictionary, returns mapping of word to key and key to word

:type cd: dictionary
:param cd: count dictionary {word:key}

:type mincount: int
:param mincount: min frequency of word such that it makes it into the word_dict

:type tokens: dictionary
:param tokens: default - {'<PAD>':0, '<SOS>':1, '<EOS>':2, '<UNK>':3}

def add_word_tags(q, a, wd):

takes input of {word:key} and adds tags to those words

:type q: list
:param q: list of questions

:type a: list
:param a: list of answers

:type wd: dict
:param wd: mapping of word to key

def make_line_id(q, a, wd):

takes input list of questions or answers and word_dict and returns text converted to id

:type q: list
:param q: list of questions

:type a: list
:param a: list of answers

:type wd: dict
:param wd: mapping of word to key

def sort_line_pad(q, a, max_line_length):

sorts questions and answers based on their length, returns sorted list of question or answer

:type q: list
:param q: list of questions

:type a: list
:param a: list of answers

:type max_line_length: int
:param max_line_length: maximum length of question or answer

chat

def make_test_chatbot(dir_path, files_list, ntest):

takes input of direcotory of file, list, and number of test cases

:type lines: string
:param lines: path were text file of lines is present

:type conv_lines: string
:param conv_lines: path were text file of lines is present

:type conv_lines: string
:param conv_lines: base path were text file of lines is present

Metadata

Release files for AutoChatbot 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for AutoChatbot 0.1.1
File Size Uploaded Provenance Actions
AutoChatbot-0.1.1.tar.gz 5.8 kB Without provenance Details for AutoChatbot-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for AutoChatbot 0.1.1
File Interpreter ABI Platform Actions
AutoChatbot-0.1.1-py3-none-any.whl Python 3 none any Details for AutoChatbot-0.1.1-py3-none-any.whl

Total release size: 12.7 kB

Release files / AutoChatbot-0.1.1.tar.gz

Download URL AutoChatbot-0.1.1.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
2550dea7fd765ff77a7d23103aa553054e5133f9bf727a1def4d16eb1d86cfb4
BLAKE2b-256 checksum
How to use checksums
9e831290269c3bf36ee20bd8db66d938e338e6088fdfdc144c7056b10205622a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0

Release files / AutoChatbot-0.1.1-py3-none-any.whl

Download URL AutoChatbot-0.1.1-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2ffc8f7e5c9ad498a01b9d4d033a87b15d7b70e4fbca61ad41f01808fef73d75
BLAKE2b-256 checksum
How to use checksums
91829e0a8f51e922a5189ce8a2b1bf9b57e1ab171dc88b512da391d8992daf3a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0

Security for AutoChatbot 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page