Closed omidb closed 9 years ago
Hi, did you look at the tutorial http://www.isi.edu/publications/licensed-sw/bolinas/bolinas_tutorial.pdf ? This is the best we can offer right now in terms of documentation. The README should be fixed though.
Daniel
Yes, I read the tutorial, but apparently the usage of the library has been changed since last update.
Thanks anyways for the library,
What exactly are you trying to do, and what problem are you running into?
On Tue, Oct 28, 2014 at 11:20 AM, Omid Bakhshandeh <notifications@github.com
wrote:
Yes, I read the tutorial, but apparently the usage of the library has been changed since last update.
Thanks anyways for the library,
— Reply to this email directly or view it on GitHub https://github.com/karlmoritz/bolinas/issues/3#issuecomment-60805023.
Can you describe the functionality that doesn't work as documented?
Daniel
Omid Bakhshandeh wrote:
Yes, I read the tutorial, but apparently the usage of the library has been changed since last update.
Thanks anyways for the library,
Reply to this email directly or view it on GitHub: https://github.com/karlmoritz/bolinas/issues/3#issuecomment-60805023
I'm following the README and getting this:
./bolinas /cygdrive/e/workspace/bolinas/examples/ambiguity.hrg
Loaded hypergraph grammar with 9 rules.
Printing derivation trees for HRG.
Traceback (most recent call last):
File "bolinas.py", line 230, in
and when I put two arguments:
./bolinas ./examples/ambiguity.hrg ./examples/ambiguity.graphs usage: bolinas.py [-h] [-o OUTPUT_FILE] [-f | -r | -b] [-ot OUTPUT_TYPE] [-g [G] | -k K] [-n | -t [TRAIN]] [-m WEIGHT_TYPE] [-p PARSER] [-e] [-bn] [-s START_SYMBOL] [-v VERBOSE] grammar_file [input_file] bolinas.py: error: unrecognized arguments:
I guessed that maybe the usage of the bolinas.py had changed?!
This works for me:
$ ./bolinas examples/ambiguity.hrg examples/ambiguity.graphs Loaded hypergraph grammar with 9 rules. Printing derivation trees for HRG. 1(T$_1(9) U$_0(3(V$_0(5)))) #0.24
2(U$_0(3(V$_0(5)))) #0.3
I suspect that, because you are using windows, the command line arguments look somehow strange to Python.
This is a telltale failure:
IOError: [Errno 2] No such file or directory: '\r'
Looks like some CRLF line endings have crept in where they shouldn't.
Jim
On Tue, Oct 28, 2014 at 11:28 AM, Omid Bakhshandeh <notifications@github.com
wrote:
I'm following the README and getting this:
./bolinas /cygdrive/e/workspace/bolinas/examples/ambiguity.hrg Loaded hypergraph grammar with 9 rules. Printing derivation trees for HRG. Traceback (most recent call last): File "bolinas.py", line 230, in for chart in parse_generator: File "/cygdrive/e/workspace/bolinas/parser/parser.py", line 31, in parse_graphs for graph in graph_iterator: File "bolinas.py", line 224, in parse_generator = parser.parse_graphs(Hgraph.from_string(x) for x in fileinpufig.input_file)) File "/usr/lib/python2.7/fileinput.py", line 253, in next line = self.readline() File "/usr/lib/python2.7/fileinput.py", line 345, in readline self._file = open(self._filename, self._mode) IOError: [Errno 2] No such file or directory: '\r'
and when I put two arguments:
./bolinas ./examples/ambiguity.hrg ./examples/ambiguity.graphs usage: bolinas.py [-h] [-o OUTPUT_FILE] [-f | -r | -b] [-ot OUTPUT_TYPE] [-g [G] | -k K] [-n | -t [TRAIN]] [-m WEIGHT_TYPE] [-p PARSER] [-e] [-bn] [-s START_SYMBOL] [-v VERBOSE] grammar_file [input_file] bolinas.py: error: unrecognized arguments:
I guessed that maybe the usage of the bolinas.py had changed?!
— Reply to this email directly or view it on GitHub https://github.com/karlmoritz/bolinas/issues/3#issuecomment-60806472.
Thanks, It's not about the library, it is Windows VS Python thing!
Hi,
the documentation is out of date and the commands are not working anymore, is there any other documentation which works with the new commands?
Thanks,