-
Notifications
You must be signed in to change notification settings - Fork 10
/
amit_test.sh
executable file
·99 lines (80 loc) · 3.24 KB
/
amit_test.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#! /bin/sh
HOME_DIR=$HOME
#DICTIONARY_CREATION=$HOME_DIR/Desktop/Workshop/Github/testing/millets/dictionary_creation
DICTIONARY_CREATION=$HOME_DIR/Desktop/Workshop/Github/testing/millets/dictionary_creation
VERSION=ami20190217
DICTIONARY_DIR=$DICTIONARY_CREATION/$VERSION
#dictionary creation from terms
echo "Dictionary creation from terms"
# NOTE the output from the below command is send to /dev/null
ami-dictionary create \
--dictionary plantvirusesA \
--directory $DICTIONARY_DIR/dictionary \
--terms \
Alfamovirus,Allexivirus,Alphacryptovirus,Ampelovirus,Anulavirus,Apscaviroid,Aureusvirus,Avenavirus,Avsunviroid,Badnavirus,Begomovirus,Benyvirus,\
Betacryptovirus,Betaflexiviridae,Bromovirus,Bymovirus,Capillovirus,Carlavirus,Carmovirus,Caulimovirus,Cavemovirus,Cheravirus,Closterovirus,\
Cocadviroid,Coleviroid,Comovirus,Crinivirus,Cucumovirus,Curtovirus,Cytorhabdovirus,Dianthovirus,Enamovirus,Fabavirus,Fijivirus,Furovirus,\
Hordeivirus,Hostuviroid,Idaeovirus,Ilarvirus,Ipomovirus,Luteoviridae,Machlomovirus,Macluravirus,Marafivirus,Mastrevirus,Nanovirus,Necrovirus,\
Nepovirus,Nucleorhabdovirus,Oleavirus,Ophiovirus,Oryzavirus,Panicovirus,Pecluvirus,Petuvirus,Phytoreovirus,Polerovirus,Pomovirus,Pospiviroid,\
Potexvirus,Potyviridae,Potyvirus,Reoviridae,Rhabdoviridae,Rymovirus,Sadwavirus,Sequivirus,Sobemovirus,Tenuivirus,Tobamovirus,Tobravirus,\
Tombusviridae,Tombusvirus,Topocuvirus,Tospovirus,Trichovirus,Tritimovirus,Tungrovirus,Tymovirus,Umbravirus,Unassigned,Varicosavirus,Vitivirus,Waikavirus > /dev/null
if [ -d "$HOME_DIR/ContentMine" ];then
echo "contentmine directory present"
rm -r $HOME_DIR/ContentMine
fi
if [ -d ./target ];then
echo "target directory present"
rm -r ./target
fi
printf "\n"
#dictionary creation from wikpedia page
echo "Dictionary creation from wikipedia page"
ami-dictionary create\
--input https://en.wikipedia.org/wiki/Millet\
--informat wikipage\
--dictionary millets_wikipage \
--outformats xml,json,html \
--directory $DICTIONARY_DIR/dictionary > /dev/null
if [ -d "$HOME_DIR/ContentMine" ];then
echo "contentmine directory present"
rm -r $HOME_DIR/ContentMine
fi
if [ -d ./target ];then
echo "target directory present"
rm -r ./target
fi
printf "\n"
#dictionary creation from wikipedia list
echo "Dictionary creatiion from wikipedia list"
ami-dictionary create\
--input https://en.wikipedia.org/wiki/List_of_Indian_spices \
--informat wikitable \
--namecol 'Standard English'\
--dictionary spices_list\
--outformats xml,json,html \
--directory $DICTIONARY_DIR/dictionary > /dev/null
if [ -d "$HOME_DIR/ContentMine" ];then
echo "contentmine directory present"
rm -r $HOME_DIR/ContentMine
fi
if [ -d ./target ];then
echo "target directory present"
rm -r ./target
fi
printf "\n"
#dictionary creation from wikipedia category
echo "Dictionary creation from wikipedia category"
ami-dictionary create\
--input https://en.wikipedia.org/wiki/Category:Millets\
--informat wikicategory \
--dictionary millets_category\
--outformats xml,json,html\
--directory $DICTIONARY_DIR/dictionary > /dev/null
if [ -d "$HOME_DIR/ContentMine" ];then
echo "contentmine directory present"
rm -r $HOME_DIR/ContentMine
fi
if [ -d ./target ];then
echo "target directory present"
rm -r ./target
fi