improve parser. add some readme.
This commit is contained in:
4
Scripts/README.md
Normal file
4
Scripts/README.md
Normal file
@ -0,0 +1,4 @@
|
||||
# Scripts Readme
|
||||
|
||||
WARNING!
|
||||
ALL of these scripts should be executed in the repository ROOT folder, not in THIS folder!
|
5
Scripts/compile_encoder.sh
Normal file
5
Scripts/compile_encoder.sh
Normal file
@ -0,0 +1,5 @@
|
||||
cd NlpEncoder
|
||||
mkdir out
|
||||
cd out
|
||||
cmake ..
|
||||
make
|
3
Scripts/compile_parser.sh
Normal file
3
Scripts/compile_parser.sh
Normal file
@ -0,0 +1,3 @@
|
||||
cd NlpParser
|
||||
antlr4 Nlp.g4
|
||||
javac Nlp*.java
|
@ -2,3 +2,10 @@
|
||||
./NlpEncoder/out/NlpEncoder uncompress NlpSrc/VT35.nlp NlpSrc/VT35.txt
|
||||
./NlpEncoder/out/NlpEncoder uncompress NlpSrc/VT40.nlp NlpSrc/VT40.txt
|
||||
./NlpEncoder/out/NlpEncoder uncompress NlpSrc/VT50.nlp NlpSrc/VT50.txt
|
||||
|
||||
cd NlpParser
|
||||
java NlpRunner ../NlpSrc/VT25.txt ../NlpSrc/VT25.json
|
||||
java NlpRunner ../NlpSrc/VT35.txt ../NlpSrc/VT35.json
|
||||
java NlpRunner ../NlpSrc/VT40.txt ../NlpSrc/VT40.json
|
||||
java NlpRunner ../NlpSrc/VT50.txt ../NlpSrc/VT50.json
|
||||
cd ..
|
Reference in New Issue
Block a user