Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import statements repaired for some examples #624

Merged
merged 2 commits into from
Feb 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions examples/clinical_pipeline/clinical_processing_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,15 @@
import yaml
from mimic3_note_reader import Mimic3DischargeNoteReader

from forte.elastic import ElasticSearchPackIndexProcessor
from forte.hugginface.bio_ner_predictor import BioBERTNERPredictor
from forte.hugginface.transformers_processor import BERTTokenizer

from forte.common.configuration import Config
from forte.data.data_pack import DataPack
from forte.pipeline import Pipeline
from forte.processors.writers import PackIdJsonPackWriter
from fortex.nltk import NLTKSentenceSegmenter

from fortex.elastic import ElasticSearchPackIndexProcessor
from fortex.hugginface.bio_ner_predictor import BioBERTNERPredictor
from fortex.hugginface.transformers_processor import BERTTokenizer
from fortex.nltk import NLTKSentenceSegmenter

def main(input_path: str, output_path: str, max_packs: int = -1):
pl = Pipeline[DataPack]()
Expand Down
2 changes: 1 addition & 1 deletion examples/clinical_pipeline/utterance_searcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import sqlite3
from typing import Dict, Any, Optional, List

from forte.elastic import ElasticSearchIndexer
from fortex.elastic import ElasticSearchIndexer

from forte.common import Resources, ProcessorConfigError
from forte.common.configuration import Config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
from typing import Dict, Any
import logging

from forte.elastic import ElasticSearchIndexer
from forte.elastic import ElasticSearchPackIndexProcessor
from fortex.elastic import ElasticSearchIndexer
from fortex.elastic import ElasticSearchPackIndexProcessor

from forte.common.configuration import Config
from forte.data.data_pack import DataPack
Expand Down
2 changes: 1 addition & 1 deletion examples/passage_ranker/create_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

import yaml

from forte.elastic import ElasticSearchTextIndexProcessor
from fortex.elastic import ElasticSearchTextIndexProcessor

from forte.common.configuration import Config
from forte.data.data_pack import DataPack
Expand Down
2 changes: 1 addition & 1 deletion examples/passage_ranker/indexer_reranker_eval_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

import yaml

from forte.elastic import ElasticSearchQueryCreator, ElasticSearchProcessor
from fortex.elastic import ElasticSearchQueryCreator, ElasticSearchProcessor

from ms_marco_evaluator import MSMarcoEvaluator
from reader import EvalReader
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import yaml
from termcolor import colored

from forte.elastic import ElasticSearchQueryCreator, ElasticSearchProcessor
from fortex.elastic import ElasticSearchQueryCreator, ElasticSearchProcessor

from forte.common.configuration import Config
from forte.data.multi_pack import MultiPack
Expand Down
4 changes: 2 additions & 2 deletions examples/visualize/visualize.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from forte.huggingface import ZeroShotClassifier
from forte.stanza import StandfordNLPProcessor
from fortex.huggingface import ZeroShotClassifier
from fortex.stanza import StandfordNLPProcessor

from forte import Pipeline
from forte.data.readers import TerminalReader
Expand Down