seominjoon / geosolver Goto Github PK
View Code? Open in Web Editor NEWGeometry Question Solver (GeoS)
Home Page: http://uwnlp.github.io/geosolver
License: Apache License 2.0
Geometry Question Solver (GeoS)
Home Page: http://uwnlp.github.io/geosolver
License: Apache License 2.0
i using geosolver and geoserver.
when i run run.py , i got error
/anaconda/bin/python /Users/hy/WorkSpace/geos/geosolver-master-2/geosolver/database/run_database.py accessing: http://localhost:8000/questions/list/aaai Traceback (most recent call last): File "/Users/hy/WorkSpace/geos/geosolver-master-2/geosolver/database/run_database.py", line 47, in <module> save_questions('aaai') File "/Users/hy/WorkSpace/geos/geosolver-master-2/geosolver/database/run_database.py", line 24, in save_questions questions = geoserver_interface.download_questions(query) File "/Users/hy/WorkSpace/geos/geosolver-master-2/geosolver/database/geoserver_interface.py", line 34, in download_questions data = json.loads(r.text, object_hook=_decode_dict) File "/anaconda/lib/python2.7/json/__init__.py", line 352, in loads return cls(encoding=encoding, **kw).decode(s) File "/anaconda/lib/python2.7/json/decoder.py", line 364, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/anaconda/lib/python2.7/json/decoder.py", line 382, in raw_decode raise ValueError("No JSON object could be decoded") ValueError: No JSON object could be decoded
when I run the code, I can not get the data from your server through geoserver_interface. Can you share the server address which can get the datas to run the code.
hello you use STANFORD_PARSER_SERVER_URL = "http://localhost:9000/dep" in your code to build a parser server .could you please tell me how to build the parser server? it would be pleasure if you tell some detail about it .thank you a lot
I am having some issues while running the GeoServer. So, I downloaded the JSON files from https://s3-us-west-2.amazonaws.com/geosolver-server/dump/68bd697ca57cdac1f2738a8d7e468fdccd7e5545/questions.json,
https://s3-us-west-2.amazonaws.com/geosolver-server/dump/68bd697ca57cdac1f2738a8d7e468fdccd7e5545/labels.json,
https://s3-us-west-2.amazonaws.com/geosolver-server/dump/68bd697ca57cdac1f2738a8d7e468fdccd7e5545/semantics.json.
This is not in the format in which the code expects. I directly want to feed this data instead of fetching from the server. Can someone share the format of a question, semantics and label record Or the data files in the right format?
@seominjoon , @eunsol , @codeviking @mbforbes @ClintElliotMalcolm
Geosolver requires the input of label data. However, currently, the label data is reading from the server. For a new problem that does not have label data. How do we generate it?
[{'y': 76, 'x': 135, 'type': 'angle angle', 'label': '55'}, {'y': 76, 'x': 242, 'type': 'angle angle', 'label': '75'}, {'y': 141, 'x': 204, 'type': 'angle angle', 'label': 'x'}]
With declarations as simple as:
from geosolver.solver.variable_handler import VariableHandler
from geosolver.solver.numeric_solver import NumericSolver
vh = VariableHandler()
A = vh.point('A')
B = vh.point('B')
AO = vh.circle(A)
BO = vh.circle(B)
I'm getting a failed assert:
Traceback (most recent call last):
File "geosolve.py", line 8, in <module>
BO = vh.circle(B)
File ".../geosolver/solver/variable_handler.py", line 52, in circle
r = self.number(r_name, init=init)
File ".../geosolver/solver/variable_handler.py", line 17, in number
assert name not in self.variables
AssertionError
If I comment out the second circle declaration, it works fine. I'm not having trouble with lines or anything else.
at http://geometry.allenai.org/ the G-Aligner demo link seems broken
in file geosolver/text/rule_model.py
usage of LogisticRegression(class_weight='auto') may causes exceptions, Use class_weight = 'balanced' instead.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.