The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
How to find sentences and to group results
I'm looking for the frequency of using some words and sentences in a directory of files. i would like to compare them all at once (the use of the words and the use of the sentences). I already have created regular expressions for the sentences I'm looking for in the text.
My questions are:
Tank you
My questions are:
(1) how to search for sentences with a specific pattern?
I've used Tokenize and Filter Tokens for the words, but for the sentences I didn't know what to use.
(2)how to group results per project (each project is a folder of subfolders and text files) and per group of projects (a directory of zipped folders).
The results i'm getting so far are in tables showing a row per file instead of per folder or directory.
Tagged:
0
Learner I
Answers
MarlaBot
Scott
As in attached example :
<?xml version="1.0" encoding="UTF-8"?><process version="9.3.001"> <context> <input/> <output/> <macros/> </context> <operator activated="true" class="process" compatibility="9.3.001" expanded="true" name="Process"> <parameter key="logverbosity" value="init"/> <parameter key="random_seed" value="2001"/> <parameter key="send_mail" value="never"/> <parameter key="notification_email" value=""/> <parameter key="process_duration_for_mail" value="30"/> <parameter key="encoding" value="UTF-8"/> <process expanded="true"> <operator activated="true" class="concurrency:loop_files" compatibility="9.3.001" expanded="true" height="82" name="Loop Files" width="90" x="246" y="34"> <parameter key="filter_type" value="glob"/> <parameter key="recursive" value="false"/> <parameter key="enable_macros" value="true"/> <parameter key="macro_for_file_name" value="file_name"/> <parameter key="macro_for_file_type" value="file_type"/> <parameter key="macro_for_folder_name" value="folder_name"/> <parameter key="reuse_results" value="false"/> <parameter key="enable_parallel_execution" value="true"/> <process expanded="true"> <operator activated="true" class="generate_attributes" compatibility="9.3.001" expanded="true" height="82" name="Generate Attributes" width="90" x="246" y="34"> <list key="function_descriptions"> <parameter key="MyFolder" value="%{folder_name}"/> </list> <parameter key="keep_all" value="true"/> </operator> <connect from_port="file object" to_op="Generate Attributes" to_port="example set input"/> <connect from_op="Generate Attributes" from_port="example set output" to_port="output 1"/> <portSpacing port="source_file object" spacing="0"/> <portSpacing port="source_input 1" spacing="0"/> <portSpacing port="sink_output 1" spacing="0"/> <portSpacing port="sink_output 2" spacing="0"/> </process> </operator> <portSpacing port="source_input 1" spacing="0"/> <portSpacing port="sink_result 1" spacing="0"/> </process> </operator> </process>