You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "orionlibs (via GitHub)" <gi...@apache.org> on 2023/07/02 21:37:53 UTC

[GitHub] [commons-math] orionlibs commented on pull request #233: new method that takes string and extracts list of numbers

orionlibs commented on PR #233:
URL: https://github.com/apache/commons-math/pull/233#issuecomment-1616830468

   @aherbert thank you for replying. I put this method in NumberUtils in the LANG project, but they told me there that it probably belongs to MATH because it has to do with numbers. So that is what I did, but the MATH project does not have a lot of string parsing classes and methods. Right? I think. The TEXT project is more about manipulating strings and not extracting data from them. I think it belongs to LANG, because this method doesn't do math calculations. It just uses a base Java Lang class (i.e. String) to extract something. It is a weird method, because it includes a String and numbers.
   There are a number of potential uses:
   1--This could be particularly useful for data mining or information extraction where you are dealing with unstructured text. It could be a part of a larger Natural Language Processing (NLP) or text analysis tool where numeric information needs to be analyzed separately.
   2--If you're parsing contact information and want to separate phone numbers or other numeric information from a larger string.
   3--If you are working with log files, XML or JSON data, and you need to extract certain numeric values that are embedded within text.
   4--If the dates or times are in a specific format embedded in text, the method can be used to extract the relevant parts.
   5--If you're scraping data from websites, it's often the case that useful numeric data like prices, dates, and identifiers are mixed in with other text.
   6--if you want to extract all the numbers and perform mathematical operations such as sum, average etc.
   7--For analyzing textual data for occurrences of numbers or patterns involving numbers.
   8--In chatbots, virtual assistants, or any other AI that interprets human language, to identify and process numbers mentioned in the user's input.
   I will email DEV


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org