Vasily Alexeev commited on
Commit
dda2098
·
1 Parent(s): 37235bc

add info about reproduction

Browse files
Files changed (2) hide show
  1. README.md +18 -0
  2. SHA256SUMS +1 -1
README.md CHANGED
@@ -59,6 +59,24 @@ Both UTF-8 CSV files have exactly `id,raw_text,vw_text` columns and lexicographi
59
 
60
  NOOW means occurrence order after normalization, not original or reversible prose. English preprocessing uses Python 3.11.15, NLTK 3.9.2 and NLTK-data commit `550b6625bcef1f2abff2ff770a5a0d272c9c6b2a`: WordPunctTokenizer, lowercase, lowercased input token length at least 2 before POS tagging and lemmatization, `averaged_perceptron_tagger_eng`, WordNet POS mapping J/V/N/R with noun fallback, English stopword removal and `lemma.isalpha()` filtering. Output lemmas are not filtered by length and can contain one character. Names are not masked. Near-duplicate shingles use lowercased WordPunct body tokens of length at least two containing letters only.
61
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
62
  ## Loading and metadata
63
 
64
  The default configuration is `noow`; the alternative is `bow`. Both expose the full retained population as `corpus`:
 
59
 
60
  NOOW means occurrence order after normalization, not original or reversible prose. English preprocessing uses Python 3.11.15, NLTK 3.9.2 and NLTK-data commit `550b6625bcef1f2abff2ff770a5a0d272c9c6b2a`: WordPunctTokenizer, lowercase, lowercased input token length at least 2 before POS tagging and lemmatization, `averaged_perceptron_tagger_eng`, WordNet POS mapping J/V/N/R with noun fallback, English stopword removal and `lemma.isalpha()` filtering. Output lemmas are not filtered by length and can contain one character. Names are not masked. Near-duplicate shingles use lowercased WordPunct body tokens of length at least two containing letters only.
61
 
62
+ ## Reproduce from source
63
+
64
+ The shared standalone code is in the [SciNews preprocessing folder](https://huggingface.co/datasets/TopicNet/SciNews/tree/main/preprocessing). Follow its [setup and code-download instructions](https://huggingface.co/datasets/TopicNet/SciNews/blob/main/preprocessing/README.md) to download only that folder at a full commit revision and create the locked Linux x86-64 environment with Python 3.11.15. Access follows the SciNews repository's permissions. No parent project checkout, BigARTM or TopicNet installation is needed.
65
+
66
+ From the directory containing the downloaded `preprocessing/` folder, choose writable source storage and fresh output and scratch paths. First obtain the original `ReadMe.txt` from the [official version 6 release](https://data.mendeley.com/datasets/9rw3vkcfy4/6) and place it at `/path/to/sources/wos/ReadMe.txt`, preserving its exact bytes. Its required size and SHA-256 are listed in the shared instructions and checked by the command:
67
+
68
+ ```bash
69
+ python preprocessing/prepare.py download --dataset wos-5736 --sources-dir /path/to/sources
70
+ python preprocessing/prepare.py build --dataset wos-5736 \
71
+ --sources-dir /path/to/sources \
72
+ --output-dir /path/to/rebuilt/WOS-5736/data \
73
+ --scratch-dir /path/to/scratch/wos-5736
74
+ python preprocessing/prepare.py verify --dataset wos-5736 \
75
+ --data-dir /path/to/rebuilt/WOS-5736/data
76
+ ```
77
+
78
+ The download validates the manually supplied notice and provides pinned `wos/WebOfScience.zip` and NLTK resources under the source directory. All three WOS selectors share these sources; the selector above builds WOS-5736. Build and verify run offline after setup. The output contains only `noow.csv`, `bow.csv`, `labels.json`, `splits.json` and `hierarchy.json`; verification compares them with the recorded SHA-256 values. Builds refuse to overwrite outputs. Preserve failed output and scratch files, and use fresh paths for a retry. The shared code's MIT license does not change the source-text rights below.
79
+
80
  ## Loading and metadata
81
 
82
  The default configuration is `noow`; the alternative is `bow`. Both expose the full retained population as `corpus`:
SHA256SUMS CHANGED
@@ -1,5 +1,5 @@
1
  947f03cf79a99d7f9061220c575021c918ae95f64ab75c4112917be804fb51cd .gitattributes
2
- 253c0b8eba717b399530fe5722588fdb8e7b5d79b8ae3c133124d9984fe2336f README.md
3
  6da4ab1e624c4ef61c46600d727770f873ff4db3c15541fb481e7af8a715c0ec SOURCE_README.txt
4
  fb9f0b1d6852c6cb23adf1a591cd836d35d3366765ad93d5dea31571b5d6f040 data/bow.csv
5
  7b862eb58b8c3d2f21511cb16f4f380161609cf876bb857c617ff54fdc1352d6 data/hierarchy.json
 
1
  947f03cf79a99d7f9061220c575021c918ae95f64ab75c4112917be804fb51cd .gitattributes
2
+ b899c37db2999952c1c6ef85904d88edddb17d9abf997a8e4f427378c2706d93 README.md
3
  6da4ab1e624c4ef61c46600d727770f873ff4db3c15541fb481e7af8a715c0ec SOURCE_README.txt
4
  fb9f0b1d6852c6cb23adf1a591cd836d35d3366765ad93d5dea31571b5d6f040 data/bow.csv
5
  7b862eb58b8c3d2f21511cb16f4f380161609cf876bb857c617ff54fdc1352d6 data/hierarchy.json