|
User Manual |
|
Contents |
|
|
|
||||||||
| Back to Top | ||||||||
|
To run the PCFG Parser type This will bring up the Graphical User Interface. |
||||||||
|
|
||||||||
| Back to Top | ||||||||
The main screen of the Interface looks like:
![]()
The About Menu
Clicking on will give you some information about the project
Clicking on will give you some information about the project
The Progress Monitor will give you information about which sentence the parser is parsing at any particular time, as well as report results found and any errors that occur. | ||||||||
|
|
||||||||
| Back to Top | ||||||||
There are two possible methods of inputting text for parsing.
| ||||||||
|
|
||||||||
| Back to Top | ||||||||
|
The results are displayed in graphical tree form using the Treescape program downloaded from http://www.cis.upenn.edu/~josephr/Treefig/ .
Here is what a sample output might look like: ![]() If you parsed a file, you can click on the and buttons to navigate through all the successful parses found in the file. You can also enter the number of a particular sentence to view its parse tree.
Caution: If you type in the number of a sentence, be aware that the number may not correspond to the required tree. If any sentence previous to the required sentence could not be parsed, it will not be represented in the sequence of parse trees. This means that the numbers will not correspond to the original sequence of sentences. | ||||||||
|
|
||||||||
| Back to Top | ||||||||
|
The results of your parse will be saved in bracketed form in a file. The probability of each parse will be stored in a file called probs.txt This file gets overwritten after each file or sentence is parsed, so if you want to save it you should rename it. You will need this file if you want to view the results at a later stage without having to run the parser again.
If you typed in a sentence manually, the results will be stored in a file called output_parse.prd. Remember that this file is overwritten every time you click on the button, so if you want to save it, you should rename it.
If you chose a file to parse, for example my_file.pos, the results will be stored in a file called new_my_file.prd You can open these results files in any text editor. If any sentence could not be parsed, a reason why will be written to this file instead of a bracketed parse. | ||||||||
|
|
||||||||
| Back to Top | ||||||||
|
If you have saved the file containing the output parse(s) and the file containing the corresponding probabilities (see above) you can view them at a later stage without having to go through the parsing stage again.
To do this simply type the command where parse_file.prd is the file in which you have saved the bracketed output and prob_file.txt is the file in which you have saved the corresponding probabilities. This will launch the Treescape program described earlier and you can view the results as parse trees. |