mirror of
https://github.com/fhswf/aki_prj23_transparenzregister.git
synced 2025-06-21 23:53:55 +02:00
Created pipeline to run ner sentiment and sql ingest (#314)
Created a dataprocessing pipline that enhances the raw mined data with Organsiation extractions and sentiment analysis prio to moving the data to the sql db. The transfer of matched data is done afterword. --------- Co-authored-by: SeZett <zeleny.sebastian@fh-swf.de>
This commit is contained in:
@ -130,7 +130,7 @@ def test_transfer_news_to_sql(full_db: Session, monkeypatch: MonkeyPatch) -> Non
|
||||
"aki_prj23_transparenzregister.utils.transfer_news.get_all_news",
|
||||
lambda _: NEWS_TEXTS,
|
||||
)
|
||||
transfer_news.transfer_news_to_sql(None, full_db) # type: ignore
|
||||
transfer_news._transfer_news_to_sql(None, full_db) # type: ignore
|
||||
articles = pd.read_sql_table(entities.News.__tablename__, full_db.bind) # type: ignore
|
||||
assert "text" in articles.columns
|
||||
del articles["text"]
|
||||
|
Reference in New Issue
Block a user