Coder Social home page Coder Social logo

Import / Export in XML about sci-corpus HOT 9 CLOSED

dpizetta avatar dpizetta commented on July 21, 2024
Import / Export in XML

from sci-corpus.

Comments (9)

tiagocampo avatar tiagocampo commented on July 21, 2024

What is the issue? Be more specific

from sci-corpus.

dpizetta avatar dpizetta commented on July 21, 2024

Certificate that Import and Export are working and treat main errors to not crash the program. Or basically, say to user what happens.

from sci-corpus.

tiagocampo avatar tiagocampo commented on July 21, 2024

Hmmm, then this is an enhancement of the actual functionality

from sci-corpus.

dpizetta avatar dpizetta commented on July 21, 2024

You didnt implement the export function, so this is not closed.

from sci-corpus.

tiagocampo avatar tiagocampo commented on July 21, 2024

hhahaha, I forgot about it!

from sci-corpus.

dpizetta avatar dpizetta commented on July 21, 2024

Export is not working:

Traceback (most recent call last):
File "F:\Downloads\sci-corpus-master (6)\sci-corpus-master\sci_corpus\sci_corpus_main.py", line 853, in exportFile
self.container.export_(path)
File "F:\Downloads\sci-corpus-master (6)\sci-corpus-master\sci_corpus\container.py", line 481, in export_
tree.write(path, pretty_print=True, xml_declaration=True)
TypeError: write() got an unexpected keyword argument 'pretty_print'

from sci-corpus.

tiagocampo avatar tiagocampo commented on July 21, 2024

Here works fine
Em 04/05/2014 11:57, "Daniel Pizetta" [email protected] escreveu:

Export is not working:

Traceback (most recent call last):
File "F:\Downloads\sci-corpus-master
(6)\sci-corpus-master\sci_corpus\sci_corpus_main.py", line 853, in
exportFile
self.container.export_(path)
File "F:\Downloads\sci-corpus-master
(6)\sci-corpus-master\sci_corpus\container.py", line 481, in export_
tree.write(path, pretty_print=True, xml_declaration=True)
TypeError: write() got an unexpected keyword argument 'pretty_print'


Reply to this email directly or view it on GitHubhttps://github.com//issues/30#issuecomment-42134802
.

from sci-corpus.

tiagocampo avatar tiagocampo commented on July 21, 2024

Pretty_print is an argument to print the levels of a XML file with identation. Its not necessary, although if a human decides to read the xml file it will be much easer.

This option is part of the lmxl.ElementTree packge and not of xml.ElementTree. We have to decide what packge we want to use. I vote for lxml, as our program depends on other 3 non-standard packages, add one more will cause no harm.

from sci-corpus.

dpizetta avatar dpizetta commented on July 21, 2024

For me its ok :)

On Mon, May 5, 2014 at 4:14 PM, tiagocampo [email protected] wrote:

Pretty_print is an argument to print the levels of a XML file with
identation. Its not necessary, although if a human decides to read the xml
file it will be much easer.

This option is part of the lmxl.ElementTree packge and not of
xml.ElementTree. We have to decide what packge we want to use. I vote for
lxml, as our program depends on other 3 non-standard packages, add one more
will cause no harm.

Reply to this email directly or view it on GitHubhttps://github.com//issues/30#issuecomment-42226266
.

from sci-corpus.

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.