Skip to content

Update create_ner_model_git_json.py #9

Update create_ner_model_git_json.py

Update create_ner_model_git_json.py #9

name: Train NER model
on:
push:
branches:
- machine-learn
jobs:
train-ner-model:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python environment
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Install dependencies
run: |
pip install spacy pandas
- name: Set working directory
run: cd machine-learn/
working-directory: ${{ github.workspace }} # Use the GitHub workspace as the starting directory
- name: Run training script
run: |
python machine-learn/create_ner_model_git_json.py
- name: Move prepared file to internal folder
run: |
mv custom_ner_model10git machine-learn/
- name: Commit and push changes
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Actions"
git add machine-learn/custom_ner_model10git
git commit -m "Update custom_ner_model10git" || echo "No changes to commit"
git push