Back to the Forum Show formatting tags

Author Thread New Thread  Post Reply
forkinpm
Member
Building scripting based on BML

Hallo!
Related to my first post, today, based on using BML to build a notation scheme for defining the structure and content of English sentences, I have a second post to make. It is based on using BML as a scripting tool to define sentence structures and mark text with syntax, definitions.
This ought to be possible using a popup list of syntax definitions and selecting from the list to mark words or phrases in a sentence. This could be done with a mouseover technique used in conjunction with bracket enclosing of the "mouseover marked" text.
Again I would like to ask if anyone, has experience of doing such, and could or would share, his or her experiences with me?
I look forward zo any useful suggestions or ideas.
An alternative might be to ask if anyone has knowledge of a scripting language into which BML can be easily embedded?
Thanks and kind regards, forkinpm.
 
11/26/2009 6:53:47 AMQuote    Edit/Delete
Joacim Andersson
Administrator
Hello Forkinpm,

I must say that I don't really understand what your asking for, but if I would take a guess I think you want to select some text in Source Edit, run a BML script that shows Choice Dialog and then alter the selected text according to some rules. Am I somewhere in the neighborhood of what you're asking?
 
11/26/2009 7:29:29 AMQuote    Edit/Delete
forkinpm
Member
"Building scripting based on BML"

Hallo!
You responded to my post, but I was so involved in a host of tasks that I had no chance to get back to you. I apologise for the delay.
Here is a simple explanation, which you asked for
There are two processes in understanding sentence structures.
They are:
1. Segmenting the sentence into its main clause & predicate parts
2. Segmenting the clauses into their phrase parts.
Generally this is done using a parser and a parts-of-speech tagger.
A more useful method is using a notation scheme with markup. I have set out such a notation scheme and would like to use BML to define it.
This I wish to link to a syntax scheme of the naming of phrases which I can insert into sentences using the Source Edit add-in editor.
Here follows a simple example.
First segmentation:
[Sentence]The little boy has played football all afternoon with a friend.
[Main Clause] The little boy has played football
[Predicate]all afternoon with a friend.
Second segmentation:
MAIN CLAUSE:
[Subject] The little boy
[Verb] has played
[Direct Object] football
PREDICATE:
[Prep Phrase Time] all afternoon
[Prep Phrase Place] with a friend.
All of the elements in square brackets as [] are the ones I would insert as the markers in sentences with the add-in editor.
For highlighting purposes I would wish to use different colors for the sentence and then the phrase markers.
There are rules with which one can define the segmentation steps. These I have defined. I would be interested in trying to use CLIPS for the rules in conjunction with BML
Is this possible?
If you now understand me and it is possible, I can provide you with a detailed writeup.
I look forward to hearing fgrom you?
Regards, forkinpm.
 
1/19/2010 2:41:28 AMQuote    Edit/Delete
Joacim Andersson
Administrator
I'm sorry but I'm still confused. Are you saying that you have a line of text like this:

The little boy has played football all afternoon with a friend.

and then you want to run some add-in that automatically turns that into this:

[Sentence]The little boy has played football all afternoon with a friend.
[Main Clause] The little boy has played football
[Predicate]all afternoon with a friend.

Or are you saying that from the first sentence you want to select the text "The little boy has played football" and run an add-in that shows you some sort of list with the various mark-ups, let you select the mark-up named [Main Clause] and it will then break up the text to:

[Main Clause] The little boy has played football
all afternoon with a friend.

You then want to select the second line (all afternoon with a friend) and run the add-in again and this time select the [Predicate] item from a list and the add-in would change the text to:

[Main Clause] The little boy has played football
[Predicate]all afternoon with a friend.

I have no idea what CLIPS are...?

Last edited by Joacim Andersson 1/19/2010 3:13:25 AM
 
1/19/2010 3:12:24 AMQuote    Edit/Delete
forkinpm
Member
Building scripting using BML

Hallo!

So it still is not clear to you.
There are a few items which were not explained to you.
By the end of the week I will rewrite the posting to you explaining what is automated and what is not. I will also tell you what I do where the automation steps are not yet available. The email will also explain the Rules part of the application which describes how sentences and then clauses are segmented using rules.
CLIPS is a rule based language capability which was developed in the US by and for NASA in I believe 1986. It has been incorporated into the LISP language and is also embeddable in C.
The Notation scheme which could be written in BML (I believe) is the real crux of the application.
I like what you have in BML, and the add-in-editor.
Regards, forkinpm.

 
1/19/2010 5:37:22 AMQuote    Edit/Delete
Lock thread New Thread  Post Reply