Hello Anthony,
I created a corpus from a bunch of .txt files with sequence of commands (one for each line). One short passage of "text" is like the following :
/file/read-case "13_69_oven.msh"
/define/models/radiation/s2s? y
/define/models/radiation/s2s-parameters/set-global-faces-per-surface-cluster 10
/define/models/radiation/radiation-iteration-parameters 200 10 1e-08
/define/models/radiation/s2s-parameters/compute-write-vf "calculated_view_factors.s2s.gz"
/define/models/viscous/laminar? y
;;
/define/boundary-conditions/set/wall surface_1 () thermal-bc y n 420 n 0.4
/define/boundary-conditions/set/wall surface_2 () heat-flux n 40000. in-emiss n 0.4 quit
/define/boundary-conditions/set/wall surface_3 () thermal-bc y temperature temperature n 400 in-emiss n 0.4 quit
I want to be able to execute a keyword in context search for helping me to find
the exact "sintax" of a given command. For instance, if a type models: I want to recover
the three lines :
/define/models/radiation/s2s? y
/define/models/radiation/s2s-parameters/set-global-faces-per-surface-cluster 10
/define/models/radiation/radiation-iteration-parameters 200 10 1e-08
How can I do that ? Should a modify the step of building the corpora, or I can acquire that
using a regex expression ?
Thank you very much for answering.
Best regards,
Alex Costa - Brasil