Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6083021
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:21:15+00:00 2026-05-23T11:21:15+00:00

I am trying to do some pattern ‘mining’ in piece of multi word on

  • 0

I am trying to do some pattern ‘mining’ in piece of multi word on each line. I have done the N-gram analysis using the Text::Ngrams module in perl which give me the frequency of each word . I am however quite confused about the finding patterns in this text.

The tf-idf finds frequency also I presume but how does this differ from the Ngram analysis that I did and how does the similarity measure also help.

Please are there any perl modules or snippets of code I could get to understand some of this concepts .

Please I am from a physics background but have to do some pattern recognizing so I am a little new to some of these , a good reference on this topics will be appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T11:21:16+00:00Added an answer on May 23, 2026 at 11:21 am

    Assuming you have a bunch of N documents and you:

    Want to find out if Document X (containing an article on how to be a bodybuilder) is similar to another Document Y whose contents you do not know. If Document Y would be “similar” to Document X, it might contain the usual terms one associates with bodybuilding – eg: weight-lifting, barbells, dumbells and maybe Arnold.

    So, the similarity of Document X, Document Y would be pretty high. One way to measure this similarity, is using the Cosine Angle between these two documents.

    Cosine Similarity Reference: http://www.miislita.com/information-retrieval-tutorial/cosine-similarity-tutorial.html

    Use CPAN to search for Perl modules. For eg, to compute cosine similarity you could try the Text::Document module

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am now trying to understand some code and I have found a pattern,
I have been trying some programs in the C Language and come across to
I am trying to add some styles in some DataGrid s I have. I
I'm trying to extract some specific pictures from html content . Currently I have
I'm trying to do some batch replacement for/with a fairly complex pattern So far
I am attempting some pattern matching in Lua and have hit a small problem.
Have to erase some of the details of this, but basically I'm trying to
I am trying to develop some RESTful web services which have to access some
I am trying to extract a specific url pattern from the body of some
I am trying to create a match for this pattern: /page/some/thing/is/written/here where /page is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.