Machine Translation Testing via Syntactic Tree Pruning
./:STP Source Code
./data/original_sentences: original sentences in the form of txt and excel
./data/evaluated_results: suspected translate errors by each tool after human evaluation
./related-documentation: relationship map used when pruning
./test: test root
- python 3.6
- pip install -r requirements.txt
- Stanford Corenlp
-
Download Stanford Corenlp service(Windows/Linux/MacOS)
-
Detect translation errors:
- Set dataset, api_key in main.py
- run main.py
-
Data process
- After detecting translation errors
- run all_output.py
-
RQ Codes:
- edit main function,and run result/all_output
- set overlap in main function: overlap()
- ErrorType in main function: STPType()
- IssueCount in main function:Pairs()
- ErrorCount in main function:Error()