Search results

  1. fukurou

    contact silojizms

    def initialize_babble2(self) -> None: # Adding phrase matchers for various patterns and responses to enhance conversation logic # Description self.add_phrase_matcher( r"(.*) is (.*)", "what is {0}", "{0} is {1}", "explain {0}", "{0} is {1}" ) #...
  2. fukurou

    contact silojizms

    - "Pomni has the code 1234." - "The code that belongs to Pomni is 1234." - "Pomni owns the code 1234." - "The code for Pomni is 1234."
  3. fukurou

    [MEDIA]

  4. fukurou

    [MEDIA]

  5. fukurou

    [MEDIA]

  6. fukurou

    👨‍💻 dev Eliza swift port

    class ElizaDBWrapper { // this (function wrapper) class adds save load functionality to the ElizaDeducer Object /* ElizaDeducer ed = new ElizaDeducerInitializer(2); ed.getEc2().addFromDB("test","one_two_three"); // manual load for testing Kokoro k = new Kokoro(new...
  7. fukurou

    👨‍💻 dev Eliza swift port

    class ElizaDeducerInitializer: ElizaDeducer { init(lim: Int) { // recommended lim = 5; it's the limit of responses per key in the eventchat dictionary // the purpose of the lim is to make saving and loading data easier super.init(lim: lim) initializeBabble2()...
  8. fukurou

    👨‍💻 dev Eliza swift port

    class ElizaDeducer { /* * this class populates a special chat dictionary * based on the matches added via its addPhraseMatcher function * see subclass ElizaDeducerInitializer for example: * ElizaDeducer ed = new ElizaDeducerInitializer(2); // 2 = limit of replies per input...
  9. fukurou

    👨‍💻 dev Eliza swift port

    class EventChatV2 { private var dic: [String: LimUniqueResponder] = [:] private var modifiedKeys: Set<String> = [] private let lim: Int // Constructor init(lim: Int) { self.lim = lim } func getModifiedKeys() -> Set<String> { return modifiedKeys }...
  10. fukurou

    👨‍💻 dev Eliza swift port

    class LimUniqueResponder { private var responses: [String] = [] private var urg: UniqueRandomGenerator private let lim: Int // Constructor init(lim: Int) { self.lim = lim self.urg = UniqueRandomGenerator(range: 0) } // Method to get a response...
  11. fukurou

    Eliza C# port

    public class ElizaDBWrapper { // This (function wrapper) class adds save/load functionality to the ElizaDeducer Object. // Example usage: // var ed = new ElizaDeducerInitializer(2); // ed.GetEc2().AddFromDB("test", "one_two_three"); // Manual load for testing // var k = new...
  12. fukurou

    Eliza C# port

    using System; public class ElizaDeducerInitializer : ElizaDeducer { // Constructor public ElizaDeducerInitializer(int lim) : base(lim) { // Recommended lim = 5; it's the limit of responses per key in the EventChat dictionary. // The purpose of the lim is to make...
  13. fukurou

    Eliza C# port

    using System; using System.Collections.Generic; using System.Text.RegularExpressions; public class ElizaDeducer { // This class populates a special chat dictionary based on the matches added via its AddPhraseMatcher function. // See subclass ElizaDeducerInitializer for example: //...
  14. fukurou

    Eliza C# port

    public class EventChatV2 { private readonly Dictionary<string, LimUniqueResponder> dic = new Dictionary<string, LimUniqueResponder>(); private readonly HashSet<string> modifiedKeys = new HashSet<string>(); private readonly int lim; // Constructor public EventChatV2(int lim)...
  15. fukurou

    Eliza C# port

    public class LimUniqueResponder { private List<string> responses; private UniqueRandomGenerator urg = new UniqueRandomGenerator(0); private readonly int lim; // Constructor public LimUniqueResponder(int lim) { responses = new List<string>(); this.lim =...
  16. fukurou

    eliza port vb.aSS

    Public Class ElizaDBWrapper ' This (function wrapper) class adds save/load functionality to the ElizaDeducer Object. ' Example usage: ' Dim ed As New ElizaDeducerInitializer(2) ' ed.GetEc2().AddFromDB("test", "one_two_three") ' Manual load for testing ' Dim k As New...
  17. fukurou

    eliza port vb.aSS

    Public Class ElizaDeducerInitializer Inherits ElizaDeducer ' Constructor Public Sub New(lim As Integer) ' Recommended lim = 5; it's the limit of responses per key in the EventChat dictionary. ' The purpose of the lim is to make saving and loading data easier...
  18. fukurou

    eliza port vb.aSS

    Imports System.Collections.Generic Imports System.Text.RegularExpressions Public Class ElizaDeducer ' This class populates a special chat dictionary based on the matches added via its AddPhraseMatcher function. ' See subclass ElizaDeducerInitializer for example: ' Dim ed As New...
  19. fukurou

    eliza port vb.aSS

    Public Class EventChatV2 Private ReadOnly dic As New Dictionary(Of String, LimUniqueResponder)() Private ReadOnly modifiedKeys As New HashSet(Of String)() Private ReadOnly lim As Integer ' Constructor Public Sub New(lim As Integer) Me.lim = lim End Sub ' Get...
  20. fukurou

    eliza port vb.aSS

    Public Class LimUniqueResponder Private responses As List(Of String) Private urg As UniqueRandomGenerator = New UniqueRandomGenerator(0) Private ReadOnly lim As Integer ' Constructor Public Sub New(lim As Integer) responses = New List(Of String)() Me.lim =...
Top