SYMBOL INDEX (1619 symbols across 117 files) FILE: chatterbot/__main__.py function get_chatterbot_version (line 10) | def get_chatterbot_version(): FILE: chatterbot/adapters.py class Adapter (line 1) | class Adapter(object): method __init__ (line 8) | def __init__(self, chatbot, **kwargs): class AdapterMethodNotImplementedError (line 11) | class AdapterMethodNotImplementedError(NotImplementedError): method __init__ (line 18) | def __init__(self, message='This method must be overridden in a subc... class InvalidAdapterTypeException (line 24) | class InvalidAdapterTypeException(Exception): FILE: chatterbot/chatterbot.py class ChatBot (line 14) | class ChatBot(object): method __init__ (line 55) | def __init__(self, name, stream=False, **kwargs): method get_response (line 162) | def get_response(self, statement: Union[Statement, str, dict] = None, ... method generate_response (line 271) | def generate_response(self, input_statement, additional_response_selec... method learn_response (line 348) | def learn_response(self, statement, previous_statement=None): method get_latest_response (line 378) | def get_latest_response(self, conversation: str): class ChatBotException (line 393) | class ChatBotException(Exception): FILE: chatterbot/comparisons.py class Comparator (line 10) | class Comparator: method __init__ (line 15) | def __init__(self, language): method __call__ (line 19) | def __call__(self, statement_a, statement_b): method compare_text (line 22) | def compare_text(self, text_a: str, text_b: str) -> float: method compare (line 30) | def compare(self, statement_a, statement_b) -> float: class LevenshteinDistance (line 37) | class LevenshteinDistance(Comparator): method compare_text (line 47) | def compare_text(self, text_a: str, text_b: str) -> float: class SpacySimilarity (line 74) | class SpacySimilarity(Comparator): method __init__ (line 100) | def __init__(self, language): method compare_text (line 108) | def compare_text(self, text_a: str, text_b: str) -> float: class JaccardSimilarity (line 125) | class JaccardSimilarity(Comparator): method __init__ (line 151) | def __init__(self, language): method compare_text (line 159) | def compare_text(self, text_a: str, text_b: str) -> float: FILE: chatterbot/components.py function chatterbot_bigram_indexer (line 14) | def chatterbot_bigram_indexer(document): function chatterbot_lowercase_indexer (line 59) | def chatterbot_lowercase_indexer(document): FILE: chatterbot/conversation.py class StatementMixin (line 5) | class StatementMixin(object): method get_statement_field_names (line 25) | def get_statement_field_names(self) -> list[str]: method get_tags (line 31) | def get_tags(self) -> list[str]: method add_tags (line 37) | def add_tags(self, *tags): method serialize (line 43) | def serialize(self) -> dict: class Statement (line 62) | class Statement(StatementMixin): method __init__ (line 82) | def __init__(self, text: str, in_response_to=None, **kwargs): method __str__ (line 108) | def __str__(self): method __repr__ (line 111) | def __repr__(self): method save (line 114) | def save(self): FILE: chatterbot/corpus.py function get_file_path (line 21) | def get_file_path(dotted_path, extension='json') -> str: function read_corpus (line 44) | def read_corpus(file_name) -> dict: function list_corpus_files (line 62) | def list_corpus_files(dotted_path) -> list[str]: function load_corpus (line 78) | def load_corpus(*data_file_paths): FILE: chatterbot/exceptions.py class OptionalDependencyImportError (line 1) | class OptionalDependencyImportError(ImportError): FILE: chatterbot/ext/django_chatterbot/abstract_models.py class AbstractBaseTag (line 17) | class AbstractBaseTag(models.Model): class Meta (line 29) | class Meta: method __str__ (line 32) | def __str__(self): class AbstractBaseStatement (line 36) | class AbstractBaseStatement(models.Model, StatementMixin): class Meta (line 93) | class Meta: method __str__ (line 105) | def __str__(self): method get_tag_model (line 113) | def get_tag_model(cls): method get_tags (line 145) | def get_tags(self) -> list[str]: method add_tags (line 151) | def add_tags(self, *tags): FILE: chatterbot/ext/django_chatterbot/apps.py class DjangoChatterBotConfig (line 4) | class DjangoChatterBotConfig(AppConfig): method ready (line 10) | def ready(self): FILE: chatterbot/ext/django_chatterbot/migrations/0001_initial.py class Migration (line 5) | class Migration(migrations.Migration): FILE: chatterbot/ext/django_chatterbot/migrations/0002_statement_extra_data.py class Migration (line 5) | class Migration(migrations.Migration): FILE: chatterbot/ext/django_chatterbot/migrations/0003_change_occurrence_default.py class Migration (line 5) | class Migration(migrations.Migration): FILE: chatterbot/ext/django_chatterbot/migrations/0004_rename_in_response_to.py class Migration (line 6) | class Migration(migrations.Migration): FILE: chatterbot/ext/django_chatterbot/migrations/0005_statement_created_at.py class Migration (line 6) | class Migration(migrations.Migration): FILE: chatterbot/ext/django_chatterbot/migrations/0006_create_conversation.py class Migration (line 7) | class Migration(migrations.Migration): FILE: chatterbot/ext/django_chatterbot/migrations/0007_response_created_at.py class Migration (line 6) | class Migration(migrations.Migration): FILE: chatterbot/ext/django_chatterbot/migrations/0008_update_conversations.py class Migration (line 5) | class Migration(migrations.Migration): FILE: chatterbot/ext/django_chatterbot/migrations/0009_tags.py class Migration (line 5) | class Migration(migrations.Migration): FILE: chatterbot/ext/django_chatterbot/migrations/0010_statement_text.py class Migration (line 5) | class Migration(migrations.Migration): FILE: chatterbot/ext/django_chatterbot/migrations/0011_blank_extra_data.py class Migration (line 5) | class Migration(migrations.Migration): FILE: chatterbot/ext/django_chatterbot/migrations/0012_statement_created_at.py class Migration (line 5) | class Migration(migrations.Migration): FILE: chatterbot/ext/django_chatterbot/migrations/0013_change_conversations.py class Migration (line 5) | class Migration(migrations.Migration): FILE: chatterbot/ext/django_chatterbot/migrations/0014_remove_statement_extra_data.py class Migration (line 4) | class Migration(migrations.Migration): FILE: chatterbot/ext/django_chatterbot/migrations/0015_statement_persona.py class Migration (line 4) | class Migration(migrations.Migration): FILE: chatterbot/ext/django_chatterbot/migrations/0016_statement_stemmed_text.py class Migration (line 4) | class Migration(migrations.Migration): FILE: chatterbot/ext/django_chatterbot/migrations/0017_tags_unique.py class Migration (line 4) | class Migration(migrations.Migration): FILE: chatterbot/ext/django_chatterbot/migrations/0018_text_max_length.py class Migration (line 4) | class Migration(migrations.Migration): FILE: chatterbot/ext/django_chatterbot/migrations/0019_alter_statement_id_alter_tag_id_and_more.py class Migration (line 6) | class Migration(migrations.Migration): FILE: chatterbot/ext/django_chatterbot/migrations/0020_alter_statement_conversation_and_more.py class Migration (line 6) | class Migration(migrations.Migration): FILE: chatterbot/ext/django_chatterbot/migrations/0021_increase_text_max_length_to_1100.py class Migration (line 16) | class Migration(migrations.Migration): FILE: chatterbot/ext/django_chatterbot/model_admin.py class StatementAdmin (line 4) | class StatementAdmin(admin.ModelAdmin): class TagAdmin (line 10) | class TagAdmin(admin.ModelAdmin): FILE: chatterbot/ext/django_chatterbot/models.py class Statement (line 4) | class Statement(AbstractBaseStatement): class Meta (line 13) | class Meta: class Tag (line 17) | class Tag(AbstractBaseTag): class Meta (line 25) | class Meta: FILE: chatterbot/ext/sqlalchemy_app/models.py class ModelBase (line 10) | class ModelBase(object): method __tablename__ (line 16) | def __tablename__(cls) -> str: class Tag (line 40) | class Tag(Base): class Statement (line 51) | class Statement(Base, StatementMixin): method get_tags (line 102) | def get_tags(self) -> list[str]: method add_tags (line 108) | def add_tags(self, *tags): FILE: chatterbot/filters.py function get_recent_repeated_responses (line 1) | def get_recent_repeated_responses(chatbot, conversation, sample=10, thre... FILE: chatterbot/languages.py class AAR (line 5) | class AAR: class ABK (line 11) | class ABK: class ACE (line 17) | class ACE: class ACH (line 23) | class ACH: class ADA (line 29) | class ADA: class ADY (line 35) | class ADY: class AFH (line 41) | class AFH: class AFR (line 47) | class AFR: class AIN (line 53) | class AIN: class AKA (line 59) | class AKA: class AKK (line 65) | class AKK: class ALB (line 71) | class ALB: class ALE (line 77) | class ALE: class ALT (line 83) | class ALT: class AMH (line 89) | class AMH: class ANP (line 95) | class ANP: class ARA (line 101) | class ARA: class ARG (line 107) | class ARG: class ARM (line 113) | class ARM: class ARN (line 119) | class ARN: class ARP (line 125) | class ARP: class ARW (line 131) | class ARW: class ASM (line 137) | class ASM: class AST (line 143) | class AST: class AVA (line 149) | class AVA: class AVE (line 155) | class AVE: class AWA (line 161) | class AWA: class AYM (line 167) | class AYM: class AZE (line 173) | class AZE: class BAK (line 179) | class BAK: class BAL (line 185) | class BAL: class BAM (line 191) | class BAM: class BAN (line 197) | class BAN: class BAQ (line 203) | class BAQ: class BAS (line 209) | class BAS: class BEJ (line 215) | class BEJ: class BEL (line 221) | class BEL: class BEM (line 227) | class BEM: class BEN (line 233) | class BEN: class BHO (line 239) | class BHO: class BIK (line 245) | class BIK: class BIN (line 251) | class BIN: class BIS (line 257) | class BIS: class BLA (line 263) | class BLA: class BOS (line 269) | class BOS: class BRA (line 275) | class BRA: class BRE (line 281) | class BRE: class BUA (line 287) | class BUA: class BUG (line 293) | class BUG: class BUL (line 299) | class BUL: class BUR (line 305) | class BUR: class BYN (line 311) | class BYN: class CAD (line 317) | class CAD: class CAR (line 323) | class CAR: class CAT (line 329) | class CAT: class CEB (line 335) | class CEB: class CHA (line 341) | class CHA: class CHB (line 347) | class CHB: class CHE (line 353) | class CHE: class CHG (line 359) | class CHG: class CHI (line 365) | class CHI: class CHK (line 371) | class CHK: class CHM (line 377) | class CHM: class CHN (line 383) | class CHN: class CHO (line 389) | class CHO: class CHP (line 395) | class CHP: class CHR (line 401) | class CHR: class CHV (line 407) | class CHV: class CHY (line 413) | class CHY: class CNR (line 419) | class CNR: class COP (line 425) | class COP: class COR (line 431) | class COR: class COS (line 437) | class COS: class CPE (line 443) | class CPE: class CPF (line 449) | class CPF: class CPP (line 455) | class CPP: class CRE (line 461) | class CRE: class CRH (line 467) | class CRH: class CRP (line 473) | class CRP: class CSB (line 479) | class CSB: class CZE (line 485) | class CZE: class DAK (line 491) | class DAK: class DAN (line 497) | class DAN: class DAR (line 503) | class DAR: class DEL (line 509) | class DEL: class DEN (line 515) | class DEN: class DGR (line 521) | class DGR: class DIN (line 527) | class DIN: class DIV (line 533) | class DIV: class DOI (line 539) | class DOI: class DUA (line 545) | class DUA: class DUT (line 551) | class DUT: class DYU (line 557) | class DYU: class DZO (line 563) | class DZO: class EFI (line 569) | class EFI: class EKA (line 575) | class EKA: class ELX (line 581) | class ELX: class ENG (line 587) | class ENG: class EPO (line 593) | class EPO: class EST (line 599) | class EST: class EWE (line 605) | class EWE: class EWO (line 611) | class EWO: class FAN (line 617) | class FAN: class FAO (line 623) | class FAO: class FAT (line 629) | class FAT: class FIJ (line 635) | class FIJ: class FIL (line 641) | class FIL: class FIN (line 647) | class FIN: class FON (line 653) | class FON: class FRE (line 659) | class FRE: class FRR (line 665) | class FRR: class FRS (line 671) | class FRS: class FRY (line 677) | class FRY: class FUL (line 683) | class FUL: class FUR (line 689) | class FUR: class GAA (line 695) | class GAA: class GAY (line 701) | class GAY: class GBA (line 707) | class GBA: class GEO (line 713) | class GEO: class GER (line 719) | class GER: class GEZ (line 725) | class GEZ: class GIL (line 731) | class GIL: class GLA (line 737) | class GLA: class GLE (line 743) | class GLE: class GLG (line 749) | class GLG: class GLV (line 755) | class GLV: class GON (line 761) | class GON: class GOR (line 767) | class GOR: class GOT (line 773) | class GOT: class GRB (line 779) | class GRB: class GRE (line 785) | class GRE: class GRN (line 791) | class GRN: class GSW (line 797) | class GSW: class GUJ (line 803) | class GUJ: class GWI (line 809) | class GWI: class HAI (line 815) | class HAI: class HAT (line 821) | class HAT: class HAU (line 827) | class HAU: class HAW (line 833) | class HAW: class HEB (line 839) | class HEB: class HER (line 845) | class HER: class HIL (line 851) | class HIL: class HIN (line 857) | class HIN: class HIT (line 863) | class HIT: class HMN (line 869) | class HMN: class HMO (line 875) | class HMO: class HRV (line 881) | class HRV: class HSB (line 887) | class HSB: class HUN (line 893) | class HUN: class HUP (line 899) | class HUP: class IBA (line 905) | class IBA: class IBO (line 911) | class IBO: class ICE (line 917) | class ICE: class IDO (line 923) | class IDO: class III (line 929) | class III: class IKU (line 935) | class IKU: class ILE (line 941) | class ILE: class ILO (line 947) | class ILO: class INA (line 953) | class INA: class IND (line 959) | class IND: class INH (line 965) | class INH: class IPK (line 971) | class IPK: class ITA (line 977) | class ITA: class JAV (line 983) | class JAV: class JBO (line 989) | class JBO: class JPN (line 995) | class JPN: class JPR (line 1001) | class JPR: class JRB (line 1007) | class JRB: class KAA (line 1013) | class KAA: class KAB (line 1019) | class KAB: class KAC (line 1025) | class KAC: class KAL (line 1031) | class KAL: class KAM (line 1037) | class KAM: class KAN (line 1043) | class KAN: class KAS (line 1049) | class KAS: class KAU (line 1055) | class KAU: class KAW (line 1061) | class KAW: class KAZ (line 1067) | class KAZ: class KBD (line 1073) | class KBD: class KHA (line 1079) | class KHA: class KHM (line 1085) | class KHM: class KHO (line 1091) | class KHO: class KIK (line 1097) | class KIK: class KIN (line 1103) | class KIN: class KIR (line 1109) | class KIR: class KMB (line 1115) | class KMB: class KOK (line 1121) | class KOK: class KOM (line 1127) | class KOM: class KON (line 1133) | class KON: class KOR (line 1139) | class KOR: class KOS (line 1145) | class KOS: class KPE (line 1151) | class KPE: class KRC (line 1157) | class KRC: class KRL (line 1163) | class KRL: class KRU (line 1169) | class KRU: class KUA (line 1175) | class KUA: class KUM (line 1181) | class KUM: class KUR (line 1187) | class KUR: class KUT (line 1193) | class KUT: class LAD (line 1199) | class LAD: class LAH (line 1205) | class LAH: class LAM (line 1211) | class LAM: class LAO (line 1217) | class LAO: class LAT (line 1223) | class LAT: class LAV (line 1229) | class LAV: class LEZ (line 1235) | class LEZ: class LIM (line 1241) | class LIM: class LIN (line 1247) | class LIN: class LIT (line 1253) | class LIT: class LOL (line 1259) | class LOL: class LOZ (line 1265) | class LOZ: class LTZ (line 1271) | class LTZ: class LUA (line 1277) | class LUA: class LUB (line 1283) | class LUB: class LUG (line 1289) | class LUG: class LUI (line 1295) | class LUI: class LUN (line 1301) | class LUN: class LUO (line 1307) | class LUO: class LUS (line 1313) | class LUS: class MAC (line 1319) | class MAC: class MAD (line 1325) | class MAD: class MAG (line 1331) | class MAG: class MAH (line 1337) | class MAH: class MAI (line 1343) | class MAI: class MAK (line 1349) | class MAK: class MAL (line 1355) | class MAL: class MAN (line 1361) | class MAN: class MAO (line 1367) | class MAO: class MAR (line 1373) | class MAR: class MAS (line 1379) | class MAS: class MAY (line 1385) | class MAY: class MDF (line 1391) | class MDF: class MDR (line 1397) | class MDR: class MEN (line 1403) | class MEN: class MIC (line 1409) | class MIC: class MIN (line 1415) | class MIN: class MLG (line 1421) | class MLG: class MLT (line 1427) | class MLT: class MNC (line 1433) | class MNC: class MNI (line 1439) | class MNI: class MOH (line 1445) | class MOH: class MON (line 1451) | class MON: class MOS (line 1457) | class MOS: class MUS (line 1463) | class MUS: class MWL (line 1469) | class MWL: class MWR (line 1475) | class MWR: class MYV (line 1481) | class MYV: class NAP (line 1487) | class NAP: class NAU (line 1493) | class NAU: class NAV (line 1499) | class NAV: class NBL (line 1505) | class NBL: class NDE (line 1511) | class NDE: class NDO (line 1517) | class NDO: class NEP (line 1523) | class NEP: class NEW (line 1529) | class NEW: class NIA (line 1535) | class NIA: class NIU (line 1541) | class NIU: class NNO (line 1547) | class NNO: class NOB (line 1553) | class NOB: class NOG (line 1559) | class NOG: class NOR (line 1565) | class NOR: class NQO (line 1571) | class NQO: class NSO (line 1577) | class NSO: class NYA (line 1583) | class NYA: class NYM (line 1589) | class NYM: class NYN (line 1595) | class NYN: class NYO (line 1601) | class NYO: class NZI (line 1607) | class NZI: class OJI (line 1613) | class OJI: class ORI (line 1619) | class ORI: class ORM (line 1625) | class ORM: class OSA (line 1631) | class OSA: class OSS (line 1637) | class OSS: class PAG (line 1643) | class PAG: class PAL (line 1649) | class PAL: class PAM (line 1655) | class PAM: class PAN (line 1661) | class PAN: class PAP (line 1667) | class PAP: class PAU (line 1673) | class PAU: class PER (line 1679) | class PER: class PHN (line 1685) | class PHN: class PLI (line 1691) | class PLI: class POL (line 1697) | class POL: class PON (line 1703) | class PON: class POR (line 1709) | class POR: class PUS (line 1715) | class PUS: class QUE (line 1721) | class QUE: class RAJ (line 1727) | class RAJ: class RAP (line 1733) | class RAP: class RAR (line 1739) | class RAR: class ROH (line 1745) | class ROH: class ROM (line 1751) | class ROM: class RUM (line 1757) | class RUM: class RUN (line 1763) | class RUN: class RUP (line 1769) | class RUP: class RUS (line 1775) | class RUS: class SAD (line 1781) | class SAD: class SAG (line 1787) | class SAG: class SAH (line 1793) | class SAH: class SAM (line 1799) | class SAM: class SAN (line 1805) | class SAN: class SAS (line 1811) | class SAS: class SAT (line 1817) | class SAT: class SCN (line 1823) | class SCN: class SCO (line 1829) | class SCO: class SEL (line 1835) | class SEL: class SHN (line 1841) | class SHN: class SID (line 1847) | class SID: class SIN (line 1853) | class SIN: class SLO (line 1859) | class SLO: class SLV (line 1865) | class SLV: class SMA (line 1871) | class SMA: class SME (line 1877) | class SME: class SMJ (line 1883) | class SMJ: class SMN (line 1889) | class SMN: class SMO (line 1895) | class SMO: class SMS (line 1901) | class SMS: class SNA (line 1907) | class SNA: class SND (line 1913) | class SND: class SNK (line 1919) | class SNK: class SOG (line 1925) | class SOG: class SOM (line 1931) | class SOM: class SOT (line 1937) | class SOT: class SPA (line 1943) | class SPA: class SRD (line 1949) | class SRD: class SRN (line 1955) | class SRN: class SRP (line 1961) | class SRP: class SRR (line 1967) | class SRR: class SSW (line 1973) | class SSW: class SUK (line 1979) | class SUK: class SUN (line 1985) | class SUN: class SUS (line 1991) | class SUS: class SUX (line 1997) | class SUX: class SWA (line 2003) | class SWA: class SWE (line 2009) | class SWE: class SYC (line 2015) | class SYC: class SYR (line 2021) | class SYR: class TAH (line 2027) | class TAH: class TAM (line 2033) | class TAM: class TAT (line 2039) | class TAT: class TEL (line 2045) | class TEL: class TEM (line 2051) | class TEM: class TER (line 2057) | class TER: class TET (line 2063) | class TET: class TGK (line 2069) | class TGK: class TGL (line 2075) | class TGL: class THA (line 2081) | class THA: class TIB (line 2087) | class TIB: class TIG (line 2093) | class TIG: class TIR (line 2099) | class TIR: class TIV (line 2105) | class TIV: class TKL (line 2111) | class TKL: class TLH (line 2117) | class TLH: class TLI (line 2123) | class TLI: class TMH (line 2129) | class TMH: class TOG (line 2135) | class TOG: class TON (line 2141) | class TON: class TPI (line 2147) | class TPI: class TSI (line 2153) | class TSI: class TSN (line 2159) | class TSN: class TSO (line 2165) | class TSO: class TUK (line 2171) | class TUK: class TUM (line 2177) | class TUM: class TUR (line 2183) | class TUR: class TVL (line 2189) | class TVL: class TWI (line 2195) | class TWI: class TYV (line 2201) | class TYV: class UDM (line 2207) | class UDM: class UGA (line 2213) | class UGA: class UIG (line 2219) | class UIG: class UKR (line 2225) | class UKR: class UMB (line 2231) | class UMB: class UND (line 2237) | class UND: class URD (line 2243) | class URD: class UZB (line 2249) | class UZB: class VAI (line 2255) | class VAI: class VEN (line 2261) | class VEN: class VIE (line 2267) | class VIE: class VOL (line 2273) | class VOL: class VOT (line 2279) | class VOT: class WAL (line 2285) | class WAL: class WAR (line 2291) | class WAR: class WAS (line 2297) | class WAS: class WEL (line 2303) | class WEL: class WLN (line 2309) | class WLN: class WOL (line 2315) | class WOL: class XAL (line 2321) | class XAL: class XHO (line 2327) | class XHO: class YAO (line 2333) | class YAO: class YAP (line 2339) | class YAP: class YID (line 2345) | class YID: class YOR (line 2351) | class YOR: class ZAP (line 2357) | class ZAP: class ZBL (line 2363) | class ZBL: class ZEN (line 2369) | class ZEN: class ZGH (line 2375) | class ZGH: class ZHA (line 2381) | class ZHA: class ZHS (line 2387) | class ZHS: class ZHT (line 2393) | class ZHT: class ZUL (line 2399) | class ZUL: class ZUN (line 2405) | class ZUN: class ZZA (line 2411) | class ZZA: function get_language_classes (line 2417) | def get_language_classes(): FILE: chatterbot/logic/best_match.py class BestMatch (line 6) | class BestMatch(LogicAdapter): method __init__ (line 21) | def __init__(self, chatbot, **kwargs): method process (line 26) | def process(self, input_statement: Statement, additional_response_sele... FILE: chatterbot/logic/llm_adapters.py class LLMLogicAdapter (line 20) | class LLMLogicAdapter(LogicAdapter): method __init__ (line 55) | def __init__(self, chatbot, **kwargs): method _initialize_tool_adapters (line 102) | def _initialize_tool_adapters(self, adapter_configs: List[Union[str, D... method _get_conversation_context (line 127) | def _get_conversation_context(self, input_statement: Statement) -> Lis... method _build_base_messages (line 173) | def _build_base_messages(self, input_statement: Statement, system_mess... method _format_error_response (line 189) | def _format_error_response(self, error: Exception) -> str: method _supports_native_tools (line 201) | def _supports_native_tools(self) -> bool: method _detect_tool_capability (line 220) | def _detect_tool_capability(self) -> bool: method _get_tools_for_llm (line 230) | def _get_tools_for_llm(self) -> List[Dict[str, Any]]: method _execute_tool (line 240) | def _execute_tool(self, tool_name: str, parameters: Dict[str, Any]) ->... method _handle_native_tool_calling (line 280) | def _handle_native_tool_calling(self, input_statement: Statement) -> S... method _handle_prompt_based_tool_calling (line 293) | def _handle_prompt_based_tool_calling(self, input_statement: Statement... method _call_llm (line 361) | def _call_llm(self, input_statement: Statement, system_message: Option... method _call_llm_with_context (line 375) | def _call_llm_with_context(self, input_statement: Statement, additiona... method _calculate_confidence (line 389) | def _calculate_confidence(self, response_text: str) -> float: method process (line 417) | def process(self, statement: Statement, additional_response_selection_... class OllamaLogicAdapter (line 442) | class OllamaLogicAdapter(LLMLogicAdapter): method __init__ (line 468) | def __init__(self, chatbot, **kwargs): method _detect_tool_capability (line 484) | def _detect_tool_capability(self) -> bool: method _get_tools_for_llm (line 549) | def _get_tools_for_llm(self) -> List[Dict[str, Any]]: method _call_llm (line 563) | def _call_llm(self, input_statement: Statement, system_message: Option... method _call_llm_with_context (line 587) | def _call_llm_with_context(self, input_statement: Statement, additiona... method _handle_native_tool_calling (line 611) | def _handle_native_tool_calling(self, input_statement: Statement) -> S... class OpenAILogicAdapter (line 696) | class OpenAILogicAdapter(LLMLogicAdapter): method __init__ (line 722) | def __init__(self, chatbot, **kwargs): method _detect_tool_capability (line 737) | def _detect_tool_capability(self) -> bool: method _get_tools_for_llm (line 746) | def _get_tools_for_llm(self) -> List[Dict[str, Any]]: method _call_llm (line 760) | def _call_llm(self, input_statement: Statement, system_message: Option... method _call_llm_with_context (line 784) | def _call_llm_with_context(self, input_statement: Statement, additiona... method _handle_native_tool_calling (line 808) | def _handle_native_tool_calling(self, input_statement: Statement) -> S... FILE: chatterbot/logic/logic_adapter.py class LogicAdapter (line 10) | class LogicAdapter(Adapter): method __init__ (line 37) | def __init__(self, chatbot, **kwargs): method can_process (line 80) | def can_process(self, statement) -> bool: method process (line 89) | def process(self, statement: Statement, additional_response_selection_... method get_default_response (line 108) | def get_default_response(self, input_statement: Statement) -> Statement: method class_name (line 131) | def class_name(self) -> str: FILE: chatterbot/logic/mathematical_evaluation.py class MathematicalEvaluation (line 7) | class MathematicalEvaluation(LogicAdapter, MCPToolAdapter): method __init__ (line 23) | def __init__(self, chatbot, **kwargs): method can_process (line 29) | def can_process(self, statement) -> bool: method process (line 38) | def process(self, statement: Statement, additional_response_selection_... method get_tool_schema (line 71) | def get_tool_schema(self): method execute_as_tool (line 90) | def execute_as_tool(self, **kwargs): FILE: chatterbot/logic/mcp_tools.py class MCPToolAdapter (line 12) | class MCPToolAdapter(ABC): method get_tool_schema (line 44) | def get_tool_schema(self) -> Dict[str, Any]: method execute_as_tool (line 72) | def execute_as_tool(self, **kwargs) -> Any: method get_tool_name (line 90) | def get_tool_name(self) -> str: method validate_tool_parameters (line 100) | def validate_tool_parameters(self, **kwargs) -> bool: function is_tool_adapter (line 140) | def is_tool_adapter(adapter) -> bool: function convert_to_openai_tool_format (line 158) | def convert_to_openai_tool_format(schema: Dict[str, Any]) -> Dict[str, A... function convert_to_ollama_tool_format (line 188) | def convert_to_ollama_tool_format(schema: Dict[str, Any]) -> Dict[str, A... FILE: chatterbot/logic/specific_response.py class SpecificResponseAdapter (line 8) | class SpecificResponseAdapter(LogicAdapter): method __init__ (line 20) | def __init__(self, chatbot, **kwargs): method _initialize_nlp (line 48) | def _initialize_nlp(self, language): method can_process (line 53) | def can_process(self, statement) -> bool: method process (line 65) | def process(self, statement: Statement, additional_response_selection_... FILE: chatterbot/logic/time_adapter.py class TimeLogicAdapter (line 10) | class TimeLogicAdapter(LogicAdapter, MCPToolAdapter): method __init__ (line 22) | def __init__(self, chatbot, **kwargs): method process (line 55) | def process(self, statement: Statement, additional_response_selection_... method get_tool_schema (line 71) | def get_tool_schema(self): method execute_as_tool (line 85) | def execute_as_tool(self, **kwargs): FILE: chatterbot/logic/unit_conversion.py class UnitConversion (line 11) | class UnitConversion(LogicAdapter, MCPToolAdapter): method __init__ (line 25) | def __init__(self, chatbot, **kwargs): method get_unit (line 78) | def get_unit(self, unit_variations): method get_valid_units (line 93) | def get_valid_units(self, from_unit, target_unit): method handle_matches (line 111) | def handle_matches(self, match): method can_process (line 141) | def can_process(self, statement) -> bool: method process (line 146) | def process(self, statement: Statement, additional_response_selection_... method get_tool_schema (line 168) | def get_tool_schema(self): method execute_as_tool (line 187) | def execute_as_tool(self, **kwargs): FILE: chatterbot/parsing.py function convert_string_to_number (line 506) | def convert_string_to_number(value: str) -> int: function convert_time_to_hour_minute (line 520) | def convert_time_to_hour_minute(hour: str, minute: str, convention: str)... function date_from_quarter (line 547) | def date_from_quarter(base_date: datetime, ordinal: int, year: int) -> l... function date_from_relative_day (line 564) | def date_from_relative_day(base_date: datetime, time: str, dow: str) -> ... function date_from_relative_week_year (line 587) | def date_from_relative_week_year(base_date: datetime, time: str, dow: st... function date_from_adverb (line 649) | def date_from_adverb(base_date: datetime, name: str) -> datetime: function date_from_duration (line 665) | def date_from_duration(base_date: datetime, number_as_string: str, unit:... function this_week_day (line 695) | def this_week_day(base_date: datetime, weekday: int) -> datetime: function previous_week_day (line 711) | def previous_week_day(base_date: datetime, weekday: int) -> datetime: function next_week_day (line 721) | def next_week_day(base_date: datetime, weekday: int) -> datetime: function datetime_parsing (line 733) | def datetime_parsing(text: str, base_date: datetime = datetime.now()) ->... FILE: chatterbot/preprocessors.py function clean_whitespace (line 10) | def clean_whitespace(statement: Statement) -> Statement: function unescape_html (line 28) | def unescape_html(statement: Statement) -> Statement: function convert_to_ascii (line 38) | def convert_to_ascii(statement: Statement) -> Statement: FILE: chatterbot/response_selection.py function get_most_frequent_response (line 9) | def get_most_frequent_response(input_statement: Statement, response_list... function get_first_response (line 53) | def get_first_response(input_statement: Statement, response_list: list[S... function get_random_response (line 72) | def get_random_response(input_statement: Statement, response_list: list[... FILE: chatterbot/search.py class IndexedTextSearch (line 1) | class IndexedTextSearch: method __init__ (line 13) | def __init__(self, chatbot, **kwargs): method search (line 31) | def search(self, input_statement, **additional_parameters): class TextSearch (line 82) | class TextSearch: method __init__ (line 94) | def __init__(self, chatbot, **kwargs): method search (line 112) | def search(self, input_statement, **additional_parameters): class SemanticVectorSearch (line 162) | class SemanticVectorSearch: method __init__ (line 196) | def __init__(self, chatbot, **kwargs): method search (line 203) | def search(self, input_statement, **additional_parameters): FILE: chatterbot/storage/django_storage.py class DjangoStorageAdapter (line 5) | class DjangoStorageAdapter(StorageAdapter): method __init__ (line 18) | def __init__(self, **kwargs): method get_statement_model (line 48) | def get_statement_model(self): method get_tag_model (line 52) | def get_tag_model(self): method count (line 56) | def count(self) -> int: method filter (line 60) | def filter(self, **kwargs): method create (line 132) | def create(self, **kwargs): method create_many (line 159) | def create_many(self, statements): method update (line 189) | def update(self, statement): method get_random (line 215) | def get_random(self): method remove (line 228) | def remove(self, statement_text): method drop (line 240) | def drop(self): FILE: chatterbot/storage/mongodb.py class MongoDatabaseAdapter (line 6) | class MongoDatabaseAdapter(StorageAdapter): method __init__ (line 33) | def __init__(self, **kwargs): method get_statement_model (line 60) | def get_statement_model(self): method count (line 72) | def count(self) -> int: method mongo_to_object (line 75) | def mongo_to_object(self, statement_data): method filter (line 86) | def filter(self, **kwargs): method create (line 176) | def create(self, **kwargs): method create_many (line 192) | def create_many(self, statements): method update (line 207) | def update(self, statement): method get_random (line 242) | def get_random(self): method remove (line 257) | def remove(self, statement_text): method drop (line 263) | def drop(self): method close (line 269) | def close(self): FILE: chatterbot/storage/redis.py function _escape_redis_special_characters (line 8) | def _escape_redis_special_characters(text): class RedisVectorStorageAdapter (line 26) | class RedisVectorStorageAdapter(StorageAdapter): class RedisMetaDataType (line 93) | class RedisMetaDataType: method __init__ (line 101) | def __init__(self, **kwargs): method get_preferred_tagger (line 190) | def get_preferred_tagger(self): method get_preferred_search_algorithm (line 198) | def get_preferred_search_algorithm(self): method get_statement_model (line 205) | def get_statement_model(self): method _calculate_confidence_from_distance (line 217) | def _calculate_confidence_from_distance(self, distance): method _add_confidence_to_results (line 228) | def _add_confidence_to_results(self, results): method model_to_object (line 241) | def model_to_object(self, document): method count (line 275) | def count(self) -> int: method remove (line 288) | def remove(self, statement): method filter (line 297) | def filter(self, page_size=4, **kwargs): method create (line 457) | def create( method create_many (line 508) | def create_many(self, statements): method update (line 533) | def update(self, statement): method get_random (line 574) | def get_random(self): method drop (line 609) | def drop(self): method close (line 626) | def close(self): FILE: chatterbot/storage/sql_storage.py class SQLStorageAdapter (line 5) | class SQLStorageAdapter(StorageAdapter): method __init__ (line 20) | def __init__(self, **kwargs): method get_statement_model (line 119) | def get_statement_model(self): method get_tag_model (line 126) | def get_tag_model(self): method model_to_object (line 133) | def model_to_object(self, statement): method count (line 138) | def count(self) -> int: method remove (line 151) | def remove(self, statement_text): method filter (line 168) | def filter(self, **kwargs): method create (line 258) | def create( method create_many (line 318) | def create_many(self, statements): method update (line 373) | def update(self, statement): method get_random (line 428) | def get_random(self): method drop (line 449) | def drop(self): method create_database (line 465) | def create_database(self): method close (line 472) | def close(self): FILE: chatterbot/storage/storage_adapter.py class StorageAdapter (line 4) | class StorageAdapter(object): method __init__ (line 10) | def __init__(self, *args, **kwargs): method get_model (line 22) | def get_model(self, model_name): method get_object (line 34) | def get_object(self, object_name): method get_statement_object (line 46) | def get_statement_object(self): method count (line 57) | def count(self) -> int: method remove (line 65) | def remove(self, statement_text): method filter (line 75) | def filter(self, **kwargs): method create (line 126) | def create(self, **kwargs): method create_many (line 135) | def create_many(self, statements): method update (line 143) | def update(self, statement): method get_random (line 152) | def get_random(self): method drop (line 160) | def drop(self): method close (line 168) | def close(self): method get_preferred_tagger (line 176) | def get_preferred_tagger(self): method get_preferred_search_algorithm (line 215) | def get_preferred_search_algorithm(self): class EmptyDatabaseException (line 257) | class EmptyDatabaseException(Exception): method __init__ (line 259) | def __init__(self, message=None): class AdapterMethodNotImplementedError (line 263) | class AdapterMethodNotImplementedError(NotImplementedError): FILE: chatterbot/tagging.py class NoOpTagger (line 7) | class NoOpTagger(object): method __init__ (line 13) | def __init__(self, language=None): method needs_text_indexing (line 16) | def needs_text_indexing(self): method get_text_index_string (line 25) | def get_text_index_string(self, text: Union[str, List[str]]): method as_nlp_pipeline (line 31) | def as_nlp_pipeline( class LowercaseTagger (line 57) | class LowercaseTagger(object): method __init__ (line 62) | def __init__(self, language=None): method needs_text_indexing (line 74) | def needs_text_indexing(self): method get_text_index_string (line 83) | def get_text_index_string(self, text: Union[str, List[str]]): method as_nlp_pipeline (line 91) | def as_nlp_pipeline( class PosLemmaTagger (line 119) | class PosLemmaTagger(object): method __init__ (line 121) | def __init__(self, language=None): method needs_text_indexing (line 135) | def needs_text_indexing(self): method get_text_index_string (line 144) | def get_text_index_string(self, text: Union[str, List[str]]) -> str: method as_nlp_pipeline (line 155) | def as_nlp_pipeline( FILE: chatterbot/trainers.py class Trainer (line 14) | class Trainer(object): method __init__ (line 24) | def __init__(self, chatbot: ChatBot, **kwargs): method get_preprocessed_statement (line 34) | def get_preprocessed_statement(self, input_statement: Statement) -> St... method train (line 43) | def train(self, *args, **kwargs): class TrainerInitializationException (line 49) | class TrainerInitializationException(Exception): method __init__ (line 55) | def __init__(self, message=None): method _generate_export_data (line 62) | def _generate_export_data(self) -> list: method export_for_training (line 70) | def export_for_training(self, file_path='./export.json'): class ListTrainer (line 80) | class ListTrainer(Trainer): method train (line 86) | def train(self, conversation: List[str]): class ChatterBotCorpusTrainer (line 138) | class ChatterBotCorpusTrainer(Trainer): method train (line 144) | def train(self, *corpus_paths: Union[str, List[str]]): class GenericFileTrainer (line 222) | class GenericFileTrainer(Trainer): method __init__ (line 238) | def __init__(self, chatbot: ChatBot, **kwargs): method _get_file_list (line 252) | def _get_file_list(self, data_path: str, limit: Union[int, None]): method train (line 278) | def train(self, data_path: str, limit=None): class CsvFileTrainer (line 467) | class CsvFileTrainer(GenericFileTrainer): method __init__ (line 483) | def __init__(self, chatbot: ChatBot, **kwargs): class JsonFileTrainer (line 489) | class JsonFileTrainer(GenericFileTrainer): method __init__ (line 509) | def __init__(self, chatbot: ChatBot, **kwargs): class UbuntuCorpusTrainer (line 520) | class UbuntuCorpusTrainer(CsvFileTrainer): method __init__ (line 533) | def __init__(self, chatbot: ChatBot, **kwargs): method is_downloaded (line 555) | def is_downloaded(self, file_path: str): method is_extracted (line 565) | def is_extracted(self, file_path: str): method download (line 575) | def download(self, url: str, show_status=True): method extract (line 614) | def extract(self, file_path: str): method _get_file_list (line 654) | def _get_file_list(self, data_path: str, limit: Union[int, None]): method train (line 685) | def train(self, data_download_url: str, limit: Union[int, None] = None): FILE: chatterbot/utils.py function import_module (line 9) | def import_module(dotted_path: str): function initialize_class (line 21) | def initialize_class(data: Union[dict, str], *args, **kwargs): function validate_adapter_class (line 37) | def validate_adapter_class(validate_class, adapter_class): function get_response_time (line 74) | def get_response_time(chatbot, statement='Hello') -> float: function get_model_for_language (line 91) | def get_model_for_language(language): FILE: chatterbot/vectorstores.py class RedisVectorStore (line 15) | class RedisVectorStore(LangChainRedisVectorStore): method query_search (line 20) | def query_search( FILE: docs/_ext/canonical.py function setup_canonical_func (line 5) | def setup_canonical_func(app, pagename, templatename, context, doctree): function setup (line 28) | def setup(app): FILE: docs/_ext/github.py function setup_github_func (line 9) | def setup_github_func(app, pagename, templatename, context, doctree): function setup (line 25) | def setup(app): FILE: docs/_static/mobile.js function createOverlay (line 21) | function createOverlay() { function openMobileMenu (line 37) | function openMobileMenu() { function closeMobileMenu (line 50) | function closeMobileMenu() { function toggleMobileMenu (line 63) | function toggleMobileMenu(event) { function initMobileMenu (line 79) | function initMobileMenu() { function cleanupMobileMenu (line 126) | function cleanupMobileMenu() { function makeTablesResponsive (line 162) | function makeTablesResponsive() { function enhanceCodeBlocks (line 186) | function enhanceCodeBlocks() { function handleResize (line 202) | function handleResize() { function improveAccessibility (line 217) | function improveAccessibility() { function init (line 246) | function init() { FILE: docs/_static/silktide-consent-manager.js class SilktideCookieBanner (line 3) | class SilktideCookieBanner { method constructor (line 4) | constructor(config) { method destroyCookieBanner (line 37) | destroyCookieBanner() { method createWrapper (line 57) | createWrapper() { method createWrapperChild (line 66) | createWrapperChild(htmlContent, id) { method createBackdrop (line 85) | createBackdrop() { method showBackdrop (line 89) | showBackdrop() { method hideBackdrop (line 99) | hideBackdrop() { method shouldShowBackdrop (line 110) | shouldShowBackdrop() { method updateCheckboxState (line 115) | updateCheckboxState(saveToStorage = false) { method setInitialCookieChoiceMade (line 167) | setInitialCookieChoiceMade() { method handleCookieChoice (line 174) | handleCookieChoice(accepted) { method getAcceptedCookies (line 213) | getAcceptedCookies() { method runAcceptedCookieCallbacks (line 222) | runAcceptedCookieCallbacks() { method runRejectedCookieCallbacks (line 234) | runRejectedCookieCallbacks() { method runStoredCookiePreferenceCallbacks (line 248) | runStoredCookiePreferenceCallbacks() { method loadRequiredCookies (line 261) | loadRequiredCookies() { method getBannerContent (line 273) | getBannerContent() { method hasSetInitialCookieChoices (line 330) | hasSetInitialCookieChoices() { method createBanner (line 334) | createBanner() { method removeBanner (line 349) | removeBanner() { method shouldShowBanner (line 361) | shouldShowBanner() { method getModalContent (line 373) | getModalContent() { method createModal (line 475) | createModal() { method toggleModal (line 480) | toggleModal(show) { method getCookieIconContent (line 522) | getCookieIconContent() { method createCookieIcon (line 530) | createCookieIcon() { method showCookieIcon (line 559) | showCookieIcon() { method hideCookieIcon (line 565) | hideCookieIcon() { method handleClosedWithNoChoice (line 575) | handleClosedWithNoChoice() { method getFocusableElements (line 606) | getFocusableElements(element) { method setupEventListeners (line 615) | setupEventListeners() { method getBannerSuffix (line 766) | getBannerSuffix() { method preventBodyScroll (line 773) | preventBodyScroll() { method allowBodyScroll (line 780) | allowBodyScroll() { function updateCookieBannerConfig (line 793) | function updateCookieBannerConfig(userConfig = {}) { function initCookieBanner (line 811) | function initCookieBanner() { function injectScript (line 817) | function injectScript(url, loadOption) { FILE: examples/django_example/django_example/management/commands/train.py class Command (line 20) | class Command(BaseCommand): method handle (line 23) | def handle(self, *args, **options): FILE: examples/django_example/django_example/static/js/bootstrap.js function i (line 6) | function i(e,t){for(var n=0;n1){if(f=a({pat... FILE: examples/django_example/django_example/tests/test_api.py class ApiTestCase (line 6) | class ApiTestCase(TestCase): method setUp (line 8) | def setUp(self): method test_invalid_text (line 12) | def test_invalid_text(self): method test_post (line 26) | def test_post(self): method test_post_unicode (line 44) | def test_post_unicode(self): method test_escaped_unicode_post (line 62) | def test_escaped_unicode_post(self): method test_post_tags (line 79) | def test_post_tags(self): method test_get (line 99) | def test_get(self): method test_patch (line 104) | def test_patch(self): method test_put (line 109) | def test_put(self): method test_delete (line 114) | def test_delete(self): FILE: examples/django_example/django_example/tests/test_example.py class ViewTestCase (line 6) | class ViewTestCase(TestCase): method setUp (line 8) | def setUp(self): method test_get_main_page (line 12) | def test_get_main_page(self): class ApiTestCase (line 20) | class ApiTestCase(TestCase): method setUp (line 26) | def setUp(self): method test_post (line 30) | def test_post(self): method test_post_tags (line 48) | def test_post_tags(self): class ApiIntegrationTestCase (line 69) | class ApiIntegrationTestCase(TestCase): method setUp (line 75) | def setUp(self): method test_get (line 79) | def test_get(self): FILE: examples/django_example/django_example/views.py class ChatterBotAppView (line 10) | class ChatterBotAppView(TemplateView): class ChatterBotApiView (line 14) | class ChatterBotApiView(View): method post (line 21) | def post(self, request, *args, **kwargs): method get (line 42) | def get(self, request, *args, **kwargs): FILE: examples/django_example/manage.py function main (line 7) | def main(): FILE: examples/learning_feedback_example.py function get_feedback (line 21) | def get_feedback(): FILE: examples/tkinter_gui.py class TkinterGUIExample (line 12) | class TkinterGUIExample(tk.Tk): method __init__ (line 14) | def __init__(self, *args, **kwargs): method initialize (line 33) | def initialize(self): method get_response (line 51) | def get_response(self): FILE: tests/base_case.py class ChatBotTestCase (line 6) | class ChatBotTestCase(TestCase): method setUpClass (line 16) | def setUpClass(cls): method setUp (line 22) | def setUp(self): method _add_search_text (line 27) | def _add_search_text(self, **kwargs): method _create_with_search_text (line 44) | def _create_with_search_text(self, text, in_response_to=None, **kwargs): method _create_many_with_search_text (line 63) | def _create_many_with_search_text(self, statements): method tearDown (line 83) | def tearDown(self): method assertIsLength (line 90) | def assertIsLength(self, item, length): method get_kwargs (line 98) | def get_kwargs(self): class ChatBotMongoTestCase (line 107) | class ChatBotMongoTestCase(ChatBotTestCase): method setUpClass (line 110) | def setUpClass(cls): method get_kwargs (line 129) | def get_kwargs(self): class ChatBotSQLTestCase (line 136) | class ChatBotSQLTestCase(ChatBotTestCase): method get_kwargs (line 138) | def get_kwargs(self): FILE: tests/django_integration/__init__.py function load_tests (line 34) | def load_tests(loader, tests, pattern): FILE: tests/django_integration/base_case.py class ChatterBotTestCase (line 6) | class ChatterBotTestCase(TransactionTestCase): method setUp (line 11) | def setUp(self): method _create_with_search_text (line 18) | def _create_with_search_text(self, text, in_response_to=None, **kwargs): method _create_many_with_search_text (line 37) | def _create_many_with_search_text(self, statements): FILE: tests/django_integration/test_chatbot.py class ChatBotTests (line 5) | class ChatBotTests(ChatterBotTestCase): method test_get_response_text (line 7) | def test_get_response_text(self): method test_no_statements_known (line 10) | def test_no_statements_known(self): method test_one_statement_known_no_response (line 27) | def test_one_statement_known_no_response(self): method test_one_statement_one_response_known (line 39) | def test_one_statement_one_response_known(self): method test_two_statements_one_response_known (line 51) | def test_two_statements_one_response_known(self): method test_three_statements_two_responses_known (line 64) | def test_three_statements_two_responses_known(self): method test_four_statements_three_responses_known (line 76) | def test_four_statements_three_responses_known(self): method test_second_response_unknown (line 90) | def test_second_response_unknown(self): method test_statement_added_to_conversation (line 116) | def test_statement_added_to_conversation(self): method test_get_response_additional_response_selection_parameters (line 126) | def test_get_response_additional_response_selection_parameters(self): method test_get_response_unicode (line 142) | def test_get_response_unicode(self): method test_get_response_emoji (line 149) | def test_get_response_emoji(self): method test_get_response_non_whitespace (line 156) | def test_get_response_non_whitespace(self): method test_get_response_two_byte_characters (line 163) | def test_get_response_two_byte_characters(self): method test_get_response_corrupted_text (line 170) | def test_get_response_corrupted_text(self): method test_response_with_tags_added (line 177) | def test_response_with_tags_added(self): method test_get_response_with_text_and_kwargs (line 194) | def test_get_response_with_text_and_kwargs(self): method test_get_response_missing_text (line 203) | def test_get_response_missing_text(self): method test_get_response_missing_text_with_conversation (line 207) | def test_get_response_missing_text_with_conversation(self): method test_generate_response (line 211) | def test_generate_response(self): method test_learn_response (line 218) | def test_learn_response(self): method test_get_response_does_not_add_new_statement (line 226) | def test_get_response_does_not_add_new_statement(self): method test_get_latest_response_from_zero_responses (line 236) | def test_get_latest_response_from_zero_responses(self): method test_get_latest_response_from_one_responses (line 241) | def test_get_latest_response_from_one_responses(self): method test_get_latest_response_from_two_responses (line 249) | def test_get_latest_response_from_two_responses(self): method test_get_latest_response_from_three_responses (line 258) | def test_get_latest_response_from_three_responses(self): method test_search_text_results_after_training (line 268) | def test_search_text_results_after_training(self): method test_search_text_contains_results_after_training (line 289) | def test_search_text_contains_results_after_training(self): FILE: tests/django_integration/test_chatterbot_corpus_training.py class ChatterBotCorpusTrainingTestCase (line 5) | class ChatterBotCorpusTrainingTestCase(ChatterBotTestCase): method setUp (line 12) | def setUp(self): method tearDown (line 20) | def tearDown(self): method test_train_with_english_greeting_corpus (line 24) | def test_train_with_english_greeting_corpus(self): method test_train_with_english_greeting_corpus_tags (line 31) | def test_train_with_english_greeting_corpus_tags(self): method test_train_with_multiple_corpora (line 40) | def test_train_with_multiple_corpora(self): method test_train_with_english_corpus (line 49) | def test_train_with_english_corpus(self): FILE: tests/django_integration/test_chatterbot_settings.py class SettingsTestCase (line 5) | class SettingsTestCase(TestCase): method test_modified_settings (line 7) | def test_modified_settings(self): method test_name_setting (line 12) | def test_name_setting(self): FILE: tests/django_integration/test_custom_models.py class CustomModelsTestCase (line 9) | class CustomModelsTestCase(ChatterBotTestCase): method test_default_models_used_without_settings (line 14) | def test_default_models_used_without_settings(self): method test_custom_models_via_kwargs (line 33) | def test_custom_models_via_kwargs(self): method test_custom_models_via_settings (line 51) | def test_custom_models_via_settings(self): method test_kwargs_override_settings (line 64) | def test_kwargs_override_settings(self): method test_get_statement_model (line 83) | def test_get_statement_model(self): method test_get_tag_model (line 98) | def test_get_tag_model(self): method test_model_configuration_persists (line 113) | def test_model_configuration_persists(self): FILE: tests/django_integration/test_django_adapter.py class DjangoAdapterTestCase (line 7) | class DjangoAdapterTestCase(TestCase): method setUp (line 9) | def setUp(self): method tearDown (line 15) | def tearDown(self): class DjangoStorageAdapterTests (line 22) | class DjangoStorageAdapterTests(DjangoAdapterTestCase): method test_count_returns_zero (line 24) | def test_count_returns_zero(self): method test_count_returns_value (line 31) | def test_count_returns_value(self): method test_filter_statement_not_found (line 39) | def test_filter_statement_not_found(self): method test_filter_statement_found (line 47) | def test_filter_statement_found(self): method test_update_adds_new_statement (line 59) | def test_update_adds_new_statement(self): method test_update_modifies_existing_statement (line 68) | def test_update_modifies_existing_statement(self): method test_get_random_returns_statement (line 87) | def test_get_random_returns_statement(self): method test_get_random_no_data (line 93) | def test_get_random_no_data(self): method test_filter_by_text_multiple_results (line 99) | def test_filter_by_text_multiple_results(self): method test_remove (line 113) | def test_remove(self): method test_remove_response (line 122) | def test_remove_response(self): class DjangoAdapterFilterTests (line 131) | class DjangoAdapterFilterTests(DjangoAdapterTestCase): method test_filter_text_no_matches (line 133) | def test_filter_text_no_matches(self): method test_filter_in_response_to_no_matches (line 142) | def test_filter_in_response_to_no_matches(self): method test_filter_equal_results (line 152) | def test_filter_equal_results(self): method test_filter_contains_result (line 166) | def test_filter_contains_result(self): method test_filter_contains_no_result (line 182) | def test_filter_contains_no_result(self): method test_filter_no_parameters (line 193) | def test_filter_no_parameters(self): method test_filter_by_tag (line 205) | def test_filter_by_tag(self): method test_filter_by_tags (line 218) | def test_filter_by_tags(self): method test_filter_page_size (line 233) | def test_filter_page_size(self): method test_confidence (line 247) | def test_confidence(self): method test_exclude_text (line 262) | def test_exclude_text(self): method test_exclude_text_words (line 275) | def test_exclude_text_words(self): method test_persona_not_startswith (line 289) | def test_persona_not_startswith(self): method test_search_text_contains (line 300) | def test_search_text_contains(self): method test_search_text_contains_multiple_matches (line 311) | def test_search_text_contains_multiple_matches(self): class DjangoOrderingTests (line 322) | class DjangoOrderingTests(DjangoAdapterTestCase): method test_order_by_text (line 327) | def test_order_by_text(self): method test_reverse_order_by_text (line 337) | def test_reverse_order_by_text(self): class StorageAdapterCreateTests (line 348) | class StorageAdapterCreateTests(DjangoAdapterTestCase): method test_create_text (line 353) | def test_create_text(self): method test_create_search_text (line 361) | def test_create_search_text(self): method test_create_search_in_response_to (line 372) | def test_create_search_in_response_to(self): method test_create_tags (line 383) | def test_create_tags(self): method test_create_duplicate_tags (line 392) | def test_create_duplicate_tags(self): method test_create_many_text (line 405) | def test_create_many_text(self): method test_create_many_search_text (line 417) | def test_create_many_search_text(self): method test_create_many_search_in_response_to (line 429) | def test_create_many_search_in_response_to(self): method test_create_many_tags (line 441) | def test_create_many_tags(self): method test_create_many_duplicate_tags (line 454) | def test_create_many_duplicate_tags(self): class StorageAdapterUpdateTests (line 470) | class StorageAdapterUpdateTests(DjangoAdapterTestCase): method test_update_adds_tags (line 475) | def test_update_adds_tags(self): method test_update_duplicate_tags (line 486) | def test_update_duplicate_tags(self): FILE: tests/django_integration/test_logic_adapter_integration.py class LogicIntegrationTestCase (line 5) | class LogicIntegrationTestCase(ChatterBotTestCase): method setUp (line 11) | def setUp(self): method test_best_match (line 16) | def test_best_match(self): method test_mathematical_evaluation (line 37) | def test_mathematical_evaluation(self): method test_time (line 49) | def test_time(self): FILE: tests/django_integration/test_secondary_database.py class SecondaryDatabaseTestCase (line 8) | class SecondaryDatabaseTestCase(ChatterBotTestCase): method setUp (line 13) | def setUp(self): method test_database_parameter_accepted (line 26) | def test_database_parameter_accepted(self): method test_database_parameter_default (line 32) | def test_database_parameter_default(self): method test_operations_with_database_parameter (line 42) | def test_operations_with_database_parameter(self): FILE: tests/django_integration/test_statement_integration.py class StatementIntegrationTestCase (line 7) | class StatementIntegrationTestCase(TestCase): method setUp (line 13) | def setUp(self): method test_text (line 25) | def test_text(self): method test_in_response_to (line 29) | def test_in_response_to(self): method test_conversation (line 33) | def test_conversation(self): method test_tags (line 37) | def test_tags(self): method test__str__ (line 41) | def test__str__(self): method test_add_tags (line 47) | def test_add_tags(self): method test_serialize (line 54) | def test_serialize(self): FILE: tests/logic/test_best_match.py class BestMatchTestCase (line 6) | class BestMatchTestCase(ChatBotTestCase): method setUp (line 11) | def setUp(self): method test_no_data (line 15) | def test_no_data(self): method test_no_choices (line 25) | def test_no_choices(self): method test_no_known_responses (line 38) | def test_no_known_responses(self): method test_match_with_no_response (line 57) | def test_match_with_no_response(self): method test_match_with_response (line 72) | def test_match_with_response(self): method test_excluded_words (line 90) | def test_excluded_words(self): method test_low_confidence (line 115) | def test_low_confidence(self): method test_low_confidence_options_list (line 125) | def test_low_confidence_options_list(self): method test_text_search_algorithm (line 139) | def test_text_search_algorithm(self): FILE: tests/logic/test_data_cache.py class DummyMutatorLogicAdapter (line 6) | class DummyMutatorLogicAdapter(LogicAdapter): method process (line 12) | def process(self, statement, additional_response_selection_parameters=... class DataCachingTests (line 18) | class DataCachingTests(ChatBotTestCase): method setUp (line 20) | def setUp(self): method test_additional_attributes_saved (line 37) | def test_additional_attributes_saved(self): FILE: tests/logic/test_logic_adapter.py class LogicAdapterTestCase (line 6) | class LogicAdapterTestCase(ChatBotTestCase): method setUp (line 14) | def setUp(self): method test_class_name (line 18) | def test_class_name(self): method test_can_process (line 24) | def test_can_process(self): method test_process (line 30) | def test_process(self): method test_get_default_response (line 34) | def test_get_default_response(self): method test_get_default_response_from_options (line 39) | def test_get_default_response_from_options(self): method test_get_default_response_from_database (line 47) | def test_get_default_response_from_database(self): FILE: tests/logic/test_mathematical_evaluation.py class MathematicalEvaluationTests (line 6) | class MathematicalEvaluationTests(ChatBotTestCase): method setUp (line 8) | def setUp(self): method test_can_process (line 12) | def test_can_process(self): method test_can_not_process (line 16) | def test_can_not_process(self): method test_addition_operator (line 20) | def test_addition_operator(self): method test_subtraction_operator (line 26) | def test_subtraction_operator(self): method test_multiplication_operator (line 32) | def test_multiplication_operator(self): method test_division_operator (line 38) | def test_division_operator(self): method test_exponent_operator (line 45) | def test_exponent_operator(self): method test_parenthesized_multiplication_and_addition (line 51) | def test_parenthesized_multiplication_and_addition(self): method test_parenthesized_with_words (line 57) | def test_parenthesized_with_words(self): method test_word_numbers_addition (line 63) | def test_word_numbers_addition(self): method test_word_division_operator (line 69) | def test_word_division_operator(self): method test_large_word_division_operator (line 76) | def test_large_word_division_operator(self): method test_negative_multiplication (line 84) | def test_negative_multiplication(self): method test_negative_decimal_multiplication (line 90) | def test_negative_decimal_multiplication(self): method test_pi_constant (line 96) | def test_pi_constant(self): method test_e_constant (line 102) | def test_e_constant(self): method test_log_function (line 108) | def test_log_function(self): method test_square_root_function (line 114) | def test_square_root_function(self): FILE: tests/logic/test_specific_response.py class SpecificResponseAdapterTestCase (line 7) | class SpecificResponseAdapterTestCase(ChatBotTestCase): method setUp (line 12) | def setUp(self): method test_initialization_with_missing_input_text (line 20) | def test_initialization_with_missing_input_text(self): method test_initialization_with_missing_output_text (line 30) | def test_initialization_with_missing_output_text(self): method test_exact_match (line 40) | def test_exact_match(self): method test_not_exact_match (line 50) | def test_not_exact_match(self): class SpecificResponseAdapterSpacyTestCase (line 61) | class SpecificResponseAdapterSpacyTestCase(ChatBotTestCase): method setUp (line 66) | def setUp(self): method test_pattern_match (line 86) | def test_pattern_match(self): class SpecificResponseAdapterFunctionResponseTestCase (line 97) | class SpecificResponseAdapterFunctionResponseTestCase(ChatBotTestCase): method setUp (line 102) | def setUp(self): method test_function_response (line 114) | def test_function_response(self): FILE: tests/logic/test_time.py class TimeAdapterTests (line 6) | class TimeAdapterTests(ChatBotTestCase): method setUp (line 8) | def setUp(self): method test_positive_input (line 12) | def test_positive_input(self): method test_negative_input (line 19) | def test_negative_input(self): FILE: tests/logic/test_unit_conversion.py class UnitConversionTests (line 6) | class UnitConversionTests(ChatBotTestCase): method setUp (line 7) | def setUp(self): method test_can_process (line 11) | def test_can_process(self): method test_can_process_pattern_x_unit_to_y_unit (line 15) | def test_can_process_pattern_x_unit_to_y_unit(self): method test_can_process_x_unit_is_how_many_y_unit (line 19) | def test_can_process_x_unit_is_how_many_y_unit(self): method test_can_not_process (line 23) | def test_can_not_process(self): method test_can_not_convert_inches_to_kilometer (line 27) | def test_can_not_convert_inches_to_kilometer(self): method test_inches_to_kilometers (line 31) | def test_inches_to_kilometers(self): method test_inches_to_kilometers_variation_1 (line 40) | def test_inches_to_kilometers_variation_1(self): method test_inches_to_kilometers_variation_2 (line 49) | def test_inches_to_kilometers_variation_2(self): method test_inches_to_kilometers_variation_3 (line 58) | def test_inches_to_kilometers_variation_3(self): method test_meter_to_kilometer (line 67) | def test_meter_to_kilometer(self): method test_meter_to_kilometer_variation (line 76) | def test_meter_to_kilometer_variation(self): method test_temperature_celsius_to_fahrenheit (line 85) | def test_temperature_celsius_to_fahrenheit(self): method test_negative_temperature_celsius_to_fahrenheit (line 94) | def test_negative_temperature_celsius_to_fahrenheit(self): method test_time_two_hours_to_seconds (line 103) | def test_time_two_hours_to_seconds(self): method test_pattern_x_unit_to_y_unit (line 112) | def test_pattern_x_unit_to_y_unit(self): method test_pattern_x_unit_is_how_many_y_unit (line 121) | def test_pattern_x_unit_is_how_many_y_unit(self): FILE: tests/storage/test_mongo_adapter.py class MongoAdapterTestCase (line 6) | class MongoAdapterTestCase(TestCase): method setUpClass (line 9) | def setUpClass(cls): method tearDownClass (line 39) | def tearDownClass(cls): method setUp (line 46) | def setUp(self): method tearDown (line 53) | def tearDown(self): class MongoDatabaseAdapterTestCase (line 60) | class MongoDatabaseAdapterTestCase(MongoAdapterTestCase): method test_count_returns_zero (line 62) | def test_count_returns_zero(self): method test_count_returns_value (line 69) | def test_count_returns_value(self): method test_mongodb_client_kwargs_parameter (line 77) | def test_mongodb_client_kwargs_parameter(self): method test_filter_text_statement_not_found (line 98) | def test_filter_text_statement_not_found(self): method test_filter_text_statement_found (line 106) | def test_filter_text_statement_found(self): method test_update_adds_new_statement (line 117) | def test_update_adds_new_statement(self): method test_update_modifies_existing_statement (line 125) | def test_update_modifies_existing_statement(self): method test_get_random_returns_statement (line 146) | def test_get_random_returns_statement(self): method test_get_random_no_data (line 153) | def test_get_random_no_data(self): method test_mongo_to_object (line 159) | def test_mongo_to_object(self): method test_remove (line 170) | def test_remove(self): method test_remove_response (line 178) | def test_remove_response(self): class MongoAdapterFilterTestCase (line 187) | class MongoAdapterFilterTestCase(MongoAdapterTestCase): method test_filter_text_no_matches (line 189) | def test_filter_text_no_matches(self): method test_filter_in_response_to_no_matches (line 198) | def test_filter_in_response_to_no_matches(self): method test_filter_equal_results (line 207) | def test_filter_equal_results(self): method test_filter_no_parameters (line 229) | def test_filter_no_parameters(self): method test_filter_in_response_to (line 241) | def test_filter_in_response_to(self): method test_filter_by_tag (line 255) | def test_filter_by_tag(self): method test_filter_by_tags (line 268) | def test_filter_by_tags(self): method test_filter_page_size (line 283) | def test_filter_page_size(self): method test_exclude_text (line 297) | def test_exclude_text(self): method test_exclude_text_words (line 310) | def test_exclude_text_words(self): method test_persona_not_startswith (line 324) | def test_persona_not_startswith(self): method test_search_text_contains (line 335) | def test_search_text_contains(self): method test_search_text_contains_multiple_matches (line 346) | def test_search_text_contains_multiple_matches(self): class MongoOrderingTestCase (line 357) | class MongoOrderingTestCase(MongoAdapterTestCase): method test_order_by_text (line 362) | def test_order_by_text(self): method test_order_by_created_at (line 375) | def test_order_by_created_at(self): class StorageAdapterCreateTestCase (line 400) | class StorageAdapterCreateTestCase(MongoAdapterTestCase): method test_create_text (line 405) | def test_create_text(self): method test_create_search_text (line 413) | def test_create_search_text(self): method test_create_search_in_response_to (line 424) | def test_create_search_in_response_to(self): method test_create_tags (line 435) | def test_create_tags(self): method test_create_duplicate_tags (line 444) | def test_create_duplicate_tags(self): method test_create_many_text (line 457) | def test_create_many_text(self): method test_create_many_search_text (line 469) | def test_create_many_search_text(self): method test_create_many_search_in_response_to (line 481) | def test_create_many_search_in_response_to(self): method test_create_many_tags (line 494) | def test_create_many_tags(self): method test_create_many_duplicate_tags (line 507) | def test_create_many_duplicate_tags(self): class StorageAdapterUpdateTestCase (line 523) | class StorageAdapterUpdateTestCase(MongoAdapterTestCase): method test_update_adds_tags (line 528) | def test_update_adds_tags(self): method test_update_duplicate_tags (line 539) | def test_update_duplicate_tags(self): FILE: tests/storage/test_redis_adapter.py class RedisStorageAdapterTestCase (line 12) | class RedisStorageAdapterTestCase(TestCase): method setUpClass (line 15) | def setUpClass(cls): method tearDown (line 28) | def tearDown(self): class RedisStorageAdapterTests (line 35) | class RedisStorageAdapterTests(RedisStorageAdapterTestCase): method test_count_returns_zero (line 37) | def test_count_returns_zero(self): method test_count_returns_value (line 44) | def test_count_returns_value(self): method test_filter_text_statement_not_found (line 52) | def test_filter_text_statement_not_found(self): method test_filter_text_statement_found (line 60) | def test_filter_text_statement_found(self): method test_update_adds_new_statement (line 73) | def test_update_adds_new_statement(self): method test_update_modifies_existing_statement (line 81) | def test_update_modifies_existing_statement(self): method test_get_random_returns_statement (line 102) | def test_get_random_returns_statement(self): method test_get_random_no_data (line 108) | def test_get_random_no_data(self): method test_remove (line 114) | def test_remove(self): class RedisStorageAdapterFilterTests (line 125) | class RedisStorageAdapterFilterTests(RedisStorageAdapterTestCase): method test_filter_text_no_matches (line 127) | def test_filter_text_no_matches(self): method test_filter_in_response_to_no_matches (line 137) | def test_filter_in_response_to_no_matches(self): method test_filter_equal_results (line 147) | def test_filter_equal_results(self): method test_filter_no_parameters (line 169) | def test_filter_no_parameters(self): method test_filter_by_tag (line 181) | def test_filter_by_tag(self): method test_filter_by_tags (line 194) | def test_filter_by_tags(self): method test_filter_page_size (line 209) | def test_filter_page_size(self): method test_exclude_text (line 224) | def test_exclude_text(self): method test_exclude_text_words (line 237) | def test_exclude_text_words(self): method test_persona_not_startswith (line 251) | def test_persona_not_startswith(self): method test_search_in_response_to_contains (line 262) | def test_search_in_response_to_contains(self): method test_search_in_response_to_contains_multiple_matches (line 275) | def test_search_in_response_to_contains_multiple_matches(self): class RedisOrderingTests (line 286) | class RedisOrderingTests(RedisStorageAdapterTestCase): method test_order_by_text (line 291) | def test_order_by_text(self): method test_order_by_created_at (line 304) | def test_order_by_created_at(self): class StorageAdapterCreateTests (line 329) | class StorageAdapterCreateTests(RedisStorageAdapterTestCase): method test_create_text (line 334) | def test_create_text(self): method test_create_tags (line 342) | def test_create_tags(self): method test_create_duplicate_tags (line 351) | def test_create_duplicate_tags(self): method test_create_many_text (line 364) | def test_create_many_text(self): method test_create_many_tags (line 377) | def test_create_many_tags(self): method test_create_many_duplicate_tags (line 398) | def test_create_many_duplicate_tags(self): class StorageAdapterUpdateTests (line 414) | class StorageAdapterUpdateTests(RedisStorageAdapterTestCase): method test_update_adds_tags (line 419) | def test_update_adds_tags(self): method test_update_duplicate_tags (line 430) | def test_update_duplicate_tags(self): FILE: tests/storage/test_sql_adapter.py class SQLStorageAdapterTestCase (line 6) | class SQLStorageAdapterTestCase(TestCase): method setUpClass (line 9) | def setUpClass(cls): method tearDownClass (line 16) | def tearDownClass(cls): method tearDown (line 22) | def tearDown(self): class SQLStorageAdapterTests (line 29) | class SQLStorageAdapterTests(SQLStorageAdapterTestCase): method test_set_database_uri_none (line 31) | def test_set_database_uri_none(self): method test_set_database_uri (line 36) | def test_set_database_uri(self): method test_count_returns_zero (line 41) | def test_count_returns_zero(self): method test_count_returns_value (line 48) | def test_count_returns_value(self): method test_filter_text_statement_not_found (line 56) | def test_filter_text_statement_not_found(self): method test_filter_text_statement_found (line 64) | def test_filter_text_statement_found(self): method test_update_adds_new_statement (line 76) | def test_update_adds_new_statement(self): method test_update_modifies_existing_statement (line 84) | def test_update_modifies_existing_statement(self): method test_get_random_returns_statement (line 104) | def test_get_random_returns_statement(self): method test_get_random_no_data (line 110) | def test_get_random_no_data(self): method test_remove (line 116) | def test_remove(self): class SQLStorageAdapterFilterTests (line 125) | class SQLStorageAdapterFilterTests(SQLStorageAdapterTestCase): method test_filter_text_no_matches (line 127) | def test_filter_text_no_matches(self): method test_filter_in_response_to_no_matches (line 136) | def test_filter_in_response_to_no_matches(self): method test_filter_equal_results (line 146) | def test_filter_equal_results(self): method test_filter_no_parameters (line 168) | def test_filter_no_parameters(self): method test_filter_by_tag (line 180) | def test_filter_by_tag(self): method test_filter_by_tags (line 193) | def test_filter_by_tags(self): method test_filter_page_size (line 208) | def test_filter_page_size(self): method test_exclude_text (line 222) | def test_exclude_text(self): method test_exclude_text_words (line 235) | def test_exclude_text_words(self): method test_persona_not_startswith (line 249) | def test_persona_not_startswith(self): method test_search_text_contains (line 260) | def test_search_text_contains(self): method test_search_text_contains_multiple_matches (line 271) | def test_search_text_contains_multiple_matches(self): class SQLOrderingTests (line 282) | class SQLOrderingTests(SQLStorageAdapterTestCase): method test_order_by_text (line 287) | def test_order_by_text(self): method test_order_by_created_at (line 300) | def test_order_by_created_at(self): class StorageAdapterCreateTests (line 325) | class StorageAdapterCreateTests(SQLStorageAdapterTestCase): method test_create_text (line 330) | def test_create_text(self): method test_create_search_text (line 338) | def test_create_search_text(self): method test_create_search_in_response_to (line 349) | def test_create_search_in_response_to(self): method test_create_tags (line 360) | def test_create_tags(self): method test_create_duplicate_tags (line 369) | def test_create_duplicate_tags(self): method test_create_many_text (line 382) | def test_create_many_text(self): method test_create_many_search_text (line 394) | def test_create_many_search_text(self): method test_create_many_search_in_response_to (line 406) | def test_create_many_search_in_response_to(self): method test_create_many_tags (line 419) | def test_create_many_tags(self): method test_create_many_duplicate_tags (line 432) | def test_create_many_duplicate_tags(self): class StorageAdapterUpdateTests (line 448) | class StorageAdapterUpdateTests(SQLStorageAdapterTestCase): method test_update_adds_tags (line 453) | def test_update_adds_tags(self): method test_update_duplicate_tags (line 464) | def test_update_duplicate_tags(self): FILE: tests/storage/test_storage_adapter.py class StorageAdapterTestCase (line 5) | class StorageAdapterTestCase(TestCase): method setUpClass (line 14) | def setUpClass(cls): method test_count (line 17) | def test_count(self): method test_filter (line 21) | def test_filter(self): method test_remove (line 25) | def test_remove(self): method test_create (line 29) | def test_create(self): method test_create_many (line 33) | def test_create_many(self): method test_update (line 37) | def test_update(self): method test_get_random (line 41) | def test_get_random(self): method test_drop (line 45) | def test_drop(self): method test_get_model_invalid (line 49) | def test_get_model_invalid(self): method test_get_object_invalid (line 53) | def test_get_object_invalid(self): FILE: tests/test_adapter_validation.py class AdapterValidationTests (line 6) | class AdapterValidationTests(ChatBotTestCase): method test_invalid_storage_adapter (line 8) | def test_invalid_storage_adapter(self): method test_valid_storage_adapter (line 14) | def test_valid_storage_adapter(self): method test_invalid_logic_adapter (line 22) | def test_invalid_logic_adapter(self): method test_valid_logic_adapter (line 28) | def test_valid_logic_adapter(self): method test_valid_adapter_dictionary (line 36) | def test_valid_adapter_dictionary(self): method test_invalid_adapter_dictionary (line 46) | def test_invalid_adapter_dictionary(self): FILE: tests/test_benchmarks.py function get_list_trainer (line 37) | def get_list_trainer(chatbot): function get_chatterbot_corpus_trainer (line 44) | def get_chatterbot_corpus_trainer(chatbot): function get_ubuntu_corpus_trainer (line 51) | def get_ubuntu_corpus_trainer(chatbot): class BenchmarkingMixin (line 58) | class BenchmarkingMixin(object): method assert_response_duration_is_less_than (line 60) | def assert_response_duration_is_less_than(self, maximum_duration, stri... class SqlBenchmarkingTests (line 86) | class SqlBenchmarkingTests(BenchmarkingMixin, ChatBotSQLTestCase): method get_kwargs (line 91) | def get_kwargs(self): method test_levenshtein_distance_comparisons (line 96) | def test_levenshtein_distance_comparisons(self): method test_spacy_similarity_comparisons (line 111) | def test_spacy_similarity_comparisons(self): method test_get_response_after_chatterbot_corpus_training (line 126) | def test_get_response_after_chatterbot_corpus_training(self): method test_get_response_after_ubuntu_corpus_training (line 136) | def test_get_response_after_ubuntu_corpus_training(self): class MongoBenchmarkingTests (line 146) | class MongoBenchmarkingTests(BenchmarkingMixin, ChatBotMongoTestCase): method get_kwargs (line 151) | def get_kwargs(self): method test_levenshtein_distance_comparisons (line 156) | def test_levenshtein_distance_comparisons(self): method test_spacy_similarity_comparisons (line 171) | def test_spacy_similarity_comparisons(self): method test_get_response_after_chatterbot_corpus_training (line 186) | def test_get_response_after_chatterbot_corpus_training(self): method test_get_response_after_ubuntu_corpus_training (line 196) | def test_get_response_after_ubuntu_corpus_training(self): FILE: tests/test_chatbot.py class ChatBotInitializationTestCase (line 8) | class ChatBotInitializationTestCase(ChatBotTestCase): method test_initialization_with_unmapped_spacy_model (line 13) | def test_initialization_with_unmapped_spacy_model(self): method test_initialization_with_missing_spacy_model (line 29) | def test_initialization_with_missing_spacy_model(self): class ChatterBotResponseTestCase (line 49) | class ChatterBotResponseTestCase(ChatBotTestCase): method test_conversation_values_persisted_to_response (line 51) | def test_conversation_values_persisted_to_response(self): method test_tag_values_persisted_to_response (line 57) | def test_tag_values_persisted_to_response(self): method test_in_response_to_provided (line 68) | def test_in_response_to_provided(self): method test_no_statements_known (line 83) | def test_no_statements_known(self): method test_one_statement_known_no_response (line 99) | def test_one_statement_known_no_response(self): method test_one_statement_one_response_known (line 111) | def test_one_statement_one_response_known(self): method test_two_statements_one_response_known (line 123) | def test_two_statements_one_response_known(self): method test_three_statements_two_responses_known (line 136) | def test_three_statements_two_responses_known(self): method test_four_statements_three_responses_known (line 153) | def test_four_statements_three_responses_known(self): method test_second_response_unknown (line 167) | def test_second_response_unknown(self): method test_statement_added_to_conversation (line 193) | def test_statement_added_to_conversation(self): method test_get_response_additional_response_selection_parameters (line 203) | def test_get_response_additional_response_selection_parameters(self): method test_get_response_unicode (line 222) | def test_get_response_unicode(self): method test_get_response_emoji (line 229) | def test_get_response_emoji(self): method test_get_response_non_whitespace (line 236) | def test_get_response_non_whitespace(self): method test_get_response_two_byte_characters (line 243) | def test_get_response_two_byte_characters(self): method test_get_response_corrupted_text (line 250) | def test_get_response_corrupted_text(self): method test_response_with_tags_added (line 257) | def test_response_with_tags_added(self): method test_response_preserves_tags (line 273) | def test_response_preserves_tags(self): method test_get_response_with_text_and_kwargs (line 283) | def test_get_response_with_text_and_kwargs(self): method test_get_response_missing_text (line 291) | def test_get_response_missing_text(self): method test_get_response_missing_text_with_conversation (line 295) | def test_get_response_missing_text_with_conversation(self): method test_generate_response (line 299) | def test_generate_response(self): method test_learn_response (line 306) | def test_learn_response(self): method test_get_response_does_not_add_new_statement (line 314) | def test_get_response_does_not_add_new_statement(self): method test_get_latest_response_from_zero_responses (line 324) | def test_get_latest_response_from_zero_responses(self): method test_get_latest_response_from_one_responses (line 329) | def test_get_latest_response_from_one_responses(self): method test_get_latest_response_from_two_responses (line 337) | def test_get_latest_response_from_two_responses(self): method test_get_latest_response_from_three_responses (line 346) | def test_get_latest_response_from_three_responses(self): method test_search_text_results_after_training (line 356) | def test_search_text_results_after_training(self): class TestAdapterA (line 378) | class TestAdapterA(LogicAdapter): method process (line 380) | def process(self, statement, additional_response_selection_parameters=... class TestAdapterB (line 386) | class TestAdapterB(LogicAdapter): method process (line 388) | def process(self, statement, additional_response_selection_parameters=... class TestAdapterC (line 394) | class TestAdapterC(LogicAdapter): method process (line 396) | def process(self, statement, additional_response_selection_parameters=... class ChatBotLogicAdapterTestCase (line 402) | class ChatBotLogicAdapterTestCase(ChatBotTestCase): method test_sub_adapter_agreement (line 404) | def test_sub_adapter_agreement(self): method test_chatbot_set_for_all_logic_adapters (line 421) | def test_chatbot_set_for_all_logic_adapters(self): method test_response_persona_is_bot (line 429) | def test_response_persona_is_bot(self): FILE: tests/test_cli.py class CommandLineInterfaceTests (line 5) | class CommandLineInterfaceTests(TestCase): method test_get_chatterbot_version (line 10) | def test_get_chatterbot_version(self): FILE: tests/test_comparisons.py class LevenshteinDistanceTestCase (line 11) | class LevenshteinDistanceTestCase(TestCase): method setUp (line 13) | def setUp(self): method test_levenshtein_distance_statement_false (line 20) | def test_levenshtein_distance_statement_false(self): method test_levenshtein_distance_other_statement_false (line 31) | def test_levenshtein_distance_other_statement_false(self): method test_levenshtein_distance_statement_integer (line 42) | def test_levenshtein_distance_statement_integer(self): method test_exact_match_different_capitalization (line 54) | def test_exact_match_different_capitalization(self): class SpacySimilarityTests (line 66) | class SpacySimilarityTests(TestCase): method setUp (line 68) | def setUp(self): method test_exact_match_different_stopwords (line 76) | def test_exact_match_different_stopwords(self): method test_exact_match_different_capitalization (line 87) | def test_exact_match_different_capitalization(self): class JaccardSimilarityTestCase (line 99) | class JaccardSimilarityTestCase(TestCase): method setUp (line 101) | def setUp(self): method test_exact_match_different_capitalization (line 108) | def test_exact_match_different_capitalization(self): FILE: tests/test_conversations.py class StatementTests (line 7) | class StatementTests(TestCase): method setUp (line 9) | def setUp(self): method test_serializer (line 12) | def test_serializer(self): class DefaultConversationTestCase (line 17) | class DefaultConversationTestCase(ChatBotTestCase): method test_default_conversation_is_set (line 23) | def test_default_conversation_is_set(self): method test_default_conversation_is_unique_per_instance (line 33) | def test_default_conversation_is_unique_per_instance(self): method test_response_gets_default_conversation (line 49) | def test_response_gets_default_conversation(self): method test_explicit_conversation_overrides_default (line 57) | def test_explicit_conversation_overrides_default(self): method test_statement_object_conversation_overrides_default (line 65) | def test_statement_object_conversation_overrides_default(self): method test_empty_conversation_gets_default (line 74) | def test_empty_conversation_gets_default(self): method test_statements_saved_with_default_conversation (line 86) | def test_statements_saved_with_default_conversation(self): method test_conversation_history_accumulates (line 98) | def test_conversation_history_accumulates(self): FILE: tests/test_corpus.py class CorpusLoadingTestCase (line 7) | class CorpusLoadingTestCase(TestCase): method test_load_corpus_chinese (line 9) | def test_load_corpus_chinese(self): method test_load_corpus_english (line 15) | def test_load_corpus_english(self): method test_load_corpus_english_greetings (line 21) | def test_load_corpus_english_greetings(self): method test_load_corpus_english_categories (line 33) | def test_load_corpus_english_categories(self): method test_load_corpus_french (line 43) | def test_load_corpus_french(self): method test_load_corpus_german (line 49) | def test_load_corpus_german(self): method test_load_corpus_hindi (line 55) | def test_load_corpus_hindi(self): method test_load_corpus_indonesian (line 61) | def test_load_corpus_indonesian(self): method test_load_corpus_italian (line 67) | def test_load_corpus_italian(self): method test_load_corpus_marathi (line 73) | def test_load_corpus_marathi(self): method test_load_corpus_portuguese (line 79) | def test_load_corpus_portuguese(self): method test_load_corpus_russian (line 85) | def test_load_corpus_russian(self): method test_load_corpus_spanish (line 91) | def test_load_corpus_spanish(self): method test_load_corpus_telugu (line 97) | def test_load_corpus_telugu(self): class CorpusUtilsTestCase (line 104) | class CorpusUtilsTestCase(TestCase): method test_get_file_path (line 106) | def test_get_file_path(self): method test_read_english_corpus (line 116) | def test_read_english_corpus(self): method test_list_english_corpus_files (line 124) | def test_list_english_corpus_files(self): method test_load_corpus (line 130) | def test_load_corpus(self): class CorpusFilePathTestCase (line 140) | class CorpusFilePathTestCase(TestCase): method test_load_corpus_file (line 142) | def test_load_corpus_file(self): method test_load_corpus_file_non_existent (line 169) | def test_load_corpus_file_non_existent(self): method test_load_corpus_english_greetings (line 179) | def test_load_corpus_english_greetings(self): method test_load_corpus_english (line 186) | def test_load_corpus_english(self): method test_load_corpus_english_trailing_slash (line 193) | def test_load_corpus_english_trailing_slash(self): FILE: tests/test_examples.py class ExamplesSmokeTestCase (line 4) | class ExamplesSmokeTestCase(TestCase): method test_basic_example (line 10) | def test_basic_example(self): method test_convert_units (line 13) | def test_convert_units(self): method test_default_response_example (line 16) | def test_default_response_example(self): method test_export_example (line 19) | def test_export_example(self): method test_learning_feedback_example (line 24) | def test_learning_feedback_example(self): method test_math_and_time (line 31) | def test_math_and_time(self): method test_memory_sql_example (line 34) | def test_memory_sql_example(self): method test_specific_response_example (line 37) | def test_specific_response_example(self): method test_tagged_dataset_example (line 40) | def test_tagged_dataset_example(self): method test_terminal_example (line 43) | def test_terminal_example(self): method test_terminal_mongo_example (line 50) | def test_terminal_mongo_example(self): method test_tkinter_gui (line 57) | def test_tkinter_gui(self): method test_training_example_chatterbot_corpus (line 63) | def test_training_example_chatterbot_corpus(self): method test_training_example_list_data (line 66) | def test_training_example_list_data(self): method test_training_example_ubuntu_corpus (line 69) | def test_training_example_ubuntu_corpus(self): FILE: tests/test_filters.py class RepetitiveResponseFilterTestCase (line 5) | class RepetitiveResponseFilterTestCase(ChatBotMongoTestCase): method test_filter_selection (line 10) | def test_filter_selection(self): FILE: tests/test_initialization.py class StringInitializationTestCase (line 4) | class StringInitializationTestCase(ChatBotTestCase): method get_kwargs (line 6) | def get_kwargs(self): method test_storage_initialized (line 12) | def test_storage_initialized(self): method test_logic_initialized (line 16) | def test_logic_initialized(self): class DictionaryInitializationTestCase (line 22) | class DictionaryInitializationTestCase(ChatBotTestCase): method get_kwargs (line 24) | def get_kwargs(self): method test_storage_initialized (line 40) | def test_storage_initialized(self): method test_logic_initialized (line 44) | def test_logic_initialized(self): FILE: tests/test_languages.py class LanguageClassTests (line 6) | class LanguageClassTests(TestCase): method test_classes_have_correct_attributes (line 8) | def test_classes_have_correct_attributes(self): FILE: tests/test_parsing.py class DateTimeParsingFunctionIntegrationTestCases (line 6) | class DateTimeParsingFunctionIntegrationTestCases(TestCase): method setUp (line 14) | def setUp(self): method test_captured_pattern_is_on_date (line 18) | def test_captured_pattern_is_on_date(self): method test_captured_pattern_this_weekday (line 25) | def test_captured_pattern_this_weekday(self): method test_captured_pattern_last_weekday (line 35) | def test_captured_pattern_last_weekday(self): method test_captured_pattern_next_weekday (line 45) | def test_captured_pattern_next_weekday(self): method test_captured_pattern_minutes_from_now (line 55) | def test_captured_pattern_minutes_from_now(self): method test_captured_pattern_days_later (line 67) | def test_captured_pattern_days_later(self): method test_captured_pattern_year (line 77) | def test_captured_pattern_year(self): method test_captured_pattern_today (line 84) | def test_captured_pattern_today(self): method test_captured_pattern_tomorrow (line 91) | def test_captured_pattern_tomorrow(self): method test_captured_pattern_yesterday (line 101) | def test_captured_pattern_yesterday(self): method test_captured_pattern_before_yesterday (line 111) | def test_captured_pattern_before_yesterday(self): method test_captured_pattern_before_today (line 121) | def test_captured_pattern_before_today(self): method test_captured_pattern_before_tomorrow (line 131) | def test_captured_pattern_before_tomorrow(self): method test_captured_pattern_two_days (line 150) | def test_captured_pattern_two_days(self): method test_captured_pattern_first_quarter_of_year (line 165) | def test_captured_pattern_first_quarter_of_year(self): method test_captured_pattern_last_quarter_of_year (line 173) | def test_captured_pattern_last_quarter_of_year(self): method test_captured_pattern_is_next_three_weeks (line 181) | def test_captured_pattern_is_next_three_weeks(self): method test_captured_pattern_is_next_x_weeks_case_insensitive (line 191) | def test_captured_pattern_is_next_x_weeks_case_insensitive(self): method test_captured_pattern_is_next_eight_days (line 201) | def test_captured_pattern_is_next_eight_days(self): method test_captured_pattern_is_next_x_days_case_insensitive (line 211) | def test_captured_pattern_is_next_x_days_case_insensitive(self): method test_captured_pattern_is_next_ten_years (line 221) | def test_captured_pattern_is_next_ten_years(self): method test_captured_pattern_is_next_x_years_case_insensitive (line 231) | def test_captured_pattern_is_next_x_years_case_insensitive(self): method test_captured_pattern_is_next_eleven_months (line 241) | def test_captured_pattern_is_next_eleven_months(self): method test_captured_pattern_is_next_x_months_case_insensitive (line 256) | def test_captured_pattern_is_next_x_months_case_insensitive(self): method test_captured_pattern_is_on_day (line 271) | def test_captured_pattern_is_on_day(self): method test_captured_pattern_is_on_day_of_year_variation1 (line 279) | def test_captured_pattern_is_on_day_of_year_variation1(self): method test_captured_pattern_is_on_day_of_year_variation2 (line 286) | def test_captured_pattern_is_on_day_of_year_variation2(self): method test_captured_pattern_has_am (line 293) | def test_captured_pattern_has_am(self): method test_captured_pattern_has_am_case_insensitive_1 (line 301) | def test_captured_pattern_has_am_case_insensitive_1(self): method test_captured_pattern_has_am_case_insensitive_2 (line 309) | def test_captured_pattern_has_am_case_insensitive_2(self): method test_captured_pattern_has_am_case_insensitive_3 (line 317) | def test_captured_pattern_has_am_case_insensitive_3(self): method test_captured_pattern_has_pm (line 325) | def test_captured_pattern_has_pm(self): method test_captured_pattern_has_pm_case_insensitive_1 (line 333) | def test_captured_pattern_has_pm_case_insensitive_1(self): method test_captured_pattern_has_pm_case_insensitive_2 (line 341) | def test_captured_pattern_has_pm_case_insensitive_2(self): method test_captured_pattern_has_pm_case_insensitive_3 (line 349) | def test_captured_pattern_has_pm_case_insensitive_3(self): class DateTimeParsingTestCases (line 358) | class DateTimeParsingTestCases(TestCase): method test_next_week_day (line 363) | def test_next_week_day(self): method test_previous_week_day (line 370) | def test_previous_week_day(self): method test_this_week_day_before_day (line 377) | def test_this_week_day_before_day(self): method test_this_week_day_after_day (line 384) | def test_this_week_day_after_day(self): method test_today_at_time_uses_base_date (line 391) | def test_today_at_time_uses_base_date(self): method test_next_month_from_january_31st (line 410) | def test_next_month_from_january_31st(self): method test_next_3_months_crosses_year_boundary (line 424) | def test_next_3_months_crosses_year_boundary(self): method test_next_month_from_march_31st (line 437) | def test_next_month_from_march_31st(self): method test_next_month_from_may_31st (line 451) | def test_next_month_from_may_31st(self): method test_multiple_datetime_expressions (line 465) | def test_multiple_datetime_expressions(self): method test_duration_from_yesterday (line 485) | def test_duration_from_yesterday(self): method test_duration_from_tomorrow (line 499) | def test_duration_from_tomorrow(self): method test_duration_from_today (line 513) | def test_duration_from_today(self): method test_noon_without_convention (line 527) | def test_noon_without_convention(self): method test_twelve_pm (line 540) | def test_twelve_pm(self): method test_twelve_am (line 552) | def test_twelve_am(self): method test_one_am (line 564) | def test_one_am(self): method test_one_pm (line 576) | def test_one_pm(self): FILE: tests/test_preprocessors.py class PreprocessorIntegrationTestCase (line 6) | class PreprocessorIntegrationTestCase(ChatBotTestCase): method test_clean_whitespace (line 11) | def test_clean_whitespace(self): class CleanWhitespacePreprocessorTestCase (line 18) | class CleanWhitespacePreprocessorTestCase(ChatBotTestCase): method test_clean_whitespace (line 23) | def test_clean_whitespace(self): method test_leading_or_trailing_whitespace_removed (line 30) | def test_leading_or_trailing_whitespace_removed(self): method test_consecutive_spaces_removed (line 37) | def test_consecutive_spaces_removed(self): class HTMLUnescapePreprocessorTestCase (line 45) | class HTMLUnescapePreprocessorTestCase(ChatBotTestCase): method test_html_unescape (line 50) | def test_html_unescape(self): class ConvertToASCIIPreprocessorTestCase (line 70) | class ConvertToASCIIPreprocessorTestCase(ChatBotTestCase): method test_convert_to_ascii (line 75) | def test_convert_to_ascii(self): FILE: tests/test_response_selection.py class ResponseSelectionTests (line 6) | class ResponseSelectionTests(ChatBotSQLTestCase): method test_get_most_frequent_response (line 8) | def test_get_most_frequent_response(self): method test_get_first_response (line 35) | def test_get_first_response(self): method test_get_random_response (line 46) | def test_get_random_response(self): FILE: tests/test_search.py class SearchTestCase (line 7) | class SearchTestCase(ChatBotTestCase): method setUp (line 9) | def setUp(self): method test_search_no_results (line 13) | def test_search_no_results(self): method test_search_cast_to_list_no_results (line 22) | def test_search_cast_to_list_no_results(self): method test_search_additional_parameters (line 33) | def test_search_additional_parameters(self): class IndexedTextSearchComparisonFunctionSpacySimilarityTests (line 53) | class IndexedTextSearchComparisonFunctionSpacySimilarityTests(ChatBotTes... method setUp (line 59) | def setUp(self): method test_get_closest_statement (line 66) | def test_get_closest_statement(self): method test_different_punctuation (line 85) | def test_different_punctuation(self): class IndexedTextSearchComparisonFunctionLevenshteinDistanceComparisonTests (line 100) | class IndexedTextSearchComparisonFunctionLevenshteinDistanceComparisonTe... method setUp (line 106) | def setUp(self): method test_get_closest_statement (line 113) | def test_get_closest_statement(self): method test_confidence_exact_match (line 134) | def test_confidence_exact_match(self): method test_confidence_half_match (line 143) | def test_confidence_half_match(self): method test_confidence_no_match (line 157) | def test_confidence_no_match(self): class TextSearchComparisonFunctionSpacySimilarityTests (line 171) | class TextSearchComparisonFunctionSpacySimilarityTests(ChatBotTestCase): method setUp (line 177) | def setUp(self): method test_get_closest_statement (line 184) | def test_get_closest_statement(self): method test_different_punctuation (line 203) | def test_different_punctuation(self): class TextSearchComparisonFunctionLevenshteinDistanceComparisonTests (line 218) | class TextSearchComparisonFunctionLevenshteinDistanceComparisonTests(Cha... method setUp (line 224) | def setUp(self): method test_get_closest_statement (line 231) | def test_get_closest_statement(self): method test_confidence_exact_match (line 252) | def test_confidence_exact_match(self): method test_confidence_half_match (line 261) | def test_confidence_half_match(self): method test_confidence_no_match (line 275) | def test_confidence_no_match(self): FILE: tests/test_tagging.py class PosLemmaTaggerTests (line 6) | class PosLemmaTaggerTests(TestCase): method setUp (line 8) | def setUp(self): method test_empty_string (line 11) | def test_empty_string(self): method test_tagging (line 18) | def test_tagging(self): method test_tagging_english (line 25) | def test_tagging_english(self): method test_tagging_german (line 36) | def test_tagging_german(self): method test_string_becomes_lowercase (line 47) | def test_string_becomes_lowercase(self): method test_tagging_medium_sized_words (line 52) | def test_tagging_medium_sized_words(self): method test_tagging_long_words (line 57) | def test_tagging_long_words(self): method test_get_text_index_string_punctuation_only (line 62) | def test_get_text_index_string_punctuation_only(self): method test_get_text_index_string_single_character (line 69) | def test_get_text_index_string_single_character(self): method test_get_text_index_string_single_character_punctuated (line 76) | def test_get_text_index_string_single_character_punctuated(self): method test_get_text_index_string_two_characters (line 83) | def test_get_text_index_string_two_characters(self): method test_get_text_index_string_three_characters (line 90) | def test_get_text_index_string_three_characters(self): method test_get_text_index_string_four_characters (line 97) | def test_get_text_index_string_four_characters(self): method test_get_text_index_string_five_characters (line 104) | def test_get_text_index_string_five_characters(self): method test_get_text_index_string_single_word (line 111) | def test_get_text_index_string_single_word(self): method test_get_text_index_string_multiple_words (line 118) | def test_get_text_index_string_multiple_words(self): method test_get_text_index_string_single_character_words (line 125) | def test_get_text_index_string_single_character_words(self): method test_get_text_index_string_two_character_words (line 132) | def test_get_text_index_string_two_character_words(self): class LowercaseTaggerTests (line 140) | class LowercaseTaggerTests(TestCase): method setUp (line 142) | def setUp(self): method test_lowercase_tagger (line 145) | def test_lowercase_tagger(self): FILE: tests/test_turing.py class TuringTests (line 4) | class TuringTests(TestCase): method setUp (line 6) | def setUp(self): method test_ask_name (line 12) | def test_ask_name(self): method test_repeat_information (line 19) | def test_repeat_information(self): method test_repeat_input (line 26) | def test_repeat_input(self): method test_contradicting_responses (line 33) | def test_contradicting_responses(self): method test_mathematical_ability (line 40) | def test_mathematical_ability(self): method test_response_time (line 51) | def test_response_time(self): FILE: tests/test_utils.py class UtilityTests (line 6) | class UtilityTests(TestCase): method test_import_module (line 8) | def test_import_module(self): class UtilityChatBotTestCase (line 13) | class UtilityChatBotTestCase(ChatBotTestCase): method test_get_response_time (line 15) | def test_get_response_time(self): FILE: tests/training/test_chatterbot_corpus_training.py class ChatterBotCorpusTrainingTestCase (line 5) | class ChatterBotCorpusTrainingTestCase(ChatBotTestCase): method setUp (line 12) | def setUp(self): method test_train_with_english_greeting_corpus (line 19) | def test_train_with_english_greeting_corpus(self): method test_train_with_english_greeting_corpus_search_text (line 26) | def test_train_with_english_greeting_corpus_search_text(self): method test_train_with_english_greeting_corpus_search_in_response_to (line 34) | def test_train_with_english_greeting_corpus_search_in_response_to(self): method test_train_with_english_greeting_corpus_tags (line 42) | def test_train_with_english_greeting_corpus_tags(self): method test_train_with_multiple_corpora (line 51) | def test_train_with_multiple_corpora(self): method test_train_with_english_corpus (line 60) | def test_train_with_english_corpus(self): FILE: tests/training/test_csv_file_training.py class CsvFileTrainerTestCase (line 6) | class CsvFileTrainerTestCase(ChatBotTestCase): method setUp (line 11) | def setUp(self): method test_train (line 32) | def test_train(self): method test_train_sets_search_text (line 41) | def test_train_sets_search_text(self): method test_train_sets_search_in_response_to (line 52) | def test_train_sets_search_in_response_to(self): FILE: tests/training/test_json_file_training.py class JsonFileTrainerTestCase (line 6) | class JsonFileTrainerTestCase(ChatBotTestCase): method setUp (line 11) | def setUp(self): method test_train (line 32) | def test_train(self): method test_train_sets_search_text (line 41) | def test_train_sets_search_text(self): method test_train_sets_search_in_response_to (line 52) | def test_train_sets_search_in_response_to(self): FILE: tests/training/test_list_training.py class ListTrainingTests (line 6) | class ListTrainingTests(ChatBotTestCase): method setUp (line 8) | def setUp(self): method test_training_cleans_whitespace (line 15) | def test_training_cleans_whitespace(self): method test_training_adds_statements (line 33) | def test_training_adds_statements(self): method test_training_sets_in_response_to (line 57) | def test_training_sets_in_response_to(self): method test_training_sets_search_text (line 73) | def test_training_sets_search_text(self): method test_training_sets_search_in_response_to (line 89) | def test_training_sets_search_in_response_to(self): method test_database_has_correct_format (line 105) | def test_database_has_correct_format(self): method test_training_with_unicode_characters (line 139) | def test_training_with_unicode_characters(self): method test_training_with_emoji_characters (line 160) | def test_training_with_emoji_characters(self): method test_training_with_unicode_bytestring (line 176) | def test_training_with_unicode_bytestring(self): method test_similar_sentence_gets_same_response_multiple_times (line 192) | def test_similar_sentence_gets_same_response_multiple_times(self): method test_consecutive_trainings_same_responses_different_inputs (line 224) | def test_consecutive_trainings_same_responses_different_inputs(self): class ChatterBotResponseTests (line 238) | class ChatterBotResponseTests(ChatBotTestCase): method setUp (line 240) | def setUp(self): method test_answer_to_known_input (line 273) | def test_answer_to_known_input(self): method test_answer_close_to_known_input (line 283) | def test_answer_close_to_known_input(self): method test_match_has_no_response (line 290) | def test_match_has_no_response(self): method test_empty_input (line 300) | def test_empty_input(self): FILE: tests/training/test_training.py class TrainingTests (line 6) | class TrainingTests(ChatBotTestCase): method setUp (line 8) | def setUp(self): method test_trainer_not_set (line 13) | def test_trainer_not_set(self): method test_generate_export_data (line 17) | def test_generate_export_data(self): FILE: tests/training/test_ubuntu_corpus_training.py class UbuntuCorpusTrainerTestCase (line 10) | class UbuntuCorpusTrainerTestCase(ChatBotTestCase): method setUp (line 15) | def setUp(self): method tearDown (line 26) | def tearDown(self): method _get_data (line 31) | def _get_data(self): method _remove_data (line 49) | def _remove_data(self): method _create_test_corpus (line 58) | def _create_test_corpus(self, data): method _destroy_test_corpus (line 84) | def _destroy_test_corpus(self): method _mock_get_response (line 93) | def _mock_get_response(self, *args, **kwargs): method test_download (line 102) | def test_download(self): method test_download_file_exists (line 119) | def test_download_file_exists(self): method test_download_url_not_found (line 136) | def test_download_url_not_found(self): method test_extract (line 142) | def test_extract(self): method test_train (line 156) | def test_train(self): method test_train_sets_search_text (line 168) | def test_train_sets_search_text(self): method test_train_sets_search_in_response_to (line 182) | def test_train_sets_search_in_response_to(self): method test_is_extracted (line 196) | def test_is_extracted(self): method test_is_not_extracted (line 208) | def test_is_not_extracted(self):