Skip to content

Commit

Permalink
Merge pull request #59 from SuperKogito/add-kbes
Browse files Browse the repository at this point in the history
Add KBES
  • Loading branch information
SuperKogito authored Jun 10, 2024
2 parents 9891e66 + db7769e commit 54919ba
Show file tree
Hide file tree
Showing 5 changed files with 103 additions and 3 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/deploy_docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Build and Deploy Sphinx Documentation

on:
push:
branches:
- master
workflow_run:
workflows: ["Urls checking"]
types:
- completed

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.7'

- name: Install dependencies
run: |
cd src
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Build Sphinx documentation
run: |
cd src
make html
- name: Deploy to GitHub Pages
if: success()
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/html
3 changes: 0 additions & 3 deletions .github/workflows/generate_files.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Generate CSV and README

on:
push:
paths:
- 'src/ser-datasets.json'
pull_request:
paths:
- 'src/ser-datasets.json'
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/validate_json.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Validate JSON

on:
pull_request:
paths:
- 'src/ser-datasets.json'

jobs:
validate-json:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.7'

- name: Install dependencies
run: |
cd src
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Validate JSON
run: |
cd src
python validate_json.py
14 changes: 14 additions & 0 deletions src/ser-datasets.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
{
"KBES": {
"Year": 2023,
"Content": "900 audio signals from 35 actors (20 females and 15 males). Each emotion is represented with two intensity levels (low & high)",
"Emotions": "angry, disgusted, happy, neutral, sad",
"Format": "Audio",
"Size": "0.337 GB",
"Language": "Bangla",
"Paper": "KBES: A dataset for realistic Bangla speech emotion recognition with intensity level",
"Access": "Open",
"License": "CC BY 4.0",
"Dataset-link": "https://data.mendeley.com/datasets/vsn37ps3rx/4",
"Paper-link": "https://www.sciencedirect.com/science/article/pii/S2352340923008107",
"License-link": "https://creativecommons.org/licenses/by/4.0/"
},
"Hi, KIA": {
"Year": 2022,
"Content": "A shared short Wakeup Word database focusing on perceived emotion in speech The dataset contains 488 Wakeup Word speech",
Expand Down
18 changes: 18 additions & 0 deletions src/validate_json.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import json
import sys

def validate_json(file_path):
try:
with open(file_path, 'r') as f:
json.load(f)
print(f"JSON file at {file_path} is valid.")
except json.JSONDecodeError as e:
print(f"Invalid JSON file at {file_path}: {e}")
sys.exit(1)
except Exception as e:
print(f"Error reading JSON file at {file_path}: {e}")
sys.exit(1)


if __name__ == "__main__":
validate_json('ser-datasets.json')

0 comments on commit 54919ba

Please sign in to comment.