Digital Developer Conference: a FREE half-day online conference focused on AI & Cloud – North America: Nov 2 – India: Nov 9 – Europe: Nov 14 – Asia Nov 23 Register now

Close outline
  • United States
IBM?
  • Site map
IBM?
  • Marketplace

  • Close
    Search
  • Sign in
    • Sign in
    • Register
  • IBM Navigation
IBM Developer Answers
  • Spaces
    • Blockchain
    • IBM Cloud platform
    • Internet of Things
    • Predictive Analytics
    • Watson
    • See all spaces
  • Tags
  • Users
  • Badges
  • FAQ
  • Help
Close

Name

Community

  • Learn
  • Develop
  • Connect

Discover IBM

  • ConnectMarketplace
  • Products
  • Services
  • Industries
  • Careers
  • Partners
  • Support
10.190.13.195

Refine your search by using the following advanced search options.

Criteria Usage
Questions with keyword1 or keyword2 keyword1 keyword2
Questions with a mandatory word, e.g. keyword2 keyword1 +keyword2
Questions excluding a word, e.g. keyword2 keyword1 -keyword2
Questions with keyword(s) and a specific tag keyword1 [tag1]
Questions with keyword(s) and either of two or more specific tags keyword1 [tag1] [tag2]
To search for all posts by a user or all posts with a specific tag, start typing and choose from the suggestion list. Do not use a plus or minus sign with a tag, e.g., +[tag1].
  • Ask a question

How do I create a new corpus for Concept Insights?

2700074T13 gravatar image
Question by mfrager  (76) | Feb 06, 2015 at 01:27 AM watsonibmcloudconcept-insights

When I run:

curl -D - -X POST -u myuuid:mypass -d '{"access":"private","users":[{"uid":"myuuid","permission":"AdminReadWrite"}]}' \ 'https://gateway.watsonplatform.net/concept-insights-beta/api/v1/corpus/myuuid/corpname'

I get this error:

{"error":"corpus does not exist","url":"/myuuid/corpname"}

Any ideas?

(X-Global-Transaction-ID: 82095273)

German Attanasio Ruiz
Luis A. Lastras

People who like this

  2
Comment
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster

5 answers

  • Sort: 
2700074T13 gravatar image

Answer by mfrager (76) | Feb 06, 2015 at 01:34 AM

Nevermind...

There's a typo in the docs. I changed "POST" to "PUT" and it worked!

Awesome!

Comment
German Attanasio Ruiz
Luis A. Lastras

People who like this

  2   Show 1   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
270007KE3F gravatar image German Attanasio Ruiz (4975) ♦   Feb 06, 2015 at 07:55 AM 0
Share

you should mark your own answer as accepted :-P

27000035QP gravatar image

Answer by Allen.Dean (939) | Feb 06, 2015 at 08:06 AM

Thanks for finding the error. We'll change that example.

Comment
Luis A. Lastras

People who like this

  1   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
270006EH5V gravatar image

Answer by Luis A. Lastras (761) | Feb 06, 2015 at 08:00 PM

@mfrager, have you had success adding documents to a corpus in Concepts Insights? Typically you will want the documents to have enough text so that at least 10 concepts from Wikipedia are successfully detected by Concept Insights. Also in our experience it starts to show useful behavior when the number of documents added is in the hundreds or a few thousands.

Comment
MichaelKeeling

People who like this

  1   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
2700074T13 gravatar image

Answer by mfrager (76) | Feb 17, 2015 at 01:02 PM

I was able to upload my corpus. I'm pretty happy with how it all turned out and I plan on continuing to work with the Concept Insights API, I think it has great potential.

If you'd like to take a look at the project I'm working on here's some details. This is all in alpha development of course...

I've loaded up the entire congressional record from 2014 and linked it to a page for each representative. Then I'm using the Concept Insights API to do a topic-based search on the record transcripts.

Here's the link: http://atellix.com/search

A few tips, you'll need to select "Congress Records" from the search, and then enter a partial topic and then click on the topic you want from the drop-down menu to search before pressing return (otherwise it won't work).

For an example try doing a search for "Immigration" or try this link for a short cut:

http://www.atellix.com/search?search_mode=congrec⊤ic=Immigration

Once you search you'll get a list of the congressional transcripts that contain a discussion related to the topic, the members who participated in those discussion, and a list of related topics.

Comment
Tejas Parikh

People who like this

  1   Show 1   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
3100012P1N gravatar image MatthieuVaragnat (26)   Oct 08, 2015 at 08:43 AM 0
Share

Your use case seems extremely interesting, is it still online ? I can't access the website

270006EH5V gravatar image

Answer by Luis A. Lastras (761) | Feb 18, 2015 at 02:21 PM

Awesome, we tried it out. It's good, it feels that it has a clear use case.

Quick suggestion. When you do a semanticSearch, you also get back a list of concepts with the coordinates within which they appear in each of the documents. There is a "score" field that tells you how relevant the concept (within the document) is to the query. You could use this data in order to do some highlighting of the documents when you click them.

Comment

People who like this

  0   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster

Follow this question

23 people are following this question.

Answers

Answers & comments

Related questions

Concept Insights demo application needs editing? 1 Answer

Increasing time taken for a Concept Insights API call 1 Answer

Concept Insights + AlchemyData News Application 2 Answers

Is there any sample code to use Concept Insight service from Java runtime? 1 Answer

Can I use Concept Insights API for Q&A ? 4 Answers

  • Contact
  • Privacy
  • IBM Developer Terms of use
  • Accessibility
  • Report Abuse
  • Cookie Preferences

Powered by AnswerHub

Authentication check. Please ignore.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • API Connect
  • Analytic Hybrid Cloud Core
  • Application Performance Management
  • Appsecdev
  • BPM
  • Blockchain
  • Business Transaction Intelligence
  • CAPI
  • CAPI SNAP
  • CICS
  • Cloud Analytics
  • Cloud Automation
  • Cloud Object Storage
  • Cloud marketplace
  • Collaboration
  • Content Services (ECM)
  • Continuous Testing
  • Courses
  • Customer Experience Analytics
  • DB2 LUW
  • Data and AI
  • DataPower
  • Decision Optimization
  • DevOps Build
  • DevOps Services
  • Developers IBM MX
  • Digital Commerce
  • Digital Experience
  • Finance
  • Global Entrepreneur Program
  • Hadoop
  • Hybrid Cloud Core
  • Hyper Protect
  • IBM Cloud platform
  • IBM Design
  • IBM Forms Experience Builder
  • IBM Maximo Developer
  • IBM StoredIQ
  • IBM StoredIQ-Cartridges
  • IIDR
  • ITOA
  • InformationServer
  • Integration Bus
  • Internet of Things
  • Kenexa
  • Linux on Power
  • LinuxONE
  • MDM
  • Mainframe
  • Messaging
  • Node.js
  • ODM
  • Open
  • PartnerWorld Developer Support
  • PowerAI
  • PowerVC
  • Predictive Analytics
  • Product Insights
  • PureData for Analytics
  • Push
  • QRadar App Development
  • Run Book Automation
  • Search Insights
  • Security Core
  • Storage
  • Storage Core
  • Streamsdev
  • Supply Chain Business Network
  • Supply Chain Insights
  • Swift
  • UBX Capture
  • Universal Behavior Exchange
  • UrbanCode
  • WASdev
  • WSRR
  • Watson
  • Watson Campaign Automation
  • Watson Content Hub
  • Watson Marketing Insights
  • dW Answers Help
  • dW Premium
  • developerWorks Sandbox
  • developerWorks Team
  • Watson Health
  • More
  • Tags
  • Questions
  • Users
  • Badges