Creating of the word-frequency histogram from the Oracle Text

I need make from the Oracle Text index of the "word-frequency histogram", this is list of the tokens in this index, where each token contains the list of documents that contain that token and frequency this token in the every document. Don´t anybody know how to get this data from Oracle Text index so that result will save to the table or to the text file?

You can use ctx_report.token_info to decipher the token_info column, but I don't think the report format that it produces is what you want. You can use a query template and specify algorithm=count to obtain the number of times a token appears in the indexed column. You can do that for every token by using the dr$...$i table, as shown below. Formatting is preserved by prefacing the code with pre enclosed in square brackets on the line above all of the code and /pre in square brackets on the line below all of the code.
SCOTT@10gXE> create table otntest
  2    (doc_id       number primary key,
  3       document  varchar2(100))
  4  /
Table created.
SCOTT@10gXE> insert all
  2  into otntest values (1, 'This is a test for generating a histogram')
  3  into otntest values (2, 'Histogram shows the list of documents that contain that token and frequency')
  4  into otntest values (3, 'frequency histogram frequency histogram frequency')
  5  select * from dual
  6  /
3 rows created.
SCOTT@10gXE> create index otntest_ctx_idx
  2  on otntest(document)
  3  indextype is ctxsys.context
  4  /
Index created.
SCOTT@10gXE> column token_text format a30
SCOTT@10gXE> select t.doc_id, i.token_text, score (1) as token_count
  2  from   otntest t,
  3           (select distinct token_text
  4            from   dr$otntest_ctx_idx$i) i
  5            where  contains
  6                  (document,
  7                   '<query>
  8                   <textquery grammar="CONTEXT">'
  9                   || i.token_text ||
10                   '</textquery>
11                   <score datatype="INTEGER" algorithm="COUNT"/>
12                   </query>',
13                   1) > 0
14  order  by doc_id, token_text
15  /
    DOC_ID TOKEN_TEXT                     TOKEN_COUNT
         1 GENERATING                               1
         1 HISTOGRAM                                1
         1 TEST                                     1
         2 CONTAIN                                  1
         2 DOCUMENTS                                1
         2 FREQUENCY                                1
         2 HISTOGRAM                                1
         2 LIST                                     1
         2 SHOWS                                    1
         2 TOKEN                                    1
         3 FREQUENCY                                3
         3 HISTOGRAM                                2
12 rows selected.
SCOTT@10gXE>

Similar Messages

  • [svn:fx-trunk] 10677: Fix for "In ASDoc, the word 'global' disappears from  @see link text"

    Revision: 10677
    Author:   [email protected]
    Date:     2009-09-29 08:09:49 -0700 (Tue, 29 Sep 2009)
    Log Message:
    Fix for "In ASDoc, the word 'global' disappears from @see link text"
    QE notes: None.
    Doc notes: None
    Bugs: SDK-23429
    Tests run: asdoc testsuite
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-23429
    Modified Paths:
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/TopLevelClassesGenerator.ja va

    THank you , Nancy. Appreciate the input.
    So instead of this:
    <a class="brand" href="index.html"><img src="../img/logo-ca.png"alt="Consumers Advocate Review"> </a>
    Would it be something like this?:
    <a class="brand" href="index.html"><img src="http://ConsumersAdvocate/img/logo-ca.png"alt="Consumers Advocate Review"> </a>
    And if I do that, is there a way to cope with that locally so that DW can still display the images?
    jeff

  • I have set up a second iTunes user account on my PC, but when I create the new iTunes account it copies the music, videos etc from the original account and they seem to be linked.  What am I doing wrong?

    I have set up a second iTunes user account on my PC, but when I create the new iTunes account it copies the music, videos etc from the original account and they seem to be linked, so that when I delete a song from one library it deletes from the other one. 
    On the online tutorials I've seen it shows that when you create a new iTunes library it should open as a blank account, but that isn't happening.
    What am I doing wrong?

    If you  have iTunes 11 turn on the Sidebar. Go to iTunes>View and click on Show Sidebar. You can also do a Crtl+S to show the sidebar. The sidebar is where Devices appears. and Control+B to show the Menu bar
    If necessary:
    iOS: Device not recognized in iTunes for Windows
    or
    iOS: Device not recognized in iTunes for Mac OS X

  • Why can't I create a response to an email from the Viewer window?

    Why can't I create a response to an email from the Viewer window?
    When I select an email to respond to in the viewer window and click on the respond arrow that appears just under the header, a new response email opens for a split second then disappears.
    I have to actually click on and open the email message in its own screen to be able to then click on the respond arrow and succeed in having Mail open a response email that I can edit - one that remains open.
    This seems to be a bug that we need to have squashed.
    Steve

    Do I have to connect the iPad to a computer to make this work? Is the fact that I used another email address to set up my Apple ID years ago causing the problem? A friend of mine just got a new iPod and he was able to set up a me.com account. I am feeling rather stupid. Hope someone here can help.

  • How to create a service entry sheet based from the PO

    how to create a service entry sheet based from the PO
    Gurus,
    I am creating a service entry sheet from the PO but I am getting an error of u201CPlease maintain services or limits Message no. SE029- Diagnosis(You cannot enter data until the PO item has been maintained correctly) u201C
    The document type of the PO is standard NB, account assignment category is Q- (Proj make to order) and the item category is D(service). Then I am trying also create a PR using account assignment category is Q- (Proj make to order) and the item category is D(service) but still cannot proceed, a message asking me to enter a service entry number. What I know the process is create a PO(maybe based from PR) then post the GR then create a service entry sheet in ML81N but I cannot proceed. Just creating a PR or PO using those mentioned account assignment and item category and getting an error of need to enter a service entry sheet number.
    Please help.thanks!

    HI,
    Process for Creating Service Entry Sheet
    Transaction Code :    ML81N
    1)To open the respective Purchase Order, Click on the u2018Other Purchase Orderu2019, then enter the Purchase Order No.
    2)Click on the u2018Create Entry Sheetu2019 icon(3rd Icon on Top-Left)
    3)Give Short Text (e.g. R/A Bill No. 1) and top service entry sheet number also generated.
    4)Click u2018Service Selectionu2019 Icon on the Bottom of the Screen.
    5)For the 1st Time, when we are making Service Entry Sheet for a respective Purchase Order, we need to u201CAdopt Full Quantityu201D by clicking the Check box next to it, then Enter.  (*For the next time, no adoption is required, just continue)
    6)Select the respective Services by clicking on the Left Hand Side, then Click u2018Servicesu2019 (Adopt services) icon on the Top.
    7)Give the completed Quantity, then Click u2018Acceptu2019 icon(a green flag on the top)
    8)Save .
    9)Service Entry Sheet is SAVED and account posting made.
    Hope, it is useful for you,
    Regards,
    K.Rajendran

  • I created a new playlist and added music to it; when I sync it to my iphone, the music is erased from the playlist!

    I created a new playlist and added music to it; when I sync it to my iphone, the music is erased from the playlist! Does anyone know why this is happening or how to fix it??

    check the configuration in itunes of your phone

  • Setting required to create Business partner record in SAP GTS for the customer who transferred from the SAP ECC system

    Dear Experts,
    Can you please suggest me list of activities require to automatically  create Business partner record in SAP GTS for the customer who transferred from the SAP ECC system .
    i.e If I create the customer master record and transfer the same CMR to SAP GTS , what are the setting requires to maintain in SAP GTS sytem to automatically create the Business partner .
    Ram

    Hi Raghu,
    Below are the main settings required to enable you to transfer Customer Master Data to SAP GTS. Please note that their is a difference between, Customer Master Record and Customer Master Data in terms of data and for GTS, we transfer Customer Master Data. Hence, below are the settings required:-
    In SAP ECC system:-
    Activate the change pointers for Customer Master Data apart from enabling basic connection settings.
    Schedule a job to run at regular intervals to transfer all the customer master data for the available change pointers to the SAP GTS system
      2.  In SAP GTS system:-
    Maintain the Mapping for ECC Customers to SAP GTS Business Partners in the General settings area of the SPRO in SAP GTS system
    Ensure that the Number range is maintained for those GTS  Business Partners.
    Also, some time you may be required to maintain the organisational structure to ensure full working.
    I hope this will be helpful to you.
    Regards,
    Aman

  • How do I export words and definitions from the glossary widget in C7?

    How do I export words and definitions from the glossary widget as XML? I need to use the same glossary in several projects. When I copy and paste the widget to a different project about 1/2 of the definitions disappear. Figured I would try exporting the words then importing them back in new glossaries in each project. Using 7 on a Mac.

    Yes i read, and the answer to the main question is still the same, you cannot export, you just can import definitions if you previously have structured them into an xml file. So, first of all it would be useful to warn the user to ALWAYS start from an xml file BEFORE starting populating the glossary. Furthermore, not all users are supposed to manage easily an xml editing, and the widget itself has been programmed to insert the definitions with a simple method, so it would be necessary also to have an instrument to export to xml for importing purpose. Storyline has the same lack, you cannot move glossary from one project to another but you are forced to start from an old project or insert the glossary itself into a master project. You will agree with me that an xml export feature is not something so difficult to add for the widget. In my personal example, i added about 200 definitions, then i discovered that the glossary of captivate 7 does not work well in html5, the new one in captivate 8 is little bit better, but still not working on chrome (at least on ipad it shows, but you cannot show a button over it since it goes always on the top of everything, so at the moment i inserted a big transparent square behind it to close everyting like a lightbox). This widget is still very buggy and need to be improved.

  • I rented a movie and it downloaded but the movie skips and i can hear the words but the picture does not? and now the movie is gone from the library and i only rented it an hour ago? what do i do?

    I rented a movie and it downloaded but the movie skips and i can hear the words but the picture does not? and now the movie is gone from the library and i only rented it an hour ago? what do i do?

    I'd report the problem to the iTunes Store. 
    Log in to the Store. Click on "Account" in your Quick Links. When you're in your Account information screen, go down to Purchase History and click "See all".
    Find the item that is not playing properly. If you can't see "Report a Problem" next to the item, click the "Report a problem" button. Now click the "Report a Problem" link next to the item.

  • I am missing the add objects section from the fly out menu in Photoshop CS6. 3d workspace

    I am missing the "add objects" section from the fly out menu in Photoshop CS6. I am in the 3D workspace of Photoshop. "Scene" is highlighted and I have clicked on the little fly out menu in the upper right hand corner of that panel. The whole section that should contain, Add objects, delete objects, duplicate objects, all the way through reverse order is missing. The add lights section above and render section below it is there. I am not new to Photoshop, but I am new to the 3D section of Photoshops work space.
    I do know about creating a new layer in the layers tab and merging the objects together trick. But I kind of would like for the program to work correctly as I am sure that doing it that way will cause some sort of problems later in the work process.
    Below are the specs of my system.
    Adobe Photoshop Version: 13.0.1 (13.0.1.3 20131024.r.34 2013/10/24:21:00:00) x64
    Operating System: Windows NT
    Version: 6.2
    System architecture: Intel CPU Family:6, Model:12, Stepping:3 with MMX, SSE Integer, SSE FP, SSE2, SSE3, SSE4.1, SSE4.2, HyperThreading
    Physical processor count: 4
    Logical processor count: 8
    Processor speed: 2394 MHz
    Built-in memory: 32651 MB
    Free memory: 28832 MB
    Memory available to Photoshop: 29606 MB
    Memory used by Photoshop: 89 %
    Image tile size: 128K
    Image cache levels: 4
    OpenGL Drawing: Enabled.
    OpenGL Drawing Mode: Basic
    OpenGL Allow Normal Mode: True.
    OpenGL Allow Advanced Mode: True.
    OpenGL Allow Old GPUs: Not Detected.
    Video Card Vendor: Intel
    Video Card Renderer: Intel(R) HD Graphics 4600
    Display: 3
    I am actually running windows 8. So I am not sure why it is saying windows NT. Anyway...
    Photoshop says that my software is up to date. I use Photoshop daily and everything else works just fine. I have looked through this forum and there is someone else who had the same issue as me but their question was not given a solution. So that is why I choose to post it again.
    Any help will be great. Thank you!
    Mark.

    I've made tests with four different 3rd party tools: OpenGL Extension Viewer, GPU Caps Viewer, Compute4Cash OpenCL Diagnostic Tool and Mudlord's Glide3x wrapper tester. All those tools report no problems with my video card driver and OpenGL/CL.
    I have contacted nVidia and based on reports from the tools and visual tests from GPU Caps Viewer nVidia support doesn't see a problem with my driver.
    I found sniffer_gpu.exe which according to Adobe Help pages is a kind of diagnostic tool and determines whether Photoshop uses the graphic card OpenCL or not. Here is the output:
    Device: 00000000002B1BE8 has video RAM(MB): 1023
    Vendor string:    NVIDIA Corporation
    Renderer string:  GeForce GTX 650/PCIe/SSE2
    Version string:   3.0.0
    OpenGL version as determined by Extensionator...
    OpenGL Version 3.0
    Has NPOT support: TRUE
    Has Framebuffer Object Extension support: TRUE
    OpenGL ok
    OpenCL ok, version=1.1 CUDA 4.2.1
    Return code: 3
    From Adobe GPU Sniffer tool, it looks OK.
    On the other hand, I have your word that there is no problem with Photoshop not recognizing OpenCL for my card and that nVidia driver has problems. Can you justify this somehow? Perhaps you could provide more details on technical level, or another utility to run and extract details, to at least identify the problem Photoshop has and hopefully solve it on either side.
    P.S. During tests there were two things which I noticed, but they are probably not related to the issue:
    1. One tool reports the lack of Windows registry key SOFTWARE/Microsoft/Windows (NT)/CurrentVersion/OpenGLDrivers. But according to your previous statement, Photoshop only uses OS calls, no registry and according to nVidia, this key is not used in Windows 7.
    2. During some tests GPU Caps Viewer reports that "OpenCL CPU not supported on the selected platform". This is not complaining about GPU, only about CPU. But Photoshop is complaining about GPU, so it shouldn't be relevant.

  • How do you get the web application path from the servlet?

    I have created a web application which is installed in
    /webapps/myApplication
    /webapps/myApplication/data/users.xml
    /webapps/myApplication/WEB-INF/classes/myServlet
    How can you get the path to the "users.xml" file from the "myServlet" file?
    The code below doen's seem to return the xml file. anybody knows why?
    public class myServlet extends HttpServlet {
    public void doGet( HttpServletRequest req, HttpServletResponse res ) throws ServletException, IOException
    File myXmlFile = new File("/data/users.xml");

    Try this..
    String FileName = getServletContext().getRealPath("\\data\\users.xml");
    File myXmlFile = new File(FileName);
    hope this helps..

  • Installation of the Proof of Purchase from the ACPI table failed. Error code:0xC004F059

    I just updated Window 8.0 to 8.1 for the second time as the first Time there was an UEFI issue...  the 8.1 installs and update seemed smooth... I shut down, and I leave for work. I come home fire up my PC it seems slow!! it boots...
    I notice some live tiles are active I prefer mine off so I  shut off a couple Live tiles. so then I decide to open the Mail tile and it locks up... and then one of my browsers freezes up!!! I could not open task manager at all to end the
    proses, so I decided to restart and then an app was not allowing windows to restart!!! so windows ended the task on its own could not make out what program or app it was!!! and the machine booted up slower again. I went into the event viewer
    and what do I find in there is this stuff and now looking at it this all started after the windows 8.1 update... I get it we all want the latest and greatest OS but as my mom said good things come to those whom wait don't rush into anything!!!
    and I think Microsoft you are rushing to push stuff out onto the Market... so now I have to sit here and wonder why my PC now takes 2 + minutes to load!!! (BS) and on win 8.0 it took 60 seconds... fix this please I will watch and see if
    this happens again if it keeps up I will have to once again revert back to 8.0 and at that point I will want some $$$ compensation for my loss... why should I have to go through hoops for something with the word Mircrosoft attached to it...
    I wonder how many others have had this same issue and don't even know its happening....
    1.
    Installation of the Proof of Purchase from the ACPI table failed. Error code:0xC004F059
    2.
    taskhostex (2888) WebCacheLocal: The shadow header page of file C:\Users\Dale\AppData\Local\Microsoft\Windows\WebCache\V01.chk was damaged.The primary header page (4096 bytes) was used instead.
    3.
    The driver \Driver\WudfRd failed to load for the device SWD\WPDBUSENUM\{362b48de-4382-11e3-be6e-3085a9a945d8}#0000000000007E00.
    4.
    Driver detected an internal error in its data structures for
    5.
    The program wwahost.exe version 6.3.9600.16431 stopped interacting with Windows and was closed. To see if more information about the problem is available, check the problem history in the Action Center control panel.
    Process ID: e14
    Start Time: 01cf3eb70280ca6e
    Termination Time: 4294967295
    Application Path: C:\WINDOWS\syswow64\wwahost.exe
    Report Id: f7b4be2f-aaaa-11e3-8250-3085a9a945d8
    Faulting package full name: Microsoft.SkypeApp_2.0.0.5011_x86__kzf8qxf38zg5c
    Faulting package-relative application ID: App
    6.
    The program wwahost.exe version 6.3.9600.16431 stopped interacting with Windows and was closed. To see if more information about the problem is available, check the problem history in the Action Center control panel.
    Process ID: 15bc
    Start Time: 01cf3eb66f89a193
    Termination Time: 15
    Application Path: C:\WINDOWS\system32\wwahost.exe
    Report Id: 0fd54265-aaaa-11e3-8250-3085a9a945d8
    Faulting package full name: microsoft.windowscommunicationsapps_17.4.9600.16384_x64__8wekyb3d8bbwe
    Faulting package-relative application ID: Microsoft.WindowsLive.Mail

    I have the something similar happening as reported in  event viewer in the warning section:
     System
      - Provider
       [ Name]  Microsoft-Windows-Security-SPP
       [ Guid]  {E23B33B0-C8C9-472C-A5F9-F2BDFEA0F156}
       [ EventSourceName]  Software Protection Platform Service
      - EventID 1058
       [ Qualifiers]  32768
       Version 0
       Level 3
       Task 0
       Opcode 0
       Keywords 0x80000000000000
      - TimeCreated
       [ SystemTime]  2014-08-13T04:35:49.000000000Z
       EventRecordID 80761
       Correlation
      - Execution
       [ ProcessID]  0
       [ ThreadID]  0
       Channel Application
       Computer Monzworks
       Security
    - EventData
       0xC004F059
    installation of the proof of purchase from the acpi table failed 0xc004f059
    My System Properties page says "Windows is activated"  and a product Id is displayed. I am on a window 8.1 core OS after applying the update successfulling from Window 8. My computer is an AsusTek Computer Inc. ,
    Asus Desktop PC CM1745 Series - 64-bit Operating System x64-based processor.
    I had trouble with AODDriver4.2.0 causing errors because the system could not find the path, It turned out to be uncleared program remnants in the registry were looking for an old version of the driver, in the wrong place , instead of the current one.  
    Oh, and I tried sfc/scannow and DISM /Online /Cleanup-Image /RestoreHealth from elevated cmd prompt and elevated powershell ise everthing was reported with no errors and with powershell, the report said windows store corruption was repaired.
    Before this I had used apps.diagcab and it said my IE 11's  temporary internet files folder was in the wrong place that it was going to put it back. Well, it messed up my IE 11 so the folder location was in the same place but it was not listed in the
    location:                 . <----- Just like this. Plus the amount of disk space available was 8mb-which messed up any sort of operations for example putting in a new search
    engine could not be completed.  I had to use a system restore.   I currently have no errors showing up but warnings yes. thankfully most are minor.This is the other event viewer report which could be related:
    - System
      - Provider
       [ Name]  Microsoft-Windows-Security-Auditing
       [ Guid]  {54849625-5478-4994-A5BA-3E3B0328C30D}
       EventID 5061
       Version 0
       Level 0
       Task 12290
       Opcode 0
       Keywords 0x8010000000000000
      - TimeCreated
       [ SystemTime]  2014-08-13T03:48:26.671362500Z
       EventRecordID 290021
       Correlation
      - Execution
       [ ProcessID]  676
       [ ThreadID]  728
       Channel Security
       Computer Monzworks
       Security
    - EventData
      SubjectUserSid S-1-5-21-4255092528-2166032690-2543152005-1002
      SubjectUserName Monz Prez
      SubjectDomainName MONZWORKS
      SubjectLogonId 0x239d9
      ProviderName Microsoft Software Key Storage Provider
      AlgorithmName UNKNOWN
      KeyName CD1CC265-0DA0-4230-8419-CB6F808FE688
      KeyType %%2500
      Operation %%2480
      ReturnCode 0x80090016
    I am tired so talk among yourselves.
    Sincerely Tired

  • How to delete the duplicated songs at the same time also from the source , hd

    i have lots of song twice or tripple in the song list. the main reason is i have them also in the source hd dupplicated. It is not easy to find the dupplicated songs in the hard disc, they are in different files with different names but same songs . ı have to delete them by checkin the files each for every duppliceted song it is not possible practically.
    but in i tunes i see them all in a list and can delete. but they will still be in hard disc. If for any reason i have to reload the files to  itunes, they come again and i have to start form the zero point.
    i want to delete them at the same time when i am deleting them on i tunes library.
    this options is available on windows media player. there is always an option when i delete a song the software asks '' delete only from the list or also from the source? ''
    is this optian available in i tunes ?

    Ting,
    Try this:
    Insert a group on body_code.  Then create a running total called Distinct Count.  Field to summarize -> ID, Evaluate on change of group Group # 1 Body Code, and Never Reset.
    Then insert a chart in the report header:
    In the advanced layout, select body_code on change of and select Distinct Count running total in the Show values.
    I hope I understood what you're looking to accomplish.
    Z

  • How to get the view link definition from the view link accessor

    Hi,
    I am using Jdev 10.1.3 and ADF BC. I am trying to do deep copy in a master/details view, after the new child record is created, I want to update the foreign key attribute. I know I can get the list of attribute definitions from the row in the view object, which include the view link accessors, I am wondering if I can get the view link definition from the view link accessors, so that I can get the source and destination attribute names.
    Thanks!

    Hi,
    you should get this through
    ViewObject vo = this.findViewObject("LocationsView1");
    int indx = vo.getAttributeIndexOf("DepartmentsView");
    ViewAttributeDefImpl vAttrDefImpl = (ViewAttributeDefImpl) vo.getAttributeDef(indx);
    ViewLinkDefImpl vdefImpl = (ViewLinkDefImpl) vAttrDefImpl.findViewLinkDefImpl();
    Note that this code starts from the ApplicationModuleImpl class, which is why I used this.findViewObject().
    Frank

  • How to find the Web Dnpro component from the Source code ?

    Hi Gurus,
    Please help me to find out the WD Component Name from the Source Code?
    Regards
    Anil

    Hi Thomos,
    When i right clik on the screen i see the following line by line.
    -Back
    -forward
    -save background as
    -set as background
    -copy background
    -set as desktop item
    -select all
    -Paste
    -create shotcut
    -add to favorites
    -view source
    -encoding
    -print
    -refresh
    -export to microsoft excel
    -properties
    I have mentioned every thing i see when ever i right click on the screen.
    --Anil

Maybe you are looking for

  • Best way to remove dust from a MacPro

    what is the best way to clean the inside of a Macpro. When I go inside to remove or update components there is considerable dust. In the past I have grounded my self and gently wipe some of the areas with a light cloth to remove dust. There are areas

  • Message " ipod is synced with other itune library"

    After every 4-5 days when I connect my ipod touch second generation to my Sony VAIO I get a message that it is synced with another I tune library . All my data in the library disappears . I have to transfer all my purchased application to this blank

  • WebSAPConsole

    hi, I would like to connect a reader codes bar (MC9000G,win CE) has SAP. The reader is connect to my computer(os:Win2000) with the software 'ActiveSync' (indicated by the manufacturer). My first idea was to use WebSAPConsole,for that i use WebSAPCons

  • HP Pavilion DV6 Graphics Upgrade

    Hello ladies & gentlemen, I'm the proud owner of a HP Pavilion DV6 Notebook. The only flaw I've found is that it doesn't have a good video performance (which is a shame for a having an 720p HD display). The graphics device installed is a Mobile Intel

  • TS2446 i can't update my application from my account

    i can't update my applicaton and can't download any app because my apple id show me message ( Your Apple ID has been disabled ) , i change my password but can't resolved thanx <Email Edited by Host>