GithubHelp home page GithubHelp logo

Sections names absent about wikiextractor HOT 8 CLOSED

attardi avatar attardi commented on June 26, 2024
Sections names absent

from wikiextractor.

Comments (8)

attardi avatar attardi commented on June 26, 2024

Use option

--sections

from wikiextractor.

 avatar commented on June 26, 2024

~/wikiextractor-master/WikiExtractor.py --sections -b 500M --lists -o extracted itwiki-latest-pages-articles.xml.bz2
usage: WikiExtractor.py [-h] [-o OUTPUT] [-b n[KMG]] [-c] [--html] [-l]
[--lists] [-ns ns1,ns2] [--templates TEMPLATES]
[--no-templates] [--escapedoc] [--processes PROCESSES]
[-q] [--debug] [-a] [-v]
input
WikiExtractor.py: error: unrecognized arguments: --sections

from wikiextractor.

attardi avatar attardi commented on June 26, 2024

Restored the option, in version 2.54.
Thank you.

from wikiextractor.

 avatar commented on June 26, 2024

Thank you for quick response!
I re-run it but nothing changes - still missing 'Bibliografia' section:

Duino Gorin
Anche suo fratello minore Fabrizio è stato un calciatore.

Carriera.
Club.
Cresciuto nel Real San Marco di Venezia, esordì con la maglia del Venezia nel campionato di Serie
Trascorse in rossonero tre stagioni, fino al 1977, quando passò al Monza.

  • "La Raccolta Completa degli Album Panini 1975-1976"
  • "La Raccolta Completa degli Album Panini 1960-2004" - Indici
  • "Almanacco illustrato del calcio 1982". edizione Panini.

from wikiextractor.

 avatar commented on June 26, 2024

The problem with such kind of data - 'section + list'
==Bibliografia==
*''La Raccolta Completa degli Album Panini 1975-1976''
*''La Raccolta Completa degli Album Panini 1960-2004'' - Indici

  • ''Almanacco illustrato del calcio 1982''. edizione Panini.

If I put some text before the list it will work:
==Bibliografia==
Bla Bla
-''La Raccolta Completa degli Album Panini 1975-1976''
-''La Raccolta Completa degli Album Panini 1960-2004'' - Indici

  • ''Almanacco illustrato del calcio 1982''. edizione Panini.

from wikiextractor.

 avatar commented on June 26, 2024

I added after line 2190:
if line: # FIXME: n is '"'
if Extractor.keepLists:
if len(headers):
if Extractor.keepSections:
items = headers.items()
items.sort()
for i, v in items:
page.append(v)
headers.clear()

and now it works for me

from wikiextractor.

attardi avatar attardi commented on June 26, 2024

Thank you for the contribution. I merged it into version 2.55.

from wikiextractor.

sooheon avatar sooheon commented on June 26, 2024

@attardi How would I also keep the == Section == formatting around the text?

from wikiextractor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.