Details for KR lab 2: erinevus redaktsioonide vahel
Uus lehekülg: 'The main goal of the second lab is to extend person data obtained during the first, web-scraping lab, using rules and a reasoning engine. == Conditions == You can do the lab e...' |
|||
| (ei näidata sama kasutaja 9 vahepealset redaktsiooni) | |||
| 5. rida: | 5. rida: | ||
You can do the lab either alone or together with a fellow student. Three students per lab is not ok, though. | You can do the lab either alone or together with a fellow student. Three students per lab is not ok, though. | ||
Technology - language, op system etc - is completely free EXCEPT that you have to use [http://www.cs.unm.edu/~mccune/mace2/ Otter version 3.3] as a reasoning engine. | Technology - language, op system etc - is completely free EXCEPT that you have to use a full first order logic reasoning engine. It is suggested to use [http://www.cs.unm.edu/~mccune/mace2/ Otter version 3.3] as a reasoning engine, although it can be interesting to find/experiment with a more modern and more powerful engine. | ||
Ideally you should create both (a) your own rules for improving data / deriving new data and (b) rules from wordnet taxonomy to obtain generalisations from derived facts. | Ideally you should create both (a) your own rules for improving data / deriving new data and (b) rules from wordnet taxonomy to obtain generalisations from derived facts. | ||
| 12. rida: | 12. rida: | ||
* your own rules: how good/sensible they are and what results you get for a selected domain of objects | * your own rules: how good/sensible they are and what results you get for a selected domain of objects | ||
* quality and interestingness of the overall results | * quality and interestingness of the overall results | ||
== What should the app do == | == What should the app do == | ||
Your system should take as input data obtained during the first lab for some | Your system should take as input data obtained during the first lab for some address and it should derive new facts, | ||
augmented with the confidence number. | augmented with the confidence number. | ||
| 25. rida: | 22. rida: | ||
As a result the full app should | As a result the full app should | ||
* take a phrase like " | * take a phrase like "Ehitajate tee 50" as input | ||
* scrape raw data from the web for the phrase (use the first lab you have completed) | * scrape raw data from the web for the phrase (use the first lab you have completed) | ||
* derive new data | * derive new data | ||
* output the full set of data, including the derived and the raw data, with confidence numbers and the indicator raw/derived for each fact. | * output the full set of data, including the derived and the raw data, with confidence numbers and the indicator raw/derived for each fact. | ||
* Filter/sum data to determine the | * Filter/sum data to determine the categories and possible additonal information snippets for the address. | ||
== Subtasks of the lab == | == Subtasks of the lab == | ||
| 45. rida: | 42. rida: | ||
== Creating the ruleset == | == Creating the ruleset == | ||
The main task of the lab is the ruleset creation. This requires creative thinking and experimentation with the reasoner. | The main task of the lab is the ruleset creation. This requires creative thinking and experimentation with the reasoner. The ruleset should either improve the confidence of already derived facts by combining them and/or derive completely new facts. | ||
Start by downloading and installing [http://www.cs.unm.edu/~mccune/mace2/ Otter version 3.3] and experiment a bit. | |||
It is a good idea to use these examples containing suitable settings: | |||
A new example: | |||
* [[ITV0060 lab 2 example for buildings]] | |||
Two old examples for people: | |||
* [[ITV0060 lab 2 example]] | |||
* [[ITV0060 lab 2 new example]] | |||
Use the [http://www.cs.unm.edu/~mccune/mace2/Otter33.pdf Otter manual] for additional details and settings. | Use the [http://www.cs.unm.edu/~mccune/mace2/Otter33.pdf Otter manual] for additional details and settings. | ||
The ruleset, as said, should contain two parts: | The ruleset, as said, should contain two parts: | ||
<!-- | |||
(a) Your own ruleset. This should either improve the confidence of already derived facts by combining them and/or derive completely new facts. | (a) Your own ruleset. This should either improve the confidence of already derived facts by combining them and/or derive completely new facts. | ||
--> | |||
<!-- | |||
(b) Optional ruleset generated from the wordnet taxonomy database. This should generate generalisations or hypernyms in the wordnet terminology, | (b) Optional ruleset generated from the wordnet taxonomy database. This should generate generalisations or hypernyms in the wordnet terminology, | ||
see [http://wordnetweb.princeton.edu/perl/webwn?o2=&o0=1&o7=&o5=&o1=1&o6=&o4=&o3=&r=1&s=car&i=4&h=10001000000#c the car hypernym]. For example, | see [http://wordnetweb.princeton.edu/perl/webwn?o2=&o0=1&o7=&o5=&o1=1&o6=&o4=&o3=&r=1&s=car&i=4&h=10001000000#c the car hypernym]. For example, | ||
from the fact that X is a car you should derive that it is motor_vehicle, vehicle, physical_entity etc. | from the fact that X is a car you should derive that it is motor_vehicle, vehicle, physical_entity etc. | ||
-> | |||
Viimane redaktsioon: 30. märts 2015, kell 17:31
The main goal of the second lab is to extend person data obtained during the first, web-scraping lab, using rules and a reasoning engine.
Conditions
You can do the lab either alone or together with a fellow student. Three students per lab is not ok, though.
Technology - language, op system etc - is completely free EXCEPT that you have to use a full first order logic reasoning engine. It is suggested to use Otter version 3.3 as a reasoning engine, although it can be interesting to find/experiment with a more modern and more powerful engine.
Ideally you should create both (a) your own rules for improving data / deriving new data and (b) rules from wordnet taxonomy to obtain generalisations from derived facts.
The lab is graded considering (see below for details):
- your own rules: how good/sensible they are and what results you get for a selected domain of objects
- quality and interestingness of the overall results
What should the app do
Your system should take as input data obtained during the first lab for some address and it should derive new facts, augmented with the confidence number.
The new facts for the object have to be derived using Otter and rules of your own making.
As a result the full app should
- take a phrase like "Ehitajate tee 50" as input
- scrape raw data from the web for the phrase (use the first lab you have completed)
- derive new data
- output the full set of data, including the derived and the raw data, with confidence numbers and the indicator raw/derived for each fact.
- Filter/sum data to determine the categories and possible additonal information snippets for the address.
Subtasks of the lab
The lab is essentially split into these subtasks:
- the main task: create the ruleset suitable for your data and the reasoner
- format the output of your first task so that it is suitable for the reasoner: basically the correct syntax.
- create the input file for the reasoner: just compose it from a header, data block, rule block and a footer.
- run the reasoner and send output to a file.
- filter out the derived facts from the reasoner output.
- present the full resulting dataset.
- write a program filtering/summarising the data to determine whether a certain ad is suitable or which kinds of ads are suitable.
Creating the ruleset
The main task of the lab is the ruleset creation. This requires creative thinking and experimentation with the reasoner. The ruleset should either improve the confidence of already derived facts by combining them and/or derive completely new facts.
Start by downloading and installing Otter version 3.3 and experiment a bit.
It is a good idea to use these examples containing suitable settings:
A new example:
Two old examples for people:
Use the Otter manual for additional details and settings.
The ruleset, as said, should contain two parts: