Skip to content

Commit 1e89a36

Browse files
authored
CU-8699g0f70 master to main (CogStack/MedCAT#547)
* CU-8699g0f70: Update new branch in README * CU-8699g0f70: Update new branch in README (missing parts) * CU-8699g0f70: Update branch in contributions file * CU-8699g0f70: Update reference to branch in CDB maker * CU-8699g0f70: Fix links in main docs page (branch name) * CU-8699g0f70: Update branch in main workflow * CU-8699g0f70: Update branch in CodeQL workflow
1 parent d255984 commit 1e89a36

File tree

6 files changed

+17
-17
lines changed

6 files changed

+17
-17
lines changed

medcat-v1/.github/workflows/codeql.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ name: "CodeQL"
1313

1414
on:
1515
push:
16-
branches: [ "master" ]
16+
branches: [ "main" ]
1717
pull_request:
18-
branches: [ "master" ]
18+
branches: [ "main" ]
1919
schedule:
2020
- cron: '36 14 * * 0'
2121

medcat-v1/.github/workflows/main.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: build
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches: [ main ]
66
pull_request:
7-
branches: [ master ]
7+
branches: [ main ]
88

99
jobs:
1010
build:
@@ -62,7 +62,7 @@ jobs:
6262
});
6363
core.setOutput('latest_version', latestRelease.data.tag_name);
6464
- name: Make sure there's no deprecated methods that should be removed.
65-
# only run this for master -> production PR. I.e just before doing a release.
65+
# only run this for main -> production PR. I.e just before doing a release.
6666
if: github.event.pull_request.base.ref == 'main' && github.event.pull_request.head.ref == 'production'
6767
env:
6868
VERSION: ${{ steps.get_latest_release.outputs.latest_version }}
@@ -73,7 +73,7 @@ jobs:
7373

7474
if: |
7575
github.repository == 'CogStack/MedCAT' &&
76-
github.ref == 'refs/heads/master' &&
76+
github.ref == 'refs/heads/main' &&
7777
github.event_name == 'push' &&
7878
startsWith(github.ref, 'refs/tags') != true
7979
runs-on: ubuntu-24.04
@@ -82,10 +82,10 @@ jobs:
8282
needs: [build]
8383

8484
steps:
85-
- name: Checkout master
85+
- name: Checkout main
8686
uses: actions/checkout@v4
8787
with:
88-
ref: 'master'
88+
ref: 'main'
8989
fetch-depth: 0
9090

9191
- name: Set up Python 3.9

medcat-v1/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ When making changes to MedCAT, make sure you have the dependencies defined in [r
5454
Please make sure the code additions are adequately tested and well documented.
5555

5656
Before submitting a pull request, please ensure that the changes satisfy following:
57-
- The changes are based on the `master` branch (i.e merge the master branch in before submitting a PR)
57+
- The changes are based on the `main` branch (i.e merge the main branch in before submitting a PR)
5858
- There are no issues with types/mypy (run `python -m mypy --follow-imports=normal medcat` in the project root)
5959
- There are no issues with flake8 (run `flake8 medcat` in the project root)
6060
- All tests are successful (run `python -m unittest discover` in the project root)

medcat-v1/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# Medical <img src="https://raw.githubusercontent.com/CogStack/MedCAT/master/media/cat-logo.png" width=45> oncept Annotation Tool
1+
# Medical <img src="https://raw.githubusercontent.com/CogStack/MedCAT/main/media/cat-logo.png" width=45> oncept Annotation Tool
22

33
**NB! [MedCAT v2](https://github.com/CogStack/MedCAT2) will soon be released.**
44
**MedCAT v1.16.0 will be the latest MedCAT v1 minor release.**
55
**However, we will likely continue to support v1.16.x with patch releases for some time.**
66

7-
[![Build Status](https://github.com/CogStack/MedCAT/actions/workflows/main.yml/badge.svg?branch=master)](https://github.com/CogStack/MedCAT/actions/workflows/main.yml?query=branch%3Amaster)
7+
[![Build Status](https://github.com/CogStack/MedCAT/actions/workflows/main.yml/badge.svg?branch=main)](https://github.com/CogStack/MedCAT/actions/workflows/main.yml?query=branch%3Amain)
88
[![Documentation Status](https://readthedocs.org/projects/medcat/badge/?version=latest)](https://medcat.readthedocs.io/en/latest/?badge=latest)
99
[![Latest release](https://img.shields.io/github/v/release/CogStack/MedCAT)](https://github.com/CogStack/MedCAT/releases/latest)
1010
[![pypi Version](https://img.shields.io/pypi/v/medcat.svg?style=flat-square&logo=pypi&logoColor=white)](https://pypi.org/project/medcat/)
@@ -40,7 +40,7 @@ To download any of these models, please [follow this link](https://uts.nlm.nih.g
4040
branch and will still be supported until 1. July 2021
4141
(with respect to potential bug fixes), after it will still be available but not updated anymore.
4242
- **Paper**: [What’s in a Summary? Laying the Groundwork for Advances in Hospital-Course Summarization](https://www.aclweb.org/anthology/2021.naacl-main.382.pdf)
43-
- ([more...](https://github.com/CogStack/MedCAT/blob/master/media/news.md))
43+
- ([more...](https://github.com/CogStack/MedCAT/blob/main/media/news.md))
4444

4545
## Installation
4646
To install the latest version of MedCAT run the following command:

medcat-v1/docs/main.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Medical <img src="https://github.com/CogStack/MedCAT/blob/master/media/cat-logo.png?raw=true" width=45>oncept Annotation Tool
1+
# Medical <img src="https://github.com/CogStack/MedCAT/blob/main/media/cat-logo.png?raw=true" width=45>oncept Annotation Tool
22

3-
[![Build Status](https://github.com/CogStack/MedCAT/actions/workflows/main.yml/badge.svg?branch=master)](https://github.com/CogStack/MedCAT/actions/workflows/main.yml?query=branch%3Amaster)
3+
[![Build Status](https://github.com/CogStack/MedCAT/actions/workflows/main.yml/badge.svg?branch=main)](https://github.com/CogStack/MedCAT/actions/workflows/main.yml?query=branch%3Amain)
44
[![Documentation Status](https://readthedocs.org/projects/medcat/badge/?version=latest)](https://medcat.readthedocs.io/en/latest/?badge=latest)
55
[![Latest release](https://img.shields.io/github/v/release/CogStack/MedCAT)](https://github.com/CogStack/MedCAT/releases/latest)
66
[![pypi Version](https://img.shields.io/pypi/v/medcat.svg?style=flat-square&logo=pypi&logoColor=white)](https://pypi.org/project/medcat/)
@@ -108,10 +108,10 @@ python medcat/utils/model_creator.py tests/model_creator/config_example.yml
108108

109109
| Model creator parameter | Description |
110110
| -------- | ----------- |
111-
| concept_csv_file | Path to file containing UMLS concepts, including primary names, synonyms, types and source ontology. See [examples](https://github.com/CogStack/MedCAT/tree/master/examples) and [tests/model_creator/umls_sample.csv](https://github.com/CogStack/MedCAT/tree/master/tests/model_creator/umls_sample.csv) for format description and examples. |
111+
| concept_csv_file | Path to file containing UMLS concepts, including primary names, synonyms, types and source ontology. See [examples](https://github.com/CogStack/MedCAT/tree/main/examples) and [tests/model_creator/umls_sample.csv](https://github.com/CogStack/MedCAT/tree/main/tests/model_creator/umls_sample.csv) for format description and examples. |
112112
| unsupervised_training_data_file | Path to file containing text dataset used for spell checking and unsupervised training.|
113113
| output_dir | Path to output directory for writing the CDB and vocab models. |
114-
| medcat_config_file | Path to optional config file for adjusting MedCAT properties, see [configs](https://github.com/CogStack/MedCAT/tree/master/configs), [medcat/config.py](https://github.com/CogStack/MedCAT/tree/master/medcat/config.py) and [tests/model_creator/medcat.txt](https://github.com/CogStack/MedCAT/tree/master/tests/model_creator/medcat.txt)|
114+
| medcat_config_file | Path to optional config file for adjusting MedCAT properties, see [configs](https://github.com/CogStack/MedCAT/tree/main/configs), [medcat/config.py](https://github.com/CogStack/MedCAT/tree/main/medcat/config.py) and [tests/model_creator/medcat.txt](https://github.com/CogStack/MedCAT/tree/main/tests/model_creator/medcat.txt)|
115115
| unigram_table_size | Optional parameter for setting the initialization size of the unigram table in the vocab model. Default is 100000000, while for testing with a small unsupervised training data file a much smaller size could work. |
116116

117117
## Models

medcat-v1/medcat/cdb_maker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020

2121
class CDBMaker(object):
22-
"""Given a CSV as shown in https://github.com/CogStack/MedCAT/tree/master/examples/<example> it creates a CDB or
22+
"""Given a CSV as shown in https://github.com/CogStack/MedCAT/tree/main/examples/<example> it creates a CDB or
2323
updates an existing one.
2424
2525
Args:

0 commit comments

Comments
 (0)