GithubHelp home page GithubHelp logo

Comments (5)

david-morris avatar david-morris commented on August 30, 2024

I'm having some trouble with building an intent. Does anyone have experience using regexes in the intent? @pcwii, is there a reason why I don't see any of the regexes in this project being used in intent handler decorators? Is there a reason why they're all one line?

from cpkodi-skill.

pcwii avatar pcwii commented on August 30, 2024

@david-morris, I don't usually use regex in my intents. And I don't use Padatious. All of my intents are built using keywords (vocab/en-us/*.voc). I am using the regex files to parse the remainder of the intents and determine what is being requested. Yes this could be done with regex in the intents but not something I got used to doing early on in mycroft.ai development and have been continuing to follow my old habits. Currently all the regex files are loaded with the self.translate_regex() function. This function is currently hardcoded with en-us and will need to be updated at some point to support multiple languages.

from cpkodi-skill.

pcwii avatar pcwii commented on August 30, 2024

To assist, I have been using this api for reference.
https://kodi.wiki/view/JSON-RPC_API/Examples
https://kodi.wiki/view/JSON-RPC_API/v10
All the existing JSON-RPC items can be found in .kodi_tools. I am sure this can be made more efficient but this was my attempt to disconnect this application from other dependencies that either became stale or did not have the functionality I required.

from cpkodi-skill.

david-morris avatar david-morris commented on August 30, 2024

Yeah, I asked in the mattermost channel for skill development and nobody saw what I was doing wrong, so I'll use the translate_regex function.

from cpkodi-skill.

david-morris avatar david-morris commented on August 30, 2024

Closed by merge.

from cpkodi-skill.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.