Restructure data processing#41
Merged
Merged
Conversation
…inear interpolation
… of price for merge
* removed redudant import * replace inconsistent quotation marks * removed stemming and all text processing * changed topic name seperator from " " to "_"
…nged normalisation method
The logging is the main reason why the scraper fails when it is executed by Airflow. The titles are non-unicode objects which when attempted to write to file it causes an exception. This is not the case for stand alone execution as the logs for Scrapy has been disabled in the settings file.
The commodity tagging has not been functioning since the last integration. After a thorough investigation, it was found that this is due to the change in input. Previously, the articles were a list of tokens but it has now been changed to a single string. We split the string into tokens to resolve this issue
…nment warning and avoid modification to the raw data
Changes are: * Remove hard coding of the JSON file path name, now an environment variable SCRAPER_FILE_PREFIX. * Removed stop words `SanitizeArticlePipeline`. Stop words now processed by the article processing module. Furthre, this speeds up the scraper significantly. * Commented out logging in `AmisJsonPipeline`. This is the soruce of the unicode problem which resulted in the termination of Airflow. When executed in standalone mode, with the log turned off, theerror is not triggered. However, when log is created in Airflow, the error is triggered and terminates the process. * Split the processor into processor and controller * Execute the processor directory in the scraper directory, this avoids copying of files.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.