From b444701093a16068cae499d0babf250719de2846 Mon Sep 17 00:00:00 2001 From: Stephan Porada Date: Sun, 3 Mar 2019 14:39:46 +0100 Subject: [PATCH] Added some explanations --- .gitignore | 0 README.md | 0 app/Dockerfile | 0 app/Pipfile | 0 app/Pipfile.lock | 0 app/blog/migrations/__init__.py | 0 app/blog/static/blog/images/one_protocol.png | Bin app/blog/static/blog/images/one_speech.png | Bin .../static/blog/images/slide_ngram_viewer.png | Bin .../static/blog/images/slider_profile.png | Bin app/ngram_viewer/forms.py | 9 +- app/ngram_viewer/migrations/__init__.py | 0 .../ngram_viewer/ngram_viewer_speaker.html | 111 +++++++++++++++-- .../ngram_viewer/ngram_viewer_year.html | 115 ++++++++++++++++-- app/speakers/migrations/__init__.py | 0 app/speeches/migrations/__init__.py | 0 docker-compose.yml | 0 nginx/Dockerfile | 0 nginx/nginx.conf | 0 19 files changed, 215 insertions(+), 20 deletions(-) mode change 100644 => 100755 .gitignore mode change 100644 => 100755 README.md mode change 100644 => 100755 app/Dockerfile mode change 100644 => 100755 app/Pipfile mode change 100644 => 100755 app/Pipfile.lock mode change 100644 => 100755 app/blog/migrations/__init__.py mode change 100644 => 100755 app/blog/static/blog/images/one_protocol.png mode change 100644 => 100755 app/blog/static/blog/images/one_speech.png mode change 100644 => 100755 app/blog/static/blog/images/slide_ngram_viewer.png mode change 100644 => 100755 app/blog/static/blog/images/slider_profile.png mode change 100644 => 100755 app/ngram_viewer/migrations/__init__.py mode change 100644 => 100755 app/speakers/migrations/__init__.py mode change 100644 => 100755 app/speeches/migrations/__init__.py mode change 100644 => 100755 docker-compose.yml mode change 100644 => 100755 nginx/Dockerfile mode change 100644 => 100755 nginx/nginx.conf diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 diff --git a/README.md b/README.md old mode 100644 new mode 100755 diff --git a/app/Dockerfile b/app/Dockerfile old mode 100644 new mode 100755 diff --git a/app/Pipfile b/app/Pipfile old mode 100644 new mode 100755 diff --git a/app/Pipfile.lock b/app/Pipfile.lock old mode 100644 new mode 100755 diff --git a/app/blog/migrations/__init__.py b/app/blog/migrations/__init__.py old mode 100644 new mode 100755 diff --git a/app/blog/static/blog/images/one_protocol.png b/app/blog/static/blog/images/one_protocol.png old mode 100644 new mode 100755 diff --git a/app/blog/static/blog/images/one_speech.png b/app/blog/static/blog/images/one_speech.png old mode 100644 new mode 100755 diff --git a/app/blog/static/blog/images/slide_ngram_viewer.png b/app/blog/static/blog/images/slide_ngram_viewer.png old mode 100644 new mode 100755 diff --git a/app/blog/static/blog/images/slider_profile.png b/app/blog/static/blog/images/slider_profile.png old mode 100644 new mode 100755 diff --git a/app/ngram_viewer/forms.py b/app/ngram_viewer/forms.py index 3aa552b..d06d9f7 100755 --- a/app/ngram_viewer/forms.py +++ b/app/ngram_viewer/forms.py @@ -6,21 +6,22 @@ class NgramForm(forms.Form): Describes and configures the input html form for the Ngram Viewer per year. """ CORPUS_CHOICE = [('lm_ns_year', 'Lemmatisiert ohne Stoppwörter'), - ('tk_ws_year', 'Nicht lemmatisiert mit Stoppwörtern'),] - query = forms.CharField(label="Suche Ngramme", max_length="200") + ('tk_ws_year', 'Nicht lemmatisiert mit Stoppwörtern'), ] + query = forms.CharField(label="Suche N-Gramme", max_length="200") case_sensitive = forms.BooleanField(label="case-sensitive", required=False) search_plus = forms.BooleanField(label="search-plus", required=False) ignore_missing = forms.BooleanField(label="fill-zeros", required=False) corpus_choice = forms.ChoiceField(label="Wählen Sie einen Corpus", choices=CORPUS_CHOICE) + class NgramFormSpeaker(forms.Form): """ Describes and configures the input html form for the Ngram Viewer per speaker. """ CORPUS_CHOICE = [('lm_ns_speaker', 'Lemmatisiert ohne Stoppwörter'), - ('tk_ws_speaker', 'Nicht lemmatisiert mit Stoppwörtern'),] - query = forms.CharField(label="Suche Ngramm", max_length="200") + ('tk_ws_speaker', 'Nicht lemmatisiert mit Stoppwörtern'), ] + query = forms.CharField(label="Suche N-Gramm", max_length="200") case_sensitive = forms.BooleanField(label="case-sensitive", required=False) search_plus = forms.BooleanField(label="search-plus", required=False) ignore_missing = forms.BooleanField(label="fill-zeros", required=False) diff --git a/app/ngram_viewer/migrations/__init__.py b/app/ngram_viewer/migrations/__init__.py old mode 100644 new mode 100755 diff --git a/app/ngram_viewer/templates/ngram_viewer/ngram_viewer_speaker.html b/app/ngram_viewer/templates/ngram_viewer/ngram_viewer_speaker.html index 13f1b98..e1497ba 100755 --- a/app/ngram_viewer/templates/ngram_viewer/ngram_viewer_speaker.html +++ b/app/ngram_viewer/templates/ngram_viewer/ngram_viewer_speaker.html @@ -65,7 +65,7 @@ query. This creates the ngram viewer per speaker. -->
- filter_9_plus + filter_9_plus
@@ -76,14 +76,109 @@ query. This creates the ngram viewer per speaker. -->
-