Skip to content

Commit b535f31

Browse files
committed
Initial commit
0 parents  commit b535f31

165 files changed

Lines changed: 80615 additions & 0 deletions

File tree

Some content is hidden

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

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/data/
2+
/data_raw/
3+
.DS_Store
4+
.venv
5+
.ipynb_checkpoints/

LSA.ipynb

Lines changed: 185 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 68 additions & 0 deletions

data-processing.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
from src.utils import *
2+
3+
oils = ['canola', 'coconut', 'olive', 'palm', 'peanut', 'soybean', 'sunflower']
4+
5+
for oil in oils:
6+
in_path = os.path.normpath('./data_raw/'+oil) # dataset path
7+
out_path = os.path.normpath('./data/'+oil+'/') # output path
8+
out_path_anon = os.path.normpath('./data_id/'+oil) # output path
9+
pickles_gen(in_path, out_path, out_path_anon)
10+
print(f'{oil} done!')
11+
12+
languages = os.listdir('./data_raw/palm_languages/')
13+
14+
for language in languages:
15+
in_path = os.path.normpath('./data_raw/palm_languages/'+language) # dataset path
16+
out_path = os.path.normpath('./data/palm_languages/'+language+'/') # output path
17+
out_path_anon = os.path.normpath('./data_id/palm_languages/'+language) # output path
18+
pickles_gen(in_path, out_path, out_path_anon)
19+
print(f'{language} done!')

data_id/canola/ids.pkl.gz

1.57 MB
Binary file not shown.

data_id/coconut/ids.pkl.gz

30.8 MB
Binary file not shown.

data_id/olive/ids.pkl.gz

38.6 MB
Binary file not shown.

data_id/palm/ids.pkl.gz

22.1 MB
Binary file not shown.
354 KB
Binary file not shown.
1.83 KB
Binary file not shown.

0 commit comments

Comments
 (0)