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
[SOLVED]Problem with "Extract Information" operator turning numerical into polyn
I have a problem with the "extract information" operator. I'm parsing a html to fetch a numerical value using a regexp. When looking at the output I can see that it has fetched the correct numbers. However, the type of the attribute has changed from numerical to polynomial. Anybody got a suggestion for a solution to this problem? I paste the xml of my operator below, so you can see if I'm messing something up in the process.
<operator activated="true" class="text:extract_information" compatibility="5.1.003" expanded="true" height="60" name="Extract Comments" width="90" x="112" y="120">
<parameter key="query_type" value="Regular Expression"/>
<list key="string_machting_queries">
<parameter key="Comments" value="<a href="#article-comments" class="comments" rel="nofollow">. kommentarer</a>"/>
</list>
<parameter key="attribute_type" value="Numerical"/>
<list key="regular_expression_queries">
<parameter key="Comments" value=".*class="comments".*>([0-9]+).*kommentarer\<\/a>"/>
</list>
<list key="regular_region_queries"/>
<list key="xpath_queries"/>
<list key="namespaces"/>
<list key="index_queries"/>
</operator>
0
Answers
it seems you have found a bug. You can work around it with the Parse Numbers operator.
Kind regards,
Marius