percyliang / sempre

Semantic Parser with Execution
Other
829 stars 300 forks source link

Is it recommended to work with SEMPRE on windows #191

Open Rajskc opened 5 years ago

Rajskc commented 5 years ago

Hi, I have gone through some closed issues, it says there can be problems when working on windows. I wanted to know if it is recommended to work on windows? Thanks.

ppasupat commented 5 years ago

Hi. Unfortunately, we don't fully support Windows. The code is generally in Java which works cross-platform, but there are some pipeline scripts (./pull-dependencies, ./run) that might not work well in Windows. Installing Virtuoso might also be more difficult.

Using a UNIX-like shell such as Cygwin on Windows might work, but we haven't tested on that.

ppasupat commented 5 years ago

The scripts are written in ruby. If you have ruby on Windows, you could try running the following commands in https://github.com/percyliang/sempre#easy-setup with ruby:

The extract-module-classes.rb one would have been run when compiling with ant, but I'm not sure if it works under Windows without calling ruby explicitly.

Rajskc commented 5 years ago

Thanks for your reply. I am thinking of using ubuntu to work. Can I use ubuntu virtual machines or should I dual boot my windows system? Which one is better to work?

ppasupat commented 5 years ago

It depends on your usage, but since SEMPRE can use a lot of RAM, dual boot might be better.

Rajskc commented 5 years ago

I have dual booted my system with linux mint. I am still not able to get through this command:

$ ./pull-dependencies core bash: ./pull-dependencies: No such file or directory

It seems that ruby is not able to recognise this command, Is that the problem?

ppasupat commented 5 years ago

Are you in the root directory of SEMPRE, which is where pull-dependencies is located? Otherwise, try reinstalling ruby.

Rajskc commented 5 years ago

Sorry, My bad. I am able to install and test the sample function successfully. Thanks a lot for your quick reply.

Rajskc commented 5 years ago

Hi,

I have a couple of queries:

1) We are creating rules to get semantic understanding currently, instead of that can we use domain specific Ontological Libraries to get more context based understanding?

2) How can we handle spelling mistakes in the text input?

ppasupat commented 5 years ago
  1. There are a few ways to incorporate domain-specific knowledge, such as adding features or putting the information in the knowledge base. Would you mind elaborating on what you would like to do?

  2. The framework does not handle misspellings. In theory, the capability could be added to the language analyzer as a preprocessing step, but that requires a trained spelling correction system.

Rajskc commented 5 years ago
  1. The goal is to get semantic understanding with the help of domain specific knowledge. Can we use our own ontology along with Free base or replace freebase with your own ontology and get some information?

Also, are there any generic rules existing to define entities, instead of writing them from scratch?

ppasupat commented 5 years ago