|
|
|
@ -1,4 +1,4 @@
|
|
|
|
#!/bin/sh
|
|
|
|
#!/bin/bash
|
|
|
|
# Copyright (c) 2016 Baidu, Inc. All Rights Reserved
|
|
|
|
# Copyright (c) 2016 Baidu, Inc. All Rights Reserved
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
@ -33,7 +33,7 @@ test_num=$((min_len/10))
|
|
|
|
if [ $test_num -gt 12500 ];then
|
|
|
|
if [ $test_num -gt 12500 ];then
|
|
|
|
test_num=12500
|
|
|
|
test_num=12500
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
train_num=((min_len-test_num))
|
|
|
|
train_num=$((min_len-test_num))
|
|
|
|
|
|
|
|
|
|
|
|
head -n$train_num pos.shuffed >train.pos
|
|
|
|
head -n$train_num pos.shuffed >train.pos
|
|
|
|
head -n$train_num neg.shuffed >train.neg
|
|
|
|
head -n$train_num neg.shuffed >train.neg
|
|
|
|
|