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

Extract Information Using Regular Expressions

methodmethod Member Posts: 1 Learner III
edited August 2019 in Help
Hello,

I am following a tutorial from VancouverData on web crawling using RapidMiner.  

1.  Use CrawlWeb to load listings from Craigslist.org
2.  Use ProcessDocumentsFromFiles + Extract Information to create specific item fields

This is all working when I use XPath as the Extract Information query type.  However, when I change the query type to Regular Expression, I get errors.

Extract Information Settings:
query type: Regular Expression
attribute type: Nominal
regular expression queries (1):
attribute name: price
query expression: \$\d*

The error coming back is immediate:  "Process failed.  No group 1"

Any ideas on what I'm doing wrong here?
Tagged:

Answers

  • MultiMulti Member Posts: 4 Contributor I
    Yes, i had the same problem!
    Use surrounding brackets: (\$\d*) that should fix it. The Error is not helpful at all... ::)
Sign In or Register to comment.