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
"Generate N Grams error [Solved]"
gunjanamit
Member Posts: 28 Contributor II
Hi,
I am using generate N grams to extract all the numbers of length 14.
But it is considering Space also as an character and not giving correct output.
Can anyone help me on this.
Regards
Gunjan
I am using generate N grams to extract all the numbers of length 14.
But it is considering Space also as an character and not giving correct output.
Can anyone help me on this.
Regards
Gunjan
Tagged:
0
Answers
Best, Marius
Below is the process
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<process version="5.2.001">
<context>
<input/>
<output/>
<macros/>
</context>
<operator activated="true" class="process" compatibility="5.2.001" expanded="true" name="Process">
<process expanded="true" height="386" width="748">
<operator activated="true" class="read_excel" compatibility="5.2.001" expanded="true" height="60" name="Read Excel" width="90" x="45" y="120">
<parameter key="excel_file" value="C:\Users\guagg\Desktop\bookk.xls"/>
<parameter key="imported_cell_range" value="A2:A14"/>
<parameter key="first_row_as_names" value="false"/>
<list key="annotations">
<parameter key="0" value="Name"/>
</list>
<list key="data_set_meta_data_information"/>
</operator>
<operator activated="true" class="nominal_to_text" compatibility="5.2.001" expanded="true" height="76" name="Nominal to Text" width="90" x="165" y="202"/>
<operator activated="true" class="text:process_document_from_data" compatibility="5.2.002" expanded="true" height="76" name="Process Documents from Data" width="90" x="380" y="210">
<parameter key="prune_method" value="absolute"/>
<parameter key="prune_below_absolute" value="2"/>
<parameter key="prune_above_absolute" value="9999"/>
<list key="specify_weights"/>
<process expanded="true" height="414" width="762">
<operator activated="true" class="text:generate_n_grams_characters" compatibility="5.2.002" expanded="true" height="60" name="Generate n-Grams (Characters)" width="90" x="313" y="30">
<parameter key="length" value="14"/>
</operator>
<connect from_port="document" to_op="Generate n-Grams (Characters)" to_port="document"/>
<connect from_op="Generate n-Grams (Characters)" from_port="document" to_port="document 1"/>
<portSpacing port="source_document" spacing="0"/>
<portSpacing port="sink_document 1" spacing="0"/>
<portSpacing port="sink_document 2" spacing="0"/>
</process>
</operator>
<connect from_op="Read Excel" from_port="output" to_op="Nominal to Text" to_port="example set input"/>
<connect from_op="Nominal to Text" from_port="example set output" to_op="Process Documents from Data" to_port="example set"/>
<connect from_op="Process Documents from Data" from_port="example set" to_port="result 2"/>
<connect from_op="Process Documents from Data" from_port="word list" to_port="result 1"/>
<portSpacing port="source_input 1" spacing="0"/>
<portSpacing port="sink_result 1" spacing="0"/>
<portSpacing port="sink_result 2" spacing="0"/>
<portSpacing port="sink_result 3" spacing="0"/>
</process>
</operator>
</process>
Best, Marius
Best, Marius
By alphanumeric number I mean "2AFGH0A121XO92"
If I want to put this alphanumeric code back to excel file in a new column (in same row of comment) then which operator I need to use?
Thanks for your help!!!
Regards
Gunjan
Best, Marius