On Thu, Sep 26, 2013 at 8:22 AM, <arthi.ven...@wipro.com> wrote: > Thanks Rupert, > On adding the Text Annotation new model to the weighted chain Iam able to > specify the suffix and prefix length to what I want and enhancement results > are accordingly modified. >
Nice to read that this is sufficient for your use case. I will still create a JIRA issue for an Engine that uses paragraphs and sentences to create more UI friendly fise:selection-context values. best Rupert > Thanking you and Regards, > Arthi > > > -----Original Message----- > From: Rupert Westenthaler [mailto:rupert.westentha...@gmail.com] > Sent: Thursday, September 26, 2013 11:04 AM > To: dev@stanbol.apache.org > Subject: Re: How to change the selection context retrieved in a Stanbol > enhancement. > > Hi Arthi, > > Antonio is completely right. > > The original idea of the 'fise:selection-context' property was to give > EnhancementEntinge the ability to specify the part of the text they used as > context for the annotation. The EntityTaggignEngine does this by setting the > selection-context to the three sentences used as context for the OpenNLP NER > module. > > Engines that do not use such a context (e.g. write an Annotation only because > of the 'fise:selected-text' would not need to add any > 'fise:selection-context'. However users have started to relay on the > selection-context to also (1) find mentions in rich-text documents (where the > fise:start/fise:end positions do not apply) and (2) UI level elements (e.g. a > tool-tip for users showing the context when hovering over a suggested tag). > > For (1) we have recently introduced the "TextAnnotation new model" > (STANBOL-????). This adds prefix/suffix to the fise:selected-text. > having those information makes it much easier as to re-find the exact > location by using the fise:selection-context together with the > fise:selected-text. > > For (2) we do currently not have a good solution. An additional engine that > uses detected sentences or paragraphs (multiple line breaks without any > non-whitespace char in-between) would be a great addition to Stanbol. Such an > engine could provide configuration options that allow users more control over > the context included in enhancements. > > For clearly supporting (2) I would suggest to add a new property > 'fise:extraction-context' to be used by EnhancementEngines to specify the > part of the content used to create the annotation and repurpose the current > 'fise:selection-context' to be used for (2) > > best > Rupert > > > On Wed, Sep 25, 2013 at 3:24 PM, Antonio Perez <ape...@zaizi.com> wrote: >> Hi Arthi >> >> I think it is not possible to achieve what you want using the >> configuration of the NLP engines through Stanbol web console config. >> >> The only way of change a property (selection-context) of Text >> Annotations is to implement a custom enhancement engine in order to >> can access to the whole content being enhanced and modify the >> selection-context property of each Text Annotation using the current >> selection-context and the whole content (to get a line or paragraph for >> example). >> >> Regards >> >> >> On Wed, Sep 25, 2013 at 1:38 PM, <arthi.ven...@wipro.com> wrote: >> >>> Hi, >>> >>> How can we change the default selection-context in the text >>> annotation while using the enhancer. Currently it is returning only >>> a few characters before and after the selected-text. >>> >>> >>> >>> I would like to change the selection-context to a line or paragraph. >>> Is there a way to do this from the Stanbol configuration menu. >>> >>> Iam using a custom Entity hub linking engine in addition to >>> following enhancer engines in a weighted chain - >>> >>> Tika >>> >>> Langdetect >>> >>> Opennlp-sentence >>> >>> Opennlp-token >>> >>> Opennlp-pos >>> >>> Opennlp-chunker >>> >>> MyCustomChain >>> >>> >>> >>> >>> >>> >>> >>> Thanks and Rgds, >>> >>> Arthi >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> Please do not print this email unless it is absolutely necessary. >>> >>> The information contained in this electronic message and any >>> attachments to this message are intended for the exclusive use of the >>> addressee(s) and may contain proprietary, confidential or privileged >>> information. If you are not the intended recipient, you should not >>> disseminate, distribute or copy this e-mail. Please notify the sender >>> immediately and destroy all copies of this message and any attachments. >>> >>> WARNING: Computer viruses can be transmitted via email. The recipient >>> should check this email and any attachments for the presence of viruses. >>> The company accepts no liability for any damage caused by any virus >>> transmitted by this email. >>> >>> www.wipro.com >>> >> >> -- >> >> ------------------------------ >> This message should be regarded as confidential. If you have received >> this email in error please notify the sender and destroy it immediately. >> Statements of intent shall only become binding when confirmed in hard >> copy by an authorised signatory. >> >> Zaizi Ltd is registered in England and Wales with the registration >> number 6440931. The Registered Office is Brook House, 229 Shepherds >> Bush Road, London W6 7AN. > > > > -- > | Rupert Westenthaler rupert.westentha...@gmail.com > | Bodenlehenstraße 11 ++43-699-11108907 > | A-5500 Bischofshofen > > Please do not print this email unless it is absolutely necessary. > > The information contained in this electronic message and any attachments to > this message are intended for the exclusive use of the addressee(s) and may > contain proprietary, confidential or privileged information. If you are not > the intended recipient, you should not disseminate, distribute or copy this > e-mail. Please notify the sender immediately and destroy all copies of this > message and any attachments. > > WARNING: Computer viruses can be transmitted via email. The recipient should > check this email and any attachments for the presence of viruses. The company > accepts no liability for any damage caused by any virus transmitted by this > email. > > www.wipro.com -- | Rupert Westenthaler rupert.westentha...@gmail.com | Bodenlehenstraße 11 ++43-699-11108907 | A-5500 Bischofshofen