autoRun_iterate.sh 765 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #!/bin/bash
  2. export DEEPDIVE_NUM_PROCESSES=1
  3. #None interactive mode
  4. #export DEEPDIVE_INTERACTIVE=false
  5. export DEEPDIVE_PLAN_EDIT=false
  6. deepdive do sentences
  7. export DEEPDIVE_NUM_PROCESSES=11
  8. count=1
  9. flag=-1
  10. while(($flag<0))
  11. do
  12. deepdive do probabilities
  13. if [ $? -eq 0 ]
  14. then
  15. flag=1
  16. fi
  17. if [ $count -gt 10 ]
  18. then
  19. flag=1
  20. fi
  21. let "count++"
  22. done
  23. epoch=2
  24. int=1
  25. while(($int<=$epoch))
  26. do
  27. python ./udf/autoRun_replacelabel.py save
  28. python ./udf/autoRun_replacelabel.py iterate
  29. # times = `expr $int % 2`
  30. # if [ $times -eq 1 ]
  31. # then
  32. # rm ./deepdive.conf
  33. # cp ./deepdive_after.conf deepdive.conf
  34. # else
  35. # rm ./deepdive.conf
  36. # cp ./deepdive_before.conf deepdive.conf
  37. # fi
  38. # deepdive compile
  39. deepdive model ground&&deepdive do probabilities
  40. let "int++"
  41. done