Skip to content

Commit

Permalink
Merge pull request #29 from asyml/update_package_name
Browse files Browse the repository at this point in the history
Update package name to forte.health
  • Loading branch information
Piyush13y authored May 31, 2022
2 parents 2b80d30 + d306fe2 commit 2db74eb
Show file tree
Hide file tree
Showing 19 changed files with 914 additions and 19 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,22 +62,22 @@ jobs:
- name: Format check with Black
run: |
black --line-length 80 --check forte_medical/ tests/
black --line-length 80 --check fortex/ tests/
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 forte_medical/ examples/ tests/ ftx/ --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 fortex/ examples/ tests/ ftx/ --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 forte_medical/ examples/ ftx/ tests/ --ignore E203,W503 --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
flake8 fortex/ examples/ ftx/ tests/ --ignore E203,W503 --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Lint with pylint
run: |
pylint forte_medical/ tests/
pylint fortex/ tests/
- name: Lint main code with mypy when torch version is not 1.5.0 and python is 3.9
run: |
if [[ ${{ matrix.torch-version }} != "1.5.0" && ${{ matrix.python-version }} == "3.9" ]]; then mypy forte_medical/ tests/ ; fi
if [[ ${{ matrix.torch-version }} != "1.5.0" && ${{ matrix.python-version }} == "3.9" ]]; then mypy fortex/ tests/ ; fi
- name: Install requirements for tests
run: |
Expand All @@ -92,7 +92,7 @@ jobs:
- name: Test with pytest and run coverage
run: |
coverage run -m pytest tests/
# coverage run --append -m pytest --doctest-modules forte_medical/
# coverage run --append -m pytest --doctest-modules fortex/

- uses: codecov/codecov-action@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ from forte.data.readers import PlainTextReader
from forte.pipeline import Pipeline
from ft.onto.base_ontology import Sentence, EntityMention
from ftx.medical.clinical_ontology import NegationContext, MedicalEntityMention
from forte_medical.processors.negation_context_analyzer import (
from fortex.health.processors.negation_context_analyzer import (
NegationContextAnalyzer,
)

Expand Down
2 changes: 1 addition & 1 deletion docs/code/processors.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ Processors

:hidden:`NegationContextAnalyzer`
-------------------------------------
.. autoclass:: forte_medical.processors.negation_context_analyzer.NegationContextAnalyzer
.. autoclass:: fortex.health.processors.negation_context_analyzer.NegationContextAnalyzer
:members:
2 changes: 1 addition & 1 deletion docs/code/readers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ Readers

:hidden:`Mimic3DischargeNoteReader`
-------------------------------------
.. autoclass:: forte_medical.readers.mimic3_note_reader.Mimic3DischargeNoteReader
.. autoclass:: fortex.health.readers.mimic3_note_reader.Mimic3DischargeNoteReader
:members:
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
sys.path.insert(0, os.path.abspath(".."))
from forte_medical import __version__
from fortex.health import __version__

# -- General configuration ------------------------------------------------

Expand Down
4 changes: 2 additions & 2 deletions examples/mimic_iii/medical_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
)
from fortex.spacy import SpacyProcessor

from forte_medical.readers.mimic3_note_reader import Mimic3DischargeNoteReader
from forte_medical.processors.negation_context_analyzer import (
from fortex.health.readers.mimic3_note_reader import Mimic3DischargeNoteReader
from fortex.health.processors.negation_context_analyzer import (
NegationContextAnalyzer,
)

Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"""
ICD Coding Processor
"""
from typing import Dict, List, Set
from typing import Dict, Set
import importlib

from transformers import pipeline
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from forte_medical.readers.mimic3_note_reader import *
from fortex.health.readers.mimic3_note_reader import *
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 2db74eb

Please sign in to comment.