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. 

  15. Anonymous

    <a href="" 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 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 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.

  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.

  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.

  29. Anonymous 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.

  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

  32. Anonymous

    The comments of the forum are great and I want you to know about find a word and hope you can have a good experience.

  33. Anonymous

    You ought to know armed forces benefits will likely probably be impacted prior to the divorce will be required After having a divorce at the armed forces.Find more.
  34. Anonymous

    I am sure that your analysis contains complete information in every way, I know I have less knowledge so I will discuss it further with Coursework Writing Service experts.

  35. Anonymous

    This article is such a nice and interesting one, I'm very satisfied with the provided contents. I hope more excellent articles would be posted in your website. Thank you so much for this and keep sharing.Get best Mobile App Development Dubai service you visit here site

  36. Anonymous

    It is brilliant blog. I like the way you express information to us. It is very useful for me. You are doing great job and thanks for sharing.What a wonderful post is it, i am very happy and i appreciate your effort. You are doing great job. Thanks for sharing your blog.The Mobile App Development Dubai provide good service you visit here site

  37. Anonymous

    I am impressed by your post. It contains very informative data and i gain a lot information from it. It is very useful for me. Thanks for sharing and keep on sharing that type of posts.It is superb blog and i really appreciate your blog. It is because i always like the informative blogs. You did a great job and thanks for sharing.Get best Winter season pure cotton bed sheet available at store you visit here site

  38. Anonymous

    The center catchphrase or keyphrase is the inquiry term that you need a page or post to rank for most. At the point when Vehicle Testing Dubai individuals look for that state, they should discover you. On the off chance that you set a center keyphrase for a page with Yoast SEO, the module assesses the page's substance and gives criticism on the best way to improve the substance to build the odds of positioning higher for that search term.

  39. Anonymous

    The motivation behind this vignette is to manage new clients through information obtaining and investigation Inventory Software Dubai just as to exhibit the essential abilities of the divDyn R bundle. This instructional exercise will utilize Scleractininan corals as an illustration bunch which was chosen on the grounds that the because of information quality reasons and as we have promptly accessible extra data about the coral taxa with which to tweak the examinations.

  40. Anonymous

    You can get an edge over the web with just visit the website and service that will also help you in find an online Quran Teacher website or you can Learners Quran Academy

  41. Anonymous

    We open Al Aqsa Halal Meat & Store years ago to sell premium quality halal meat Best halal meat philadelphia and freshest groceries items. We have been doing our job with determination and feel proud to see customers coming to us for their needs.

  42. Anonymous

    The foundation of her health management follows the principles of Regenerative Medicine by combining both traditional Strawberry Laser Lipo Near Me and evidence-based integrative medicine.

  43. Anonymous

    At Law Offices Of Rizwan M. Khalid, my law office offers variety of legal services to individuals, families Philadelphia Immigration Law Firms and businesses. My firm has developed a reputation for providing quality representation at affordable rates.

  44. Anonymous

    First goal is to satisfy your audience; you need to focus your content on your targeted audience and keep it relevant to the industry. Not only should your content be interesting internet marketing agency and informative, but it should also be very specific to your brand and target audience.

  45. Anonymous

    Williamson Caterers assists clients with all aspects of event planning, development, Catering Service and execution. Our decades of experience will ensure that every aspect of your event is covered and no detail is left unchecked.

  46. Anonymous

    If you don’t already own at least one Shearling Bomber Jacket, it’s time to invest. This versatile outerwear option looks excellent with countless casual and smart casual outfits. It’s also perfect for any time of the year. Wear one on summer nights with a white, crew-neck T-shirt and winter days over a black, turtleneck sweater and below a camel overcoat.

  47. Anonymous

    A Shearling Jacket is a short, durable jacket with a zippered front and fitted or elastic waist and cuffs. The style originates from the US Air Force, where it was worn by flight crew members.

  48. Anonymous

    AssignmentGlobe offers you the most affordable but excellent custom writing services & assistance by professional qualified writers of USA.

  49. Anonymous

    Thanks for sharing an informative article. I found it very interesting and unique. The writing technique is amazing. Relieve stress and anxiety

  50. Anonymous

    The Danish Government Scholarship 2022 for international student offer bachelor, master and doctoral study in Denmark scholarship. This is the best opportunity for students to study abroad for free. The interested applicant only applies in one-degree program bachelor, master, or doctoral.

  51. Anonymous

    The incentive at the back of this vignette is to control new clients thru statistics obtaining and research it's far very beneficial for me. Thanks for sharing and keep on sharing that sort of ERP Solutions in Karachi submitting. It's far an extraordinary blog and I certainly recognize your weblog.

  52. Anonymous

    Thank you for your information. Share, This would be really really useful.  cookie clicker  - slope unblocked

  53. Anonymous

    The inspiration driving this vignette is to oversee new customers  through data getting and examination similarly as to display the fundamental Cargo Service Dubai capacities of the divDyn R group. This instructional exercise will use Scleractinian corals as a delineation bundle which was picked in light of the fact that the in Cargo In Dubai view of data quality reasons and as we have immediately available additional information about the coral taxa with which to change the assessments.

  54. Anonymous

    The motivation driving this vignette is to manage new  clients through information getting and assessment correspondingly as to Resident Evil 2 Jacket  show the key limits of the divDyn R bunch. This instructional exercise will utilize Scleractinian corals as an outline pack which was picked considering the way that the taking Leather Jacket for Women into account information quality reasons and as we have promptly accessible extra data about the coral taxa with which to change the evaluations.

  55. Anonymous

    Do you want to look as classy as John Green from ‘The Fault in our Stars’? Or you want to slay the famous Kight Logo Varsity Jacket from Transformers? We have it all here for you at SOA Jax Teller Vest. Buy your favorite attires in the best quality and at best possible prices.

Write a comment…