Comments (8)
Yes, I will try to find patterns in other to filter it.
If it doesn't work I will try to improve the scrapper.
from cdqa.
I just notice that sometimes the scrapper does not detect some useful text.
For example, in this article the paragraph highlighted below is not found in the csv.
I think we will have to try to improve the scrapper.
from cdqa.
Yes, I completely agree that it will be pretty difficult to obtain a perfect dataset
For now I am trying to filter at the maximum the data set we have
from cdqa.
The scrapped articles have a very complicated and mixed list of paragraphs, some phrases do not have anything to do with the articles such as "Share this page !", "Tools" and even some text that work as links to other pages.
For exemple, the text in the csv for second article is:
"['Category', 'Share', 'Tools', 'BNP Paribas has received the notification by the European Central Bank of the outcome of the 2018 Supervisory Review and Evaluation Process (SREP) confirming the Common Equity Tier 1 (CET1) requirement that the Group has to respect on a consolidated basis.', 'The Common Equity Tier 1 (CET1) requirement that the Group has to respect on a consolidated basis is 9.83% since 1st January 2019 (excluding the Pillar 2 guidance, not public), which includes 1.50% for the G-SIB buffer, 2.50% for the Conservation buffer, 1.25% for the Pillar 2 requirement (unchanged vs. last year) and 0.08% of countercyclical buffer. The requirement for the Tier 1 Capital is 11.33% and that for the Total Capital is 13.33%.', 'With a CET1 ratio at 11.8%, a Tier 1 ratio at 13.1% and a Total Capital ratio at 15.0% as at 31 December 2018, the Group is well above the regulatory requirements.', '', 'BNP Paribas is a leading bank in Europe with an international reach. It has a presence in 73 countries, with more than 196,000 employees, including around 149,000 in Europe. The Group has key positions in its three main activities: Domestic Markets and International Financial Services (whose retail-banking networks and financial services are covered by Retail Banking & Services) and Corporate & Institutional Banking, which serves two client franchises: corporate clients and institutional investors. The Group helps all its clients (individuals, community associations, entrepreneurs, SMEs, corporates and institutional clients) to realise their projects through solutions spanning financing, investment, savings and protection insurance. ', 'In Europe, the Group has four domestic markets (Belgium, France, Italy and Luxembourg) and BNP Paribas Personal Finance is the European leader in consumer lending.', 'BNP Paribas is rolling out its integrated retail-banking model in Mediterranean countries, in Turkey, in Eastern Europe and a large network in the western part of the United States. In its Corporate & Institutional Banking and International Financial Services activities, BNP Paribas also enjoys top positions in Europe, a strong presence in the Americas as well as a solid and fast-growing business in Asia-Pacific.', 'Share this page !', 'Tools']"
I understand that we should filter that, however do you expect us to do the analysis including these "trashy" pieces of text?
from cdqa.
You are right, the dataset is not "clean". This is due to my current implementation of the data scrapper. See https://github.com/fmikaelian/cdQA/blob/develop/cdqa/scrapper/bs4_scrapper.py
I think we could either make a better scrapper or just post-process the scrapped data (filter out irrelevant paragraphs. Maybe there are patterns we can detect and remove?).
Exploratory analysis of raw dataset can help us filter out or rewrite scrapper and once the dataset is clean we can do KPI analysis.
How do you think?
from cdqa.
Could be. What I did in the scrapper is take all the paragraphs tags <p>
inside the whole div of content:
I just don't know if this impacts a lot of articles or not?
I guess it will be hard for us to get the perfect dataset. Let's list issues like you are doing then decide what to fix or not.
Also, keep in mind that this dataset is the "open data" dataset since it is BNPP public articles. I have a similar-structure dataset with 20K+ internal articles, that may also be imperfect... But this is data science IRL 😅
from cdqa.
The good thing is that the internal dataset has exactly the same header so you're cleaning functions (if there are) should be able to "scale".
from cdqa.
@andrelmfarias @osans-tel @TNazon @mamrou
Can you share your progress/scripts on this issue?
from cdqa.
Related Issues (20)
- is there any limit on the no.of rows in a data-frame for the annotator to load the json file?
- ModuleNotFoundError: No module named 'torch' HOT 2
- -
- Syntax error when importing my csv file
- numpy core fromnumeric.py error in QAPipeline.fit_retriever HOT 1
- MemoryError workaround HOT 1
- Maintenance of the project HOT 5
- can not use PIP to install
- return link to the pdf file page where the answer is located
- cdqa install error HOT 2
- How to use cdQA for non-English language? HOT 2
- ValueError: empty vocabulary; perhaps the documents only contain stop words in TfidfVectorizer
- Wrong default
- getting this error while loading the custom data. HOT 1
- Adding annotated training dataset
- CDQA is not installing Anaconda Navigator using PIP command HOT 4
- How can I link cdQA model to SQuAD v2 model? For QA model
- ModuleNotFoundError: No module named 'transformers.modeling_bert' HOT 1
- pdf_converter cdqa throws AttributeError: type object 'object' has no attribute 'dtype'
- Could not find a version that satisfies the requirement cdqa (from versions: none)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cdqa.