Datasets:

Modalities:
Image
Text
Formats:
parquet
Languages:
Danish
ArXiv:
DOI:
Libraries:
Datasets
Dask
License:
Kenneth Enevoldsen commited on
Commit
e71a258
·
unverified ·
1 Parent(s): d93483b
data/memo/create.py CHANGED
@@ -96,9 +96,9 @@ def load_memo(repo_path: Path) -> pd.DataFrame:
96
 
97
  text_without_metadata = [t for t in text_df_fileames if t not in metadata_filenames]
98
 
99
- assert len(text_without_metadata) == 0, (
100
- f"Some texts in the repository do not have metadata: {text_without_metadata}"
101
- )
102
 
103
  # merge texts with metadata
104
  merged_df = pd.merge(
 
96
 
97
  text_without_metadata = [t for t in text_df_fileames if t not in metadata_filenames]
98
 
99
+ assert (
100
+ len(text_without_metadata) == 0
101
+ ), f"Some texts in the repository do not have metadata: {text_without_metadata}"
102
 
103
  # merge texts with metadata
104
  merged_df = pd.merge(
src/dynaword/update_descriptive_statistics.py CHANGED
@@ -100,7 +100,6 @@ def update_dataset(
100
  sheet.body = sheet.add_descriptive_stats(descriptive_stats=desc_stats)
101
  sheet.body = sheet.add_sample_and_description()
102
 
103
-
104
  if dataset_name == "default":
105
  logger.info("Updating Overview table")
106
  overview_table = create_overview_table_str()
 
100
  sheet.body = sheet.add_descriptive_stats(descriptive_stats=desc_stats)
101
  sheet.body = sheet.add_sample_and_description()
102
 
 
103
  if dataset_name == "default":
104
  logger.info("Updating Overview table")
105
  overview_table = create_overview_table_str()
src/tests/test_quality/test_short_texts.py CHANGED
@@ -16,6 +16,6 @@ def test_no_one_word_documents(dataset_name: str):
16
 
17
  one_word_docs = ds.filter(lambda x: x["token_count"] <= 1)
18
 
19
- assert len(one_word_docs) == 0, (
20
- f"Found {len(one_word_docs)} one-word documents in dataset '{dataset_name}'"
21
- )
 
16
 
17
  one_word_docs = ds.filter(lambda x: x["token_count"] <= 1)
18
 
19
+ assert (
20
+ len(one_word_docs) == 0
21
+ ), f"Found {len(one_word_docs)} one-word documents in dataset '{dataset_name}'"