The Artima Developer Community
Sponsored Link

Java Answers Forum
jsp extracting data from files

2 replies on 1 page. Most recent reply: Feb 24, 2006 2:56 AM by pallavi pawar

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
pallavi pawar

Posts: 3
Nickname: pallavip
Registered: Feb, 2006

jsp extracting data from files Posted: Feb 22, 2006 3:01 AM
Reply to this message Reply
Advertisement
hello new to this forum
working on a tool to extract data from different type of files such as doc,txt,pdf.(using jsp)
Data in files may be unstructed, it is a bioliogical data
want to extract scientific name ,author ,locality etc fields.while extracting want to make the application intelligent
suppose below is data in file

DN: Database Name
ASFA: Aquatic Sciences and Fisheries Abstracts, 1971-1993
TI: Title
Introduction: Review of coastal erosion problems in the western
Indian Ocean Region
AU: Author
Granlund, A
CA: Corporate Author
IOC, Paris (France)

---
first time the user has to move field name & it's value to database but next time when same type of file comes it should go to database automatically.
that is want to make the program as a learning system.
the program should learn abt the file structure & when again same type of file comes should do it automatically

for this what should i store abt th i/p file
patterns?
what techniques & how can be used such as artificial intelligence
or neural networks or any other?
if any one has does this before plz let me know

thanks in advance


Sharad Thakur

Posts: 7
Nickname: javasir
Registered: Sep, 2005

Re: jsp extracting data from files Posted: Feb 22, 2006 11:19 PM
Reply to this message Reply
Hi,

My suggestion is that you should use Excel file sheets or .csv files, coz these types of files are structured.
If you are restricted to diff file patterns and that too if .txt or .doc types then you should use Proper heading and text seperated with some particular delimiter.

Eg

Name:Sharad Thakur
Emp Code:00009
Address: xyz abc


So here you can atleast recognize that (:) seperates Heading and text and New-line is for next field here too records must be same.

For diff file patterns you can make a database where you can store every new patters found, latter you patterns will get saturated.

hope you get something out of this all.

Sharad

pallavi pawar

Posts: 3
Nickname: pallavip
Registered: Feb, 2006

Re: jsp extracting data from files Posted: Feb 24, 2006 2:56 AM
Reply to this message Reply
thanks 4 reply

but the input data which i gave in my question was just one case

so whenever a file comes i want to store the pattern

so how to store the pattern & use it next time when same type of file comes

i.e what technique should be used for storing the pattern of file
-----
DN: Database Name
ASFA: Aquatic Sciences and Fisheries Abstracts, 1971-1993
TI: Title
Introduction: Review of coastal erosion problems in the western
Indian Ocean Region
AU: Author
Granlund, A
CA: Corporate Author
IOC, Paris (France)

such as i want to store for above file that there are
DN, TI, AU, CA fields
& next to them are their values

thanks

Flat View: This topic has 2 replies on 1 page
Topic: jsp:highlighting text in textarea control Previous Topic   Next Topic Topic:

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use