We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
from lxml.html import etree from mdr import RecordAligner, Record def toString(tree): return etree.tostring(tree, pretty_print=True) t1 = etree.XML("""<root><a><a1/></a><b/><c/></root>""") t2 = etree.XML("""<root><a/><b><b1/></b><c/></root>""") seed, mappings = RecordAligner().align([Record(t1), Record(t2)]) print toString(seed[0]) seed, mappings = RecordAligner().align([Record(t2), Record(t1)]) print toString(seed[0]) # <root> # <a/> # <b> # <b1/> # </b> # <c/> # </root> # # <root> # <a> # <a1/> # </a> # <b/> # <c/> # </root> # # shouldn't it be: # <root> # <a> # <a1/> # </a> # <b> # <b1/> # </b> # <c/> # </root>
is this a problem in the algorithm or in the implementation?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
is this a problem in the algorithm or in the implementation?
The text was updated successfully, but these errors were encountered: