Results 1 to 5 of 5
  1. #1
    findjoe is offline Member
    Join Date
    Oct 2010
    Posts
    3
    Rep Power
    0

    Default How to generate bigram/trigram/unigram probability?

    Hi, all:

    I want to generate word unigram/bigram/trigram probability. Is there an example to show how to do it? like "I am newbie......" in a file. The generated list may be:

    bigram:
    1. I am 0.23
    2. I want 0.20
    3. I like 0.19
    ...

    I read a very short piece by Manning, but it does not show to compute.

    Please help.

    Thank you in advance.

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,423
    Rep Power
    25

    Default

    How does this problem relate to java programming?

  3. #3
    findjoe is offline Member
    Join Date
    Oct 2010
    Posts
    3
    Rep Power
    0

    Default

    It is closely related to Java for search engine building, abstract extraction, data estimates and prediction, speech recognition...

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

  5. #5
    findjoe is offline Member
    Join Date
    Oct 2010
    Posts
    3
    Rep Power
    0

    Default

    Dear Norm and Fubarable:

    Thanks. I know little about Lucene. But, Is there sth in Lucene that generates bigram/trigram for indexing and search. Does it relate to Java programming?

    Thanks.

Similar Threads

  1. how to generate 4 set of questions
    By ravi.virgoo@gmail.com in forum AWT / Swing
    Replies: 9
    Last Post: 11-10-2009, 06:45 PM
  2. How to generate report
    By Shivraj in forum NetBeans
    Replies: 0
    Last Post: 03-24-2009, 12:17 PM
  3. How to generate primary key in EJB
    By naresh_m in forum Enterprise JavaBeans (EJB)
    Replies: 1
    Last Post: 07-17-2008, 09:41 AM
  4. how to generate dynamic pdf
    By valery in forum Advanced Java
    Replies: 1
    Last Post: 08-06-2007, 10:01 PM
  5. how to generate xml with Dom4j
    By leonard in forum XML
    Replies: 1
    Last Post: 08-06-2007, 04:39 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •