Base on CSP (Cornelius Service Platform). This was the platform roadmap built at June, 2012.
To see if previously installed
javac -version
Download Java SE
http://www.oracle.com/technetwork/java/javase/downloads/index.html
I don't have a Debian-based Linux environment available so this is untested, but it should be as follows:
Download CoreNLP 4.5.4 and Unzip it somewhere:
(Debian-based Linux and MacOS X)
mkdir StanfordCoreNLP
cd StanfordCoreNLP
curl -O -L http://nlp.stanford.edu/software/stanford-corenlp-latest.zip
unzip stanford-corenlp-latest.zip
cd stanford-corenlp-4.5.4
The root folder is then, for example:
/usr/local/StanfordCoreNLP/stanford-corenlp-4.5.4
Then download Chinese and English models to the root folder above:
cd /usr/local/StanfordCoreNLP/stanford-corenlp-4.5.4
wget http://nlp.stanford.edu/software/stanford-corenlp-4.5.4-models-chinese.jar
wget http://nlp.stanford.edu/software/stanford-corenlp-4.5.4-models-english.jar
Add all the .jar files to the CLASSPATH and the root folder to CORENLP_HOME
In MacOSX we don’t have the ‘realpath’ module so install as a part of GNU coreutils with homebrew
brew install coreutils
In Apple M1 chip:
arch -arm64 brew install coreutils
add the following to ~/.bash_profile for user installation
CORENLP_HOME="/usr/local/StanfordCoreNLP/stanford-corenlp-4.5.4"
for file in `find $CORENLP_HOME -name "*.jar"`; do export
CLASSPATH="$CLASSPATH:`realpath $file`"; done
Now we can run the fowllowing command to activate new classpath setting
source ~/.bash_profile
Run a NLP server with chinese model
cd $CORENLP_HOME
java -Xmx4g -cp "*" edu.stanford.nlp.pipeline.StanfordCoreNLPServer -serverProperties StanfordCoreNLP-chinese.properties -port 9000 -timeout 15000
Now we can rum maven install
cd $CSP_HOME
./build.sh
Then you can run the Portal with the following commands as follow
cd $CSP_HOME
./run_portal.sh
After running success, open the browser to see
http://localhost:8081
Enjoy!
Because this project is written by Java language so I decide to follow this coding standard and Google is one of the best IT company in the world, so I decide to follow their coding standard such as there are 100 columns per row:
https://google.github.io/styleguide/javaguide.html
Builder
Mark Wong