Page tree
Skip to end of metadata
Go to start of metadata

The org.opencode4workspace.endpoints.FocusPostEndpoint is used to post text for Focus analysis and retrieve a List of Focus objects corresponding to the analyses.

The FocusEndpoint is instantiated, like the other endpoints, by passing in the WWClient for the request. The text string is posted using the postMessage(String text) method. Alternatively, the WWClient.postTextForFocusAnalysis(String text) helper method is available for easier use.

A List of Focus objects is returned. The applicationId and lensId are auto-generated. The focusVersion is defined by Watson Work Services. The lens identifies what was identified - an "ActionRequest", a "Question" or a "Commitment". The confidence is a number between 0 and 1 that identifies how certain Watson Work Services was in identifying the lens. The start and end are the indices of within the passed text that the phrase can be found. It seems that the lens always hashidden set to true.

@Test(enabled = true)
@Parameters({ "appId", "appSecret" })
public void postTestForFocus(String appId, String appSecret) throws UnsupportedEncodingException, WWException {
    String TEXT = "Hello, I think we need to reconsider. Let's add a meeting on Tuesday 13th March. Frank, what do you think?";
    WWClient client = WWClient.buildClientApplicationAccess(appId, appSecret, new WWAuthenticationEndpoint());
    assert !client.isAuthenticated();
    assert client.isAuthenticated();

    List<Focus> focuses = client.postTextForFocusAnalysis(TEXT);
    assert (focuses.size() == 3);
    assert (focuses.get(0).getLens().equals(Lens.ACTION_REQUEST));
    assert (focuses.get(2).getLens().equals(Lens.QUESTION));
    assert (38 == focuses.get(0).getEnd());
    assert (1.0 == focuses.get(1).getConfidence());


  1. Anonymous

    Pretest scores for the both group will disclose to us whether the two gatherings began in a similar place. In the event that the coaching was successful, the circulation of the post-test scores from write my dissertation the gathering that got mentoring ought to be higher than the post-test scores.

  2. Anonymous

    It is essential to increase one's information and comprehend some points of view, trial, specifics, and substantiation, or reassess already known things. In numerous instances, to investigate seriously, we require to relate critical thoughts skills, and the major secret of successful conclusion of the assignment you are certain is the capability to read between the lines, best dissertation writing services observes through the text to recognize author's ideas, thoughts, and purposes, secreted in the handy-dandy plan and story.

  3. Anonymous

    There is no need to google “Who can i pay someone to do my homework?” anymore. Use our service and receive a first-rate paper quickly and on time.

  4. Anonymous

    These modification will let your work more efficient and attractive like when you scroll to the best affordable essay writing service you will actually flourish your grades!

  5. Anonymous

    We, as genuine experts at online cheap dissertation help UK formatting, don't need you to feel uncomfortable and have any doubts. In the event that you need some genuine thesis writing help, you should have a chance to message to your service when it is essential and to have really quick responds.

  6. Anonymous

    There are lots of queries which we use in coding for performing a different function and this query may work for this function which we may easily use in our site dissertation writing services UK and waiting for the results. There are a lots of experts which work on queries and coding language and we should learn from them to improve coding.  

  7. Anonymous

    So if you can find a service that can guide you and provide you consultation then that is definitely the Expert PhD Thesis Writing Agency for you.

  8. Anonymous

    Livin' in a world where no one's innocent Oh, but at least we try, mmm Gotta live my truth, not keep it bottled in So I don't lose my mind, baby, yeah
     geometry dash

  9. Anonymous

    Dissertation Writing Ace offers you online dissertation editing services.  Our professional dissertation writers are capable of making your dissertation 100% authentic and reliable. They check and fix the gaps in your dissertation writing. Our team is professionally trained for writing a custom dissertation. They follow the right procedures of writing that give them a result of plagiarism-free writing.

  10. Anonymous

    Incredible article. Couldn't be compose much better!

    Keep it up!

    Nursing Assignment

  11. Anonymous

    exceptionally decent… I truly like your blog…

    Online Accounting Essay Writing

  12. Anonymous

    Normally I never remark on sites however your article is persuading to the point that I never stop myself to say something regarding it. You're working admirably Man,Keep it up.

    Buy Nursing Dissertation

  13. Anonymous

    A lotof students look for diddertation help, and a lot of online writing servicesadvertise that they can supply that help. Only a few, however, have the writing staff to actually provide that help, so visit

  14. Anonymous

    Among other courses, nursing healthcare coursework writing services have become popular since students seek Healthcare Research Writing Services and healthcare essay writing services. 

Write a comment…