forked from kristjan/cjvt-srl-tagging
		
	Makefile fix
This commit is contained in:
		
							parent
							
								
									d67705e81e
								
							
						
					
					
						commit
						66c43b3d19
					
				
							
								
								
									
										8
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								Makefile
									
									
									
									
									
								
							| @ -2,7 +2,10 @@ | ||||
| 
 | ||||
| all: srl_tagged_files | ||||
| 
 | ||||
| srl_tagged_files: #tsv_files
 | ||||
| json_files: srl_tagged_files | ||||
| 	cd tools; python3 gen_json.py | ||||
| 
 | ||||
| srl_tagged_files: tsv_files | ||||
| 	# cd tools/srl-20131216; ./scripts/parse_srl_only_mod.sh; cd - | ||||
| 	cd tools/srl-20131216; ./tag_all.sh ../../data/kres_example_tsv ../../data/kres_example_srl | ||||
| 
 | ||||
| @ -11,3 +14,6 @@ tsv_files: fillpred_model/model.pickle | ||||
| 
 | ||||
| fillpred_model/model.pickle: | ||||
| 	cd tools/fillpred_model; $(MAKE) | ||||
| 
 | ||||
| env: | ||||
| 	cd dockerfiles; cd python-java; $(MAKE) | ||||
|  | ||||
							
								
								
									
										5
									
								
								tools/gen_json.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								tools/gen_json.py
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,5 @@ | ||||
| import Path | ||||
| 
 | ||||
| if __name__ == "__main__": | ||||
|     print("TODO: take data/kres_example_srl/* and generate data/kres_example_json/*") | ||||
|     print("TODO: check ssj and kres <links> for structure") | ||||
| @ -5,7 +5,7 @@ OUT_FOLDER="$2" | ||||
| SUFFIX="srl.tsv" | ||||
| 
 | ||||
| mkdir -p $OUT_FOLDER | ||||
| rm $OUT_FOLDER/*${SUFFIX} | ||||
| rm $OUT_FOLDER/*${SUFFIX} &> /dev/null | ||||
| 
 | ||||
| for infile in $IN_FOLDER/*; do | ||||
| 	echo "Tagging: ${infile}" | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user