Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
NLP in diagnostic texts from nephropathology
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Maximilian Legnar
NLP in diagnostic texts from nephropathology
Commits
6ed8c8d0
Commit
6ed8c8d0
authored
2 years ago
by
Maximilian Legnar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added some instructions to README.md
parent
895d0dec
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
README.md
README.md
+6
-2
data_preparation_pipeline.py
database_preparation/data_preparation_pipeline.py
+2
-2
No files found.
README.md
View file @
6ed8c8d0
...
...
@@ -3,7 +3,7 @@
This python project was created as part of the article "Natural Language Processing in diagnostic texts from
nephropathology".
The paper can be found
(soon)
[
here
](
LINK
)
.
The paper can be found
[
here
](
LINK
)
.
The scripts
```database_preparation/data_preparation_pipeline.py```
,
```TextClustering/clustering_pipeline.py```
and
```TextClassification/classification_pipeline.py```
gives an idea of how this project can be used with other datasets.
...
...
@@ -18,7 +18,11 @@ Feel free to use and adapt the scripts to your own needs.
## Requirements
```
database_preparation/preprocess.py
``` requires some nltk corporas:
Create a new environment, then install the required python packages with
```
pip install -r requirements.txt
```.
The script ```
database_preparation/preprocess.py
``` requires some nltk corporas:
```
import nltk
nltk.download('stopwords')
...
...
This diff is collapsed.
Click to expand it.
database_preparation/data_preparation_pipeline.py
View file @
6ed8c8d0
# -*- coding: iso-8859-1 -*-
import
os
#
params:
#
#### Script paramseters: Please adapt to own data!!! #####
path_to_reports
=
'../DataNephroTexts/reports'
author_names
=
"Name1 Name2 Name3 Name4"
##
<- Type in the names of the pathologists of your institut!
author_names
=
"Name1 Name2 Name3 Name4"
##
names of the pathologists who wrote the reports
splitted_reports_folder_path
=
'../DataNephroTexts'
path2corpus_bow_preprocessed_diagnosis
=
'database/bow_prepro_diag.pkl'
path2corpus_embedding_preprocessed_diagnosis
=
'database/embedding_prepro_diag.pkl'
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment