<commit_before># Niland Import Script

Installation
----
```bash
git clone https://github.com/niland/import-script.git
cd import-script
pip install -r requirements.txt
```

Usage
----
```bash
niland_importer.py --api-key YOUR_PERSONAL_API_KEY --csv-path FULL_PATH_TO_THE_CSV_FILE
```

CSV Specifications
----

* The column separator **must be** `;`

### Columns ###

|reference|title|artist|audio_path|audio_url|album|popularity|duration|isrc|year|tags|
|-|-|-|-|-|-|-|-|-|-|
|string*|string*|string*|Relative or absolute os path. Mandatory if no 'audio_url'|Absolute web url, Mandatory if no 'audio_path' (if both are provided, 'audio_path' is used)|string|float|float|string|int|format should be: TagCollectionName&#124;TagName,TagCollectionName&#124;TagName,...|

Mandatory elements (*):
* reference
* title
* artist_name

You need to provide one of these elements:
* audio_path (relative or absolute os path)
* audio_url (absolute web url)

  You don't have to fill in both audio_path AND audio_url (if you do, the audio_path will be used).

All other elements are optional

For the element "tags":
* You must group similar tags under a TagCollection (Instruments, tempos, Genres, etc...)
* You can then add as many tags as you want for each track following this format:   `TagCollectionName|TagName,TagCollectionName|TagName,...`<commit_msg>Update README. Fix the table<commit_after># Niland Import Script

Installation
----
```bash
git clone https://github.com/niland/import-script.git
cd import-script
pip install -r requirements.txt
```

Usage
----
```bash
python niland_importer.py --api-key YOUR_PERSONAL_API_KEY --csv-path FULL_PATH_TO_THE_CSV_FILE
```

CSV Specifications
----

* The column separator **must be** `;`

### Columns ###

|reference|title|artist|audio\_path|audio\_url|album|popularity|duration|isrc|year|tags|
|---------|-----|------|-----------|----------|-----|----------|--------|----|----|----|
|string\*|string\*|string\*|Relative or absolute os path. Mandatory if no audio\_url|Absolute web url, Mandatory if no audio\_path (if both are provided, audi\_path is used)|string|float|float|string|int|Format should be: TagCollectionName&#124;TagName,TagCollectionName&#124;TagName,...|

Mandatory elements (\*):
* reference
* title
* artist

You need to provide one of these elements:
* audio\_path (relative or absolute os path)
* audio\_url (absolute web url)

  You don't have to fill in both audio\_path AND audio\_url (if you do, the audio_path will be used).

All other elements are optional

For the element "tags":
* You must group similar tags under a TagCollection (Instruments, tempos, Genres, etc...)
* Try to keep your tags as consistent as possible (look for misspelling, classification errors, etc...)
* You can then add as many tags as you want for each track following this format:   `TagCollectionName|TagName,TagCollectionName|TagName,...`
{'fraction_non_alphanumeric': 0.14864864864864866, 'fraction_numerical': 0.004158004158004158, 'mean_word_length': 4.3562152133580705, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6354797', 'n_tokens_mistral': 920, 'n_tokens_neox': 866, 'n_words': 289}