mirror of
https://github.com/leon-ai/leon.git
synced 2024-11-28 12:43:35 +03:00
feat(package/trend): expressions dataset and structure
This commit is contained in:
parent
82ebbee568
commit
f54c2272b4
21
packages/trend/README.md
Normal file
21
packages/trend/README.md
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
# Trend Package
|
||||||
|
|
||||||
|
The trend package contains modules related to trends.
|
||||||
|
|
||||||
|
## Modules
|
||||||
|
|
||||||
|
### GitHub
|
||||||
|
|
||||||
|
WIP...
|
||||||
|
|
||||||
|
#### Usage
|
||||||
|
|
||||||
|
WIP...
|
||||||
|
|
||||||
|
### Product Hunt
|
||||||
|
|
||||||
|
WIP...
|
||||||
|
|
||||||
|
#### Usage
|
||||||
|
|
||||||
|
WIP...
|
0
packages/trend/__init__.py
Normal file
0
packages/trend/__init__.py
Normal file
0
packages/trend/config/.gitkeep
Normal file
0
packages/trend/config/.gitkeep
Normal file
8
packages/trend/config/config.sample.json
Normal file
8
packages/trend/config/config.sample.json
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"github": {
|
||||||
|
"options": {}
|
||||||
|
},
|
||||||
|
"producthunt": {
|
||||||
|
"options": {}
|
||||||
|
}
|
||||||
|
}
|
0
packages/trend/data/.gitkeep
Normal file
0
packages/trend/data/.gitkeep
Normal file
0
packages/trend/data/answers/.gitkeep
Normal file
0
packages/trend/data/answers/.gitkeep
Normal file
6
packages/trend/data/answers/en.json
Normal file
6
packages/trend/data/answers/en.json
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"github": {
|
||||||
|
},
|
||||||
|
"producthunt": {
|
||||||
|
}
|
||||||
|
}
|
6
packages/trend/data/answers/fr.json
Normal file
6
packages/trend/data/answers/fr.json
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"github": {
|
||||||
|
},
|
||||||
|
"producthunt": {
|
||||||
|
}
|
||||||
|
}
|
0
packages/trend/data/db/.gitkeep
Normal file
0
packages/trend/data/db/.gitkeep
Normal file
0
packages/trend/data/expressions/.gitkeep
Normal file
0
packages/trend/data/expressions/.gitkeep
Normal file
19
packages/trend/data/expressions/en.json
Normal file
19
packages/trend/data/expressions/en.json
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
{
|
||||||
|
"github": [
|
||||||
|
"What are the trends on GitHub?",
|
||||||
|
"Give me the GitHub trends",
|
||||||
|
"What's trending on GitHub?",
|
||||||
|
"What are the trends on GH?",
|
||||||
|
"Give me the GH trends",
|
||||||
|
"What's trending on GH?"
|
||||||
|
],
|
||||||
|
"producthunt": [
|
||||||
|
"What are the trends on Product Hunt?",
|
||||||
|
"Give me the Product Hunt trends",
|
||||||
|
"What's trending on Product Hunt?",
|
||||||
|
"What are the trends on PH?",
|
||||||
|
"Give me the PH trends",
|
||||||
|
"What's trending on PH?",
|
||||||
|
"What's trending on ProductHunt?"
|
||||||
|
]
|
||||||
|
}
|
18
packages/trend/data/expressions/fr.json
Normal file
18
packages/trend/data/expressions/fr.json
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
{
|
||||||
|
"github": [
|
||||||
|
"Quelles sont les tendances sur GitHub ?",
|
||||||
|
"Donne-moi les tendances GitHub",
|
||||||
|
"Qu'est-ce qu'il y a en tendance sur GitHub ?",
|
||||||
|
"Quelles sont les tendances sur GH ?",
|
||||||
|
"Donne-moi les tendances GH",
|
||||||
|
"Qu'est-ce qu'il y a en tendance sur GH ?"
|
||||||
|
],
|
||||||
|
"producthunt": [
|
||||||
|
"Quelles sont les tendances sur Product Hunt ?",
|
||||||
|
"Donne-moi les tendances Product Hunt",
|
||||||
|
"Qu'est-ce qu'il y a en tendance sur Product Hunt ?",
|
||||||
|
"Quelles sont les tendances sur PH ?",
|
||||||
|
"Donne-moi les tendances PH",
|
||||||
|
"Qu'est-ce qu'il y a en tendance sur PH ?"
|
||||||
|
]
|
||||||
|
}
|
10
packages/trend/github.py
Normal file
10
packages/trend/github.py
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
# -*- coding:utf-8 -*-
|
||||||
|
|
||||||
|
import requests
|
||||||
|
import utils
|
||||||
|
|
||||||
|
def github(string, entities):
|
||||||
|
"""WIP..."""
|
||||||
|
|
||||||
|
return utils.output('end', 'done')
|
10
packages/trend/producthunt.py
Normal file
10
packages/trend/producthunt.py
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
# -*- coding:utf-8 -*-
|
||||||
|
|
||||||
|
import requests
|
||||||
|
import utils
|
||||||
|
|
||||||
|
def producthunt(string, entities):
|
||||||
|
"""WIP..."""
|
||||||
|
|
||||||
|
return utils.output('end', 'done')
|
5
packages/trend/test/github.spec.js
Normal file
5
packages/trend/test/github.spec.js
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
'use strict'
|
||||||
|
|
||||||
|
describe('trend:github', async () => {
|
||||||
|
|
||||||
|
})
|
5
packages/trend/test/producthunt.spec.js
Normal file
5
packages/trend/test/producthunt.spec.js
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
'use strict'
|
||||||
|
|
||||||
|
describe('trend:producthunt', async () => {
|
||||||
|
|
||||||
|
})
|
1
packages/trend/version.txt
Normal file
1
packages/trend/version.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
1.0.0
|
Loading…
Reference in New Issue
Block a user