convert unstructured data to structured data? [closed]
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this questionHow can I convert unstructured data into structured data? For example email contacts, from an unstructured text, to a structured format.
Are there any algo开发者_StackOverflow社区rithms to do this?
There's no generic algorithm to "take unstructured data and convert it to structured data", no. It's highly dependent on what the possible range of input is, and what the desired structure is, and what conversions need to be applied, etc.
The class of problem is called "parsing": you need to construct a parser for the specific inputs you expect, and use that parser to generate structure from what it discovers about the input you get.
Your programming language will likely have parsing libraries available to assist with constructing a specific parser.
精彩评论