Skip to content

Commit 999f3db

Browse files
committed
Settings: 1. Update Settings - Files - Miscellaneous Settings - Read files in chunks of characters 2. Update Settings - Sentiment Analysis - Preview
1 parent 41c748f commit 999f3db

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+1804
-1610
lines changed

.circleci/config.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,6 @@ jobs:
5151
no_output_timeout: 30m
5252
command: |
5353
# Run some tests separately to reduce memory usage
54-
pytest tests/tests_nlp/tests_spacy/test_spacy_eng.py
55-
pytest tests/tests_nlp/tests_stanza/test_stanza_eng.py
56-
5754
pytest tests/tests_nlp/test_dependency_parsing.py
5855
pytest tests/tests_nlp/test_lemmatization.py
5956
pytest tests/tests_nlp/test_matching.py
@@ -120,9 +117,6 @@ jobs:
120117
no_output_timeout: 30m
121118
command: |
122119
# Run some tests separately to reduce memory usage
123-
pytest tests/tests_nlp/tests_spacy/test_spacy_eng.py
124-
pytest tests/tests_nlp/tests_stanza/test_stanza_eng.py
125-
126120
pytest tests/tests_nlp/test_dependency_parsing.py
127121
pytest tests/tests_nlp/test_lemmatization.py
128122
pytest tests/tests_nlp/test_matching.py
@@ -193,9 +187,6 @@ jobs:
193187
194188
# Use "python -m pytest" instead to fix "pytest: command not found"
195189
# Run some tests separately to reduce memory usage
196-
python3.11 -m pytest tests/tests_nlp/tests_spacy/test_spacy_eng.py
197-
python3.11 -m pytest tests/tests_nlp/tests_stanza/test_stanza_eng.py
198-
199190
python3.11 -m pytest tests/tests_nlp/test_dependency_parsing.py
200191
python3.11 -m pytest tests/tests_nlp/test_lemmatization.py
201192
python3.11 -m pytest tests/tests_nlp/test_matching.py

.github/workflows/tests.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,6 @@ jobs:
5050
- name: Run Tests and collect coverage
5151
run: |
5252
# Run some tests separately to reduce memory usage
53-
pytest --cov=./ --cov-report=xml --cov-append tests/tests_nlp/tests_spacy/test_spacy_eng.py
54-
pytest --cov=./ --cov-report=xml --cov-append tests/tests_nlp/tests_stanza/test_stanza_eng.py
55-
5653
pytest --cov=./ --cov-report=xml --cov-append tests/tests_nlp/test_dependency_parsing.py
5754
pytest --cov=./ --cov-report=xml --cov-append tests/tests_nlp/test_lemmatization.py
5855
pytest --cov=./ --cov-report=xml --cov-append tests/tests_nlp/test_matching.py
@@ -112,9 +109,6 @@ jobs:
112109
- name: Run Tests
113110
run: |
114111
# Run some tests separately to reduce memory usage
115-
pytest tests/tests_nlp/tests_spacy/test_spacy_eng.py
116-
pytest tests/tests_nlp/tests_stanza/test_stanza_eng.py
117-
118112
pytest tests/tests_nlp/test_dependency_parsing.py
119113
pytest tests/tests_nlp/test_lemmatization.py
120114
pytest tests/tests_nlp/test_matching.py
@@ -172,9 +166,6 @@ jobs:
172166
export QT_QPA_PLATFORM=offscreen
173167
174168
# Run some tests separately to reduce memory usage
175-
pytest tests/tests_nlp/tests_spacy/test_spacy_eng.py
176-
pytest tests/tests_nlp/tests_stanza/test_stanza_eng.py
177-
178169
pytest tests/tests_nlp/test_dependency_parsing.py
179170
pytest tests/tests_nlp/test_lemmatization.py
180171
pytest tests/tests_nlp/test_matching.py

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
- Work Area: Add Work Area - Sample
3131

3232
### ✨ Improvements
33+
- Settings: Update Settings - Files - Miscellaneous Settings - Read files in chunks of characters
34+
- Settings: Update Settings - Sentiment Analysis - Preview
3335
- Utils: Update Stanza's Serbian (Latin script) sentence tokenizer, part-of-speech tagger, and dependency parser
3436
- Utils: Update Wordless's sentence splitter and sentence segment tokenizer
3537
- Work Area: Parallel Concordancer - Parallel Unit No. - Empty parallel units are not counted

appveyor.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,6 @@ for:
6262
# Run tests
6363
test_script:
6464
# Run some tests separately to reduce memory usage
65-
- pytest tests/tests_nlp/tests_spacy/test_spacy_eng.py
66-
- pytest tests/tests_nlp/tests_stanza/test_stanza_eng.py
67-
6865
- pytest tests/tests_nlp/test_dependency_parsing.py
6966
- pytest tests/tests_nlp/test_lemmatization.py
7067
- pytest tests/tests_nlp/test_matching.py
@@ -111,9 +108,6 @@ for:
111108
# Run tests
112109
test_script:
113110
# Run some tests separately to reduce memory usage
114-
- pytest tests/tests_nlp/tests_spacy/test_spacy_eng.py
115-
- pytest tests/tests_nlp/tests_stanza/test_stanza_eng.py
116-
117111
- pytest tests/tests_nlp/test_dependency_parsing.py
118112
- pytest tests/tests_nlp/test_lemmatization.py
119113
- pytest tests/tests_nlp/test_matching.py
@@ -163,9 +157,6 @@ for:
163157
- export QT_QPA_PLATFORM=offscreen
164158

165159
# Run some tests separately to reduce memory usage
166-
- pytest tests/tests_nlp/tests_spacy/test_spacy_eng.py
167-
- pytest tests/tests_nlp/tests_stanza/test_stanza_eng.py
168-
169160
- pytest tests/tests_nlp/test_dependency_parsing.py
170161
- pytest tests/tests_nlp/test_lemmatization.py
171162
- pytest tests/tests_nlp/test_matching.py

azure-pipelines.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,6 @@ jobs:
5151
5252
- script: |
5353
:: Run some tests separately to reduce memory usage
54-
pytest tests/tests_nlp/tests_spacy/test_spacy_eng.py
55-
pytest tests/tests_nlp/tests_stanza/test_stanza_eng.py
56-
5754
pytest tests/tests_nlp/test_dependency_parsing.py
5855
pytest tests/tests_nlp/test_lemmatization.py
5956
pytest tests/tests_nlp/test_matching.py
@@ -112,9 +109,6 @@ jobs:
112109
113110
- script: |
114111
# Run some tests separately to reduce memory usage
115-
pytest tests/tests_nlp/tests_spacy/test_spacy_eng.py
116-
pytest tests/tests_nlp/tests_stanza/test_stanza_eng.py
117-
118112
pytest tests/tests_nlp/test_dependency_parsing.py
119113
pytest tests/tests_nlp/test_lemmatization.py
120114
pytest tests/tests_nlp/test_matching.py
@@ -176,9 +170,6 @@ jobs:
176170
export QT_QPA_PLATFORM=offscreen
177171
178172
# Run some tests separately to reduce memory usage
179-
pytest tests/tests_nlp/tests_spacy/test_spacy_eng.py
180-
pytest tests/tests_nlp/tests_stanza/test_stanza_eng.py
181-
182173
pytest tests/tests_nlp/test_dependency_parsing.py
183174
pytest tests/tests_nlp/test_lemmatization.py
184175
pytest tests/tests_nlp/test_matching.py

tests/tests_measures/test_measures_readability.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,8 @@ def test_colemans_readability_formula():
173173
assert cloze_pct_eng_0 == 'text_too_short'
174174
assert cloze_pct_eng_12_1 == 1.29 * (9 / 12 * 100) - 38.45
175175
assert cloze_pct_eng_12_2 == 1.16 * (9 / 12 * 100) + 1.48 * (3 / 12 * 100) - 37.95
176-
assert cloze_pct_eng_12_3 == 1.07 * (9 / 12 * 100) + 1.18 * (3 / 12 * 100) + 0.76 * (0 / 12 * 100) - 34.02
177-
assert cloze_pct_eng_12_4 == 1.04 * (9 / 12 * 100) + 1.06 * (3 / 12 * 100) + 0.56 * (0 / 12 * 100) - 0.36 * (0 / 12) - 26.01
176+
assert cloze_pct_eng_12_3 == 1.07 * (9 / 12 * 100) + 1.18 * (3 / 12 * 100) + 0.76 * (3 / 12 * 100) - 34.02
177+
assert cloze_pct_eng_12_4 == 1.04 * (9 / 12 * 100) + 1.06 * (3 / 12 * 100) + 0.56 * (3 / 12 * 100) - 0.36 * (0 / 12) - 26.01
178178
assert cloze_pct_tha_12 != 'no_support'
179179
assert cloze_pct_other_12 == 'no_support'
180180

@@ -427,8 +427,8 @@ def test_lorge_readability_index():
427427
lorge_spa_12 = wl_measures_readability.lorge_readability_index(main, test_text_spa_12)
428428

429429
assert lorge_eng_0 == 'text_too_short'
430-
assert lorge_eng_12_corrected == 12 / 3 * 0.06 + 2 / 12 * 0.1 + 2 / 12 * 0.1 + 1.99
431-
assert lorge_eng_12 == 12 / 3 * 0.07 + 2 / 12 * 13.01 + 2 / 12 * 10.73 + 1.6126
430+
assert lorge_eng_12_corrected == 12 / 3 * 0.06 + 0 / 12 * 0.1 + 2 / 12 * 0.1 + 1.99
431+
assert lorge_eng_12 == 12 / 3 * 0.07 + 0 / 12 * 13.01 + 2 / 12 * 10.73 + 1.6126
432432
assert lorge_spa_12 == 'no_support'
433433

434434
def test_luong_nguyen_dinhs_readability_formula():

0 commit comments

Comments
 (0)