init
Browse files- timelm_preprocessor.py +6 -2
timelm_preprocessor.py
CHANGED
@@ -10,7 +10,11 @@ optional arguments:
|
|
10 |
--blacklist_pct BLACKLIST_PCT
|
11 |
Percent of most frequent users to ignore.
|
12 |
Example:
|
13 |
-
python
|
|
|
|
|
|
|
|
|
14 |
"""
|
15 |
|
16 |
import argparse
|
@@ -66,7 +70,7 @@ if __name__ == '__main__':
|
|
66 |
parser.add_argument('--blacklist_pct', type=float, required=False, default=0.01,
|
67 |
help='Percent of most frequent users to ignore.')
|
68 |
args = parser.parse_args()
|
69 |
-
os.makedirs(args.out, exist_ok=True)
|
70 |
|
71 |
logging.info('1st pass - Collecting username counts ...')
|
72 |
n_input_tweets = 0
|
|
|
10 |
--blacklist_pct BLACKLIST_PCT
|
11 |
Percent of most frequent users to ignore.
|
12 |
Example:
|
13 |
+
python timelm_preprocessor.py --src /mnt/share/daniel_tweet_dump/2018.raw.jl --out dataset/tweets/2018.jsonline
|
14 |
+
python timelm_preprocessor.py --src /mnt/share/daniel_tweet_dump/2019.raw.jl --out dataset/tweets/2019.jsonline
|
15 |
+
python timelm_preprocessor.py --src /mnt/share/daniel_tweet_dump/2020.raw.jl --out dataset/tweets/2020.jsonline
|
16 |
+
python timelm_preprocessor.py --src /mnt/share/daniel_tweet_dump/2021.raw.jl --out dataset/tweets/2021.jsonline
|
17 |
+
python timelm_preprocessor.py --src /mnt/share/daniel_tweet_dump/2022.raw.jl --out dataset/tweets/2022.jsonline
|
18 |
"""
|
19 |
|
20 |
import argparse
|
|
|
70 |
parser.add_argument('--blacklist_pct', type=float, required=False, default=0.01,
|
71 |
help='Percent of most frequent users to ignore.')
|
72 |
args = parser.parse_args()
|
73 |
+
os.makedirs(os.path.dirname(args.out), exist_ok=True)
|
74 |
|
75 |
logging.info('1st pass - Collecting username counts ...')
|
76 |
n_input_tweets = 0
|