Coder Social home page Coder Social logo

treenlg's Issues

Evaluation Scripts not working on MacOS

I have trained a model, and attempted to evaluate using bash scripts/generate.weather.lstm.sh but get various errors since it seems this was tested in a UNIX system. My first error was readlink does not have the -f option. This was solved by using greadlink and re-running now shows the tree score but now throws new grep errors:

Tree accuracy: 99.84 (3116 / 3121)                                                                                                                                                      
usage: grep [-abcDEFGHhIiJLlmnOoqRSsUVvwxZ] [-A num] [-B num] [-C[num]]
        [-e pattern] [-f file] [--binary-files=value] [--color=when]
        [--context[=num]] [--directories=action] [--label] [--line-buffered]
        [--null] [pattern] [file ...]
usage: grep [-abcDEFGHhIiJLlmnOoqRSsUVvwxZ] [-A num] [-B num] [-C[num]]
        [-e pattern] [-f file] [--binary-files=value] [--color=when]
        [--context[=num]] [--directories=action] [--label] [--line-buffered]
        [--null] [pattern] [file ...]
EOF encountered in a comment.
Failure rate: 0.00 (0 / 0)

replacing failures from /Users/nguyen/src/npp/TreeNLG/checkpoints/weather.lstm/gen.txt
/Users/nguyen/src/npp/TreeNLG/checkpoints/weather.lstm/gen.txt does not exist```


Any advice or help solving this issue so evaluation is allowed on MacOS would be great.

Generating BLEU Score

Are there any instructions on generating the bleu score for the weather task? My output for running the commands in the readme after generating is the tree scores but I don't get any .tsv in order to run the bleu score evaluation.

I am also only getting gen.constr.txt as output rather than a tsv file or the expected gen.txt. Any guidance would be great, until then I will try to find my own solution as well.

Issue when generating samples

When I try to use below command:
bash scripts/generate.weather.lstm.sh

I get this error:

 File "/home/mrigank/miniconda3/bin/fairseq-generate", line 33, in <module>
   sys.exit(load_entry_point('fairseq', 'console_scripts', 'fairseq-generate')())
 File "/home/mrigank/code/TreeNLG/fairseq/fairseq_cli/generate.py", line 285, in cli_main
   main(args)
 File "/home/mrigank/code/TreeNLG/fairseq/fairseq_cli/generate.py", line 38, in main
   return _main(args, sys.stdout)
 File "/home/mrigank/code/TreeNLG/fairseq/fairseq_cli/generate.py", line 126, in _main
   generator = task.build_generator(models, args)
TypeError: build_generator() takes 2 positional arguments but 3 were given
Args ::  Namespace(order_constr=False, tsv='scripts/tmp/tsv')                                                                                                                                                
Number of lines:  []
Traceback (most recent call last):
 File "compute_tree_acc.py", line 31, in <module>
   correct / len(lines) * 100, correct, len(lines)
ZeroDivisionError: division by zero
Runtime error (func=(main), adr=3): Divide by zero
Failure rate: 0.00 (0 / 0)

replacing failures from /home/mrigank/code/TreeNLG/checkpoints/weather.lstm/gen.txt
/home/mrigank/code/TreeNLG/checkpoints/weather.lstm/gen.txt does not exist```

how to change a sentence to a tree?

Hello,
I need to use my own dataset to train the model or run the compute_tree_acc.py, so my problem is how to make the data as a tree type?And how many the type of attributes?I know query annotation is parse automatically by rules, and can I get these rules?

Using the data for commercial purposes

Hello,
Thanks for the paper and the code.
I would like to know if its really possible to use just the data for commercial purposes.
If this means that I'd have to buy the license, how much would it cost? and how would I go about buying it?

Thanks

Two functions 'sequence_to_tree' and 'scenario_to_tree' seems inconsistent with comments

sequence_to_tree's comments says:
[DG_INFORM_2 supposed to ARG:CONDITION_NOT ]
=>
NLGNode("root", children={
NLGNode("[DG_INFORM_2", children={NLGNode("ARG:CONDITION_NOT")})
})

but actual result is:
NLGNode("root", children={
NLGNode("[DG_INFORM_2")
})

scenario_to_tree's comment says:
[DG_INFORM: [ARG_TASK: get_forecast , ARG_TEMP_HIGH: 33 ] ]
=>
NLGNode("root", children={
NLGNode("[1_DG_INFORM", children={
NLGNode("ARG_TEMP_HIGH", children={
NLGNode("33")
}),
NLGNode("ARG_TASK", children={
NLGNode("get_forecast")
})
})
})

but actual result is:
NLGNode("root", children={
NLGNode("[1_DG_INFORM", children={
NLGNode("ARG_TASK", children={
NLGNode("get_forecast , ARG_TEMP_HIGH: 33")
})
})
})

Thanks!

Availability of the user raw query

Hello,

Thanks for providing these very useful resources. Is there any chance that the users' raw queries would be available as part of the datasets (or a subset of the datasets)? I've seen that the seq2seq_out.tsv example has such questions similar to Table 6 in the paper. So I was wondering if this would be possible to include. That would be highly useful.

Thanks!
Hamza

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.