ufal / treex

Treex NLP framework
33 stars 6 forks source link

TREEX-FATAL: Attempt to set parent of a_tree-nl_src-s3-n1461 to the node a_tree-nl_src-s3-n1460, which would lead to a cycle. #14

Closed michnov closed 9 years ago

michnov commented 9 years ago

in ufal/qtleap:

cd translate/nl-en/batch2q
make translate eval D='test'

fails with the error:

TREEX-INFO:    96.486:  ********************** FATAL ERRORS FOUND IN JOB 7 ******************

TREEX-INFO:    96.487:  TREEX-INFO:    56.333:  ALPINO: Q#42|Hoe verwijder ik de afstand tussen de documenten op Google Drive ?|1|1|1.7838531956300008
TREEX-INFO:    56.510:  ALPINO: [Waar kan ik de Google Drive FAQ's bekijken ?]
TREEX-INFO:    56.510:  ALPINO: Q#43|Waar kan ik de Google Drive FAQ's bekijken ?|1|1|-1.5645877946399998
TREEX-INFO:    56.827:  ALPINO: [Wat heb ik nodig voor Google Drive ?]
TREEX-INFO:    56.827:  ALPINO: Q#44|Wat heb ik nodig voor Google Drive ?|1|1|-1.5446836484400006
TREEX-INFO:    57.863:  ALPINO: [Hoe kan ik een branden van een cd met cdBurnerXp ?]
TREEX-INFO:    57.863:  ALPINO: Q#45|Hoe kan ik een branden van een cd met cdBurnerXp ?|1|1|1.6665671309100023
TREEX-INFO:    58.314:  ALPINO: [Hoe verander ik de schermresolutie in Windows 8 ?]
TREEX-INFO:    58.314:  ALPINO: Q#46|Hoe verander ik de schermresolutie in Windows 8 ?|1|1|-0.16205639422999885
TREEX-INFO:    58.447:  ALPINO: [Hoe wijzig ik mijn thema op Windows 8 ?]
TREEX-INFO:    58.447:  ALPINO: Q#47|Hoe wijzig ik mijn thema op Windows 8 ?|1|1|3.6476243783899998
TREEX-INFO:    59.048:  ALPINO: [Hoe wijzig ik het formaat van een pictogram in Windows 8 ?]
TREEX-INFO:    59.048:  ALPINO: Q#48|Hoe wijzig ik het formaat van een pictogram in Windows 8 ?|1|1|2.53492249401
TREEX-INFO:    59.248:  ALPINO: [Kun je een goede MySQL client aanbevelen ?]
TREEX-INFO:    59.248:  ALPINO: Q#49|Kun je een goede MySQL client aanbevelen ?|1|1|-3.83368088879
TREEX-INFO:    59.332:  ALPINO: [Ik heb AVG 2014.]
TREEX-INFO:    59.332:  ALPINO: Q#50|Ik heb AVG 2014.|1|1|-1.74135280942
TREEX-INFO:    59.568:  ALPINO: [Hoe voer ik een scan uit ?]
TREEX-INFO:    59.568:  ALPINO: Q#51|Hoe voer ik een scan uit ?|1|1|-1.34572101208
TREEX-INFO:    60.119:  ALPINO: [Ik heb geen internet , wat kan het zijn ?]
TREEX-INFO:    60.119:  ALPINO: Q#52|Ik heb geen internet , wat kan het zijn ?|1|1|-4.402679578289999
TREEX-INFO:    60.678:  ALPINO: [Zwak draadloos signaal , wat kan het zijn ?]
TREEX-INFO:    60.678:  ALPINO: Q#53|Zwak draadloos signaal , wat kan het zijn ?|1|1|0.3451893460199968
TREEX-INFO:    60.953:  Applying block 6/82 Treex::Block::Util::Eval
TREEX-INFO:    61.062:  Applying block 7/82 Treex::Block::P2A::NL::Alpino
TREEX-FATAL:    61.360: Attempt to set parent of a_tree-nl_src-s3-n1461 to the node a_tree-nl_src-s3-n1460, which would lead to a cycle.

PERL STACK: at /home/mnovak/projects/tectomt/treex/lib/Treex/Core/Node.pm line 518, <GEN16> line 1777.
    Treex::Core::Node::set_parent(undef, Treex::Core::Node::A=HASH(0x330ba4b8)) called at /home/mnovak/projects/tectomt/treex/lib/Treex/Block/P2A/NL/Alpino.pm line 525
    Treex::Block::P2A::NL::Alpino::fix_quotes(Treex::Block::P2A::NL::Alpino=HASH(0x718abb8), Treex::Core::Node::A=HASH(0x34594d80)) called at /home/mnovak/projects/tectomt/treex/lib/Treex/Block/P2A/NL/Alpino.pm line 252
    Treex::Block::P2A::NL::Alpino::process_zone(Treex::Block::P2A::NL::Alpino=HASH(0x718abb8), Treex::Core::BundleZone=HASH(0x35726fe8), 3) called at /home/mnovak/projects/tectomt/treex/lib/Treex/Core/Block.pm line 300
    Treex::Core::Block::process_bundle(Treex::Block::P2A::NL::Alpino=HASH(0x718abb8), Treex::Core::Bundle=HASH(0x39e5dd20), 3) called at /home/mnovak/projects/tectomt/treex/lib/Treex/Core/Block.pm line 217
    Treex::Core::Block::process_document(undef, Treex::Core::Document=HASH(0x3e63b228)) called at /home/mnovak/projects/tectomt/treex/lib/Treex/Core/Scenario.pm line 505
    Treex::Core::Scenario::_run_without_cache(Treex::Core::Scenario=HASH(0x5faad88), Treex::Block::Read::AlignedSentences=HASH(0x65bdeb0), 82, 1) called at /home/mnovak/projects/tectomt/treex/lib/Treex/Core/Scenario.pm line 353
    Treex::Core::Scenario::run(Treex::Core::Scenario=HASH(0x5faad88)) called at /home/mnovak/projects/tectomt/treex/lib/Treex/Core/Parallel/Node.pm line 164
    Treex::Core::Parallel::Node::_execute_scenario(Treex::Core::Parallel::Node=HASH(0x5fab010)) called at /home/mnovak/projects/tectomt/treex/lib/Treex/Core/Run.pm line 368
    Treex::Core::Run::_execute(Treex::Core::Parallel::Node=HASH(0x5fab010)) called at /home/mnovak/projects/tectomt/treex/lib/Treex/Core/Run.pm line 554
    Treex::Core::Run::treex(ARRAY(0x1097e20)) called at /home/mnovak/projects/tectomt/treex/bin/treex line 6
TREEX-FATAL:    61.541: 

PERL STACK: at /home/mnovak/projects/tectomt/treex/lib/Treex/Core/Parallel/Node.pm line 124, <GEN16> line 1777.
    Treex::Core::Parallel::Node::__ANON__("\x{a}") called at /home/mnovak/projects/tectomt/treex/lib/Treex/Core/Log.pm line 100
    Treex::Core::Log::log_fatal("Attempt to set parent of a_tree-nl_src-s3-n1461 to the node a"...) called at /home/mnovak/projects/tectomt/treex/lib/Treex/Core/Node.pm line 518
    Treex::Core::Node::set_parent(undef, Treex::Core::Node::A=HASH(0x330ba4b8)) called at /home/mnovak/projects/tectomt/treex/lib/Treex/Block/P2A/NL/Alpino.pm line 525
    Treex::Block::P2A::NL::Alpino::fix_quotes(Treex::Block::P2A::NL::Alpino=HASH(0x718abb8), Treex::Core::Node::A=HASH(0x34594d80)) called at /home/mnovak/projects/tectomt/treex/lib/Treex/Block/P2A/NL/Alpino.pm line 252
    Treex::Block::P2A::NL::Alpino::process_zone(Treex::Block::P2A::NL::Alpino=HASH(0x718abb8), Treex::Core::BundleZone=HASH(0x35726fe8), 3) called at /home/mnovak/projects/tectomt/treex/lib/Treex/Core/Block.pm line 300
    Treex::Core::Block::process_bundle(Treex::Block::P2A::NL::Alpino=HASH(0x718abb8), Treex::Core::Bundle=HASH(0x39e5dd20), 3) called at /home/mnovak/projects/tectomt/treex/lib/Treex/Core/Block.pm line 217
    Treex::Core::Block::process_document(undef, Treex::Core::Document=HASH(0x3e63b228)) called at /home/mnovak/projects/tectomt/treex/lib/Treex/Core/Scenario.pm line 505

TREEX-INFO:    96.487:  ********************** END OF JOB 7 FATAL ERRORS LOG ****************

In the 'gazetteer' branch it works. The last commit in common with the 'master' branch is 1c5dcc7af413e33 .

martinpopel commented 9 years ago

@michnov try it now please, with 718828d3a (not tested)

tuetschek commented 9 years ago

@martinpopel : Thanks, that seems much more robust than my code.