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.

postTextForFocus
@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();
    client.authenticate();
    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());
}

31 Comments

  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 https://topdissertations.com/order-dissertation/.

  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. 

  15. Anonymous

    <a href="https://www.premiumdissertation.co.uk/" rel="nofollow">cheap dissertation help UK</a>

  16. Anonymous

    Ordinarily I never comment on destinations anyway your article is convincing to the point that I never stop myself to state something with respect to it. You're working honorably Man, Keep it up. Best Dissertation Writing Services UK

  17. Anonymous

    The article has some good and serviceable information. It was very well authored and easy to understand.

    American Heart Association

  18. Anonymous

    I wanted to thank you for this excellent read!! I definitely loved every little bit of it. I have you bookmarked your site https://ukbestessays.org/best-dissertation-writing-services/ to check out the new stuff you post.

  19. Anonymous

    This can be correct if you combine this with the essay writing service from 5 Dollars Essays !

  20. Anonymous

    I have use the same function for my programming course. Here I need to run the Funct() to make my project cheap assignment help it complete. I think the string variable not getting the exact values.

  21. Anonymous

    Emirati Coffee Dubai co-founder and CEO Mohamed Ali Al Madfai first opened the Emirati Coffee Co roastery in 2017 and the coffee shop followed a year later in 2018. Apart from coffee wholesalers, we offer a beautiful indoor or outdoor coffee cart with all equipment and highly skilled baristas to serve at your function or event. 

    raw coffee company Dubai

  22. Anonymous

    When I was studying programming at that time I  face this online dissertation help UK issue even mostly students do analysis for posting text.


  23. Anonymous

    Order your selection of Sachets & Jars of male enhancement performance honey that improves sex drive for men and women. Natural Ingredients. Based in Dubai, UAE.

    royal epimedium sex honey

  24. Anonymous

    Italian food has triumphed at all levels around the world, in temples of gourmet dining as well as in cafes, pizza parlors, wine bars, fancy food shops ilforno.me is the website where you can have the italian food to have.

    Pizza restaurants in abu dhabi

  25. Anonymous

    To avoid confusion, double-check the profile. Check out the good engagement rate on instagram daily or twice or thrice in a day to stalk that person. But don't jump into their stories directly. Use stalking tools and third-party apps to view someone's story. This way, you can also download that story.

  26. Anonymous

    Bridge City is a Reputable Cabinetry & Renovations Contractor. We Provide Services in IKEA Kitchen Design and Construction. We are a Quality Renovation Contractor that Renews and Brings Life back to Existing Properties no Matter what kind of Space you are Looking to Renovate: Bathrooms, Living Rooms, Kitchens, or Other Living Spaces.

    https://www.bridgecitycabinetry.ca


  27. Anonymous


    Not all hope was lost, though. Remember that determination I was talking about? I knew I was destined for something more; something greater than myself. https://www.fitnesswithdina.com

  28. Anonymous

    Ramma foundation is a company and a foundation that provide crack repair snow remove and gutter clean service. We are the crack repair foundation in Alberta Edmonton. We provide services like crack repair, gutter clean services, show removal, in short we are the foundation repair in Edmonton. If you are worried about the cracks on your home do not worry we are here to get it repair. If you are worried about snow on your roof, we can remove it. We are here to clean you gutter.

    https://www.rammafoundationrepair.ca/

  29. Anonymous

    ilforno.me offers best Insalata di pollo e pomegranate which have Pomegranate, cheddar cheese, sweet corn, mix peppers, chicken, cherry tomato, roman lettuce, lemon dressing. Ilforno provide many more italian foods for you. Buy now. Best pizza restaurant in abu dhabi

  30. Anonymous

    Also, our certified team of experts are here to help. We believe in first-class service, knowledgeable conversations, and reliable delivery.

    https://metexstoneworx.com/

  31. Anonymous

    Also, our certified team of experts are here to help. We believe in first-class service, knowledgeable conversations, and reliable delivery.

    Natural stone Edmonton

Write a comment…