-
Notifications
You must be signed in to change notification settings - Fork 17
INSTALLING ami3
There are two methods. If you are developing ami3
you should use the first. If you are doing production runs and not Maven-savvy then use the second JAR-file route
If you can compile and run under maven
and/or Eclipse/IntelliJ/Netbeans that's the most powerful way.
There are a lot of tests and a lot of them are out of date and fail, so we suggest
git clone https://github.com/petermr/ami3.git
cd ami3
mvn install -Dmaven.test.skip=true
That will build ami3/target/appassembler/bin
and ami3/target/appassembler/repo
The exes are in the first. If your PATH contains this, then you can run ami
commands.
My path includes:
/Users/pm286/workspace/cmdev/ami3/target/appassembler/bin/
(Note that if you rebuild with maven
or maven clean
this dir gets wiped and overwritten by a new version.)
Download the latest JAR from https://github.com/petermr/ami-jars3 NOTE CHANGED REPO. They are in dated directories, probably every few days. Use new ones if bugs are fixed or new features are added that you need.
see https://github.com/petermr/tigr2ess/blob/master/installation/INSTALLATION.md
This is a year old. It should be roughly accurate.
PLEASE copy to openVirus
and update if necessary
Name: Ambreen Hamadani
- Downloaded and installed JDK from Oracle(https://www.oracle.com/java/technologies/javase-jdk14-downloads.html)
- Downloaded and installed
maven
(https://maven.apache.org/install.html) - Cloned the ami3 from Github and added it to path as suggested above.
- Tested its installation by running
ami --help
- Installation successful (0 errors, 0 warnings)
Reference Tutorial](https://github.com/petermr/openVirus/blob/master/examples/n95/OVERVIEW.md)
- An attempt was made to run ami3 on 100 viral epidemic papers using country disease funders dictionaries.
- getpapers was used to create directory and the respository of papers:
getpapers -q "viral epidemics" -o ami_test_1 -f v_epid/log.txt -x -p -k 100
- The directory, ami_test_1 was used as CProject directory for ami3:
ami -p ami_test_1 search --dictionary country disease funders
- 17 new files got created within ami_test_1 ( 12 XML, 1 folder, 4 HTML)
- 0 Errors, multiple warnings like:
Warning at procedure xsl:unnamed on line 0 XTDE0540 Ambiguous rule match for /article/front[1]/journal-meta[1]
Name: Kareena Singh
Steps of installation
- Install Java
- You can download and install java using https://java.com/en/download/
- Make sure you have the latest version, in my case version 1.8
- Test the installation by giving the command
java -version
in your command prompt and you will getjava version "1.8.0_251"
- Install latest JDK
- Download and install the latest jdk for your OS from https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html
- Set path of contentmine directory and jdk using the following link https://github.com/petermr/tigr2ess/blob/master/installation/windows/set_path/set_path.md
- Install git
- Download and install latest git using https://git-scm.com/downloads
- Launch git bash
- Test the installation by giving the command
git -version
in your command prompt and you will getgit version 2.27.0.windows.1
- Install maven
- Download and install maven using https://maven.apache.org/install.html
- Extract all files
- Set path variable
- Test installation using
mvn -version
and you will getapache maven version 3.6.3
- Open your command prompt and enter the following commands
git clone https://github.com/petermr/ami3.git
cd ami3
mvn install -Dmaven.test.skip=true
This will let you install and build ami
- Test your installation using
ami-pdf
- Error:
'ami' is not recognized as an internal or external command, operable program or batch file.
- Make sure you have set path variables for jdk, maven and contentmine using the above links.
-
getpapers
was used to create directory/folder and the repository of papersgetpapers -q "viral epidemics" -o ami_test_2 -f v_epid/log.txt -x -p -k 100
- This will create a CProject directory named as "ami_test_2"
- Now to search about your dictionary you can enter
ami-pdf -p ami_test_2 search --dictionary viruses
- Output- 82 files created under the directory "ami_test_2" containing pdf, xml and images about my dictionary search All downloads succeeded.