Search results

  1. fukurou

    πŸ‘¨β€πŸ’» dev java->python AXPrompt

    class Prompt: def __init__(self): self.regexUtil: RegexUtil = RegexUtil() self.kv: AXKeyValuePair = AXKeyValuePair() self.prompt: str = "" self.regex: str = "" self.kv.key = "default" def getPrompt(self): return self.prompt def...
  2. fukurou

    [MEDIA]

  3. fukurou

    [MEDIA]

  4. fukurou

    .net is a cope

  5. fukurou

    πŸ‘¨β€πŸ’» dev swift chat modules porting

    class ChatBot { var sentences = RefreshQ() var wordToList = [String: RefreshQ]() private var regexUtil = RegexUtil() var allParamRef = [String: String]() var paramLim = 5 var loggedParams = RefreshQ() private var conjuration = "is a" init(logParamLim: Int) {...
  6. fukurou

    πŸ‘¨β€πŸ’» dev swift chat modules porting

    class ChatBot { var sentences = RefreshQ() var wordToList = [String: RefreshQ]() private var regexUtil = RegexUtil() var allParamRef = [String: String]() var paramLim = 5 var loggedParams = RefreshQ() private var conjuration = "is a" init(logParamLim: Int) {...
  7. fukurou

    πŸ‘¨β€πŸ’» dev swift chat modules porting

    class AXTimeContextResponder { private var pl:PlayGround = PlayGround() var morning:Responder = Responder() var afternoon:Responder = Responder() var evening:Responder = Responder() var night:Responder = Responder() fileprivate var responders = [String: Responder]()...
  8. fukurou

    πŸ‘¨β€πŸ’» dev swift chat modules porting

    class AXNPC { public var responder:Responder = Responder() public var dripper:PercentDripper = PercentDripper() func respond() -> String { if dripper.drip() { return responder.getAResponse() } return "" } func respondPlus(plus...
  9. fukurou

    πŸ‘¨β€πŸ’» dev swift chat modules porting

    import Foundation class AXNPC { var responder = Responder() var dripper = PercentDripper() func respond() -> String { if dripper.drip() { return responder.getAResponse() } return "" } func respondPlus(plus: Int) -> String {...
  10. fukurou

    πŸ‘¨β€πŸ’» dev swift chat modules porting

    class PercentDripper { private let dr:DrawRnd = DrawRnd() private var limis:Int = 35 func setLimis(_ limis: Int) { self.limis = limis } func drip() -> Bool { return dr.getSimpleRNDNum(bound: 100) < limis } func dripPlus(_ plus: Int) ->...
  11. fukurou

    πŸ‘¨β€πŸ’» dev swift chat modules porting

    import Foundation class PercentDripper { private let dr = DrawRnd() private var limis = 35 func setLimis(_ limis: Int) { self.limis = limis } func drip() -> Bool { return dr.getSimpleRNDNum(100) < limis } func dripPlus(_ plus: Int) ->...
  12. fukurou

    πŸ‘¨β€πŸ’» dev python chat modules porting

    class ChatBot: """ chatbot = ChatBot(5) chatbot.addParam("name", "jinpachi") chatbot.addParam("name", "sakura") chatbot.addParam("verb", "eat") chatbot.addParam("verb", "code") chatbot.addSentence("i can verb #") chatbot.learnParam("ryu is a name") chatbot.learnParam("ken is a name")...
  13. fukurou

    πŸ‘¨β€πŸ’» dev python chat modules porting

    import random import re class ChatBot: def __init__(self, logParamLim): self.sentences = RefreshQ() self.wordToList = {} self.rand = random.Random() self.regexUtil = RegexUtil() self.allParamRef = {} self.paramLim = 5...
  14. fukurou

    πŸ‘¨β€πŸ’» dev python chat modules porting

    public class ChatBot { /* * chatbot example use in main : * // init ChatBot chatbot = new ChatBot(5); // set param categories (init stage): chatbot.addParam("name","jinpachi"); chatbot.addParam("name","sakura")...
  15. fukurou

    πŸ‘¨β€πŸ’» dev python chat modules porting

    class AXNPC: def __init__(self): self.responder = Responder() self.dripper = PercentDripper() def respond(self) -> str: if self.dripper.drip(): return self.responder.getAResponse() return "" def respondPlus(self, plus) -> str: if...
  16. fukurou

    πŸ‘¨β€πŸ’» dev python chat modules porting

    public class AXNPC { public Responder responder = new Responder(); public PercentDripper dripper = new PercentDripper(); public String respond(){ if (dripper.drip()){ return responder.getAResponse(); } return ""; } public String...
  17. fukurou

    πŸ‘¨β€πŸ’» dev python chat modules porting

    class PercentDripper: def __init__(self): self.__dr: DrawRnd = DrawRnd() self.__limis: int = 35 def setLimit(self, limis): self.__limis = limis def drip(self) -> bool: return self.__dr.getSimpleRNDNum(100) < self.__limis def dripPlus(self, plus...
Top