コミュニティ

Move classified documents to a folder

Hi all,

I have created a classifier for 13 layouts and in addition 4 classes have been added to the classifier for which there are no layouts.

For the 4 classes where there are no layouts after creating the document definitions if documents belonging to 4 classes are recognized, then those files have to be moved to separate folders based on the classes.Please can any one help me with this.

Also I have refered to the article "http://knowledgebase.abbyy.com/article/1294". I tried to execute the script mentioned on that pages

  1. // Document classification
  2. string matchedSections = FCTools.ClassifyPage(Document.Pages[0], Processing, true).MatchedSections;
  3. // Save classification results to a registration parameter
  4. Document.Properties.Set("MatchedSections", matchedSections);  

 There is an error shown for "Processing".

I am using flexicapture 11 version.

Thank you so much in advance!!!

Lucky

 

この記事は役に立ちましたか?

0人中0人がこの記事が役に立ったと言っています

コメント

8件のコメント

  • Avatar
    Permanently deleted user

    Hi,

    The script is working now I copied to Automatic stage.

    Is it possible to classify documents in abbyy flexicapture without layouts and document definitions?If we can know to which class it belongs to then can we move that file to folder with the class name?

    If so please guide me how to do.

    Thanks a lot!

    Lucky

     

     

    0
  • Avatar
    Permanently deleted user

    Hello Lucky,

    To put documents into different categories, FlexiCapture uses Document Definitions based on fixed forms, flexible sections or on classifiers. For the pages that are not matched by any document definition there are also Annexes, but they are attached to a document that matches document definition and allows annexes.

    Could you please describe your scenario in more details so that we understand why you don't want to use definitions/layouts and suggest a better solution for you?

    0
  • Avatar
    Permanently deleted user

    Hello Ekaterina,

    Thanks for your response.

    There are lot of unstructured documents to be processed thru ABBYY and for most frequently available files layouts are made.

    A classifier has been created for the frequently occuring files including the infrequent files.

    There are documents which are emails, certificates or datasheets which are very few and from different vendors (infrequent files).These need to be just categorized and no need to create a Layout or document definition for these documents.

    So I would like to know the procedure to move these files matching to infrequent classes in classifier to be moved to separate folder without being matched to any document definition.

    For Example:

    1) Certificate (No layout)

    2) Email (No layout)

    3) Invoice (Layout and document definition available and should be matched)

    1 and 2 files to be moved to folders certificate and Email respectively and third document Invoice has to be matched and exported thru ABBYY.

    Please suggest a solution to achieve this.

    Thanks a lot!

    Lucky

    0
  • Avatar
    Permanently deleted user

    Hello Lucky,

    If you want to move your files on the physical level you may use Batch.Documents[i].Pages[0]. ImageSource construction for receiving information about source files (see here: Appendix > Using scripts in ABBYY FlexiCapture > Scripts for customizing processing stages > Objects > IPage) and then, for moving them by .Net methods.

     

    If you need to remove the documents from a batch, you may use IBatch methods: DeleteDocument, DeletePage, MoveDocument, MovePage that can you find in this article: Appendix > Using scripts in ABBYY FlexiCapture > Scripts for customizing processing stages > Objects > IBatch.

    0
  • Avatar
    Permanently deleted user

    Hi Ekaterina,

    Its not clear to me.Can you please provide example script for this, I would be greatful to you.

    Thanks.....

    Lucky

     

     

    0
  • Avatar
    Permanently deleted user

    Hello,

    Could you clarify your requirements: do you need to move out the files or do you need to move only documents inside the FC?

    0
  • Avatar
    Permanently deleted user

    Hi Ekaterina,

    The files should be moved out of the FC to different folders.If the class is certificates then it should be moved to for example "C:\export\certificates" folder or "C:\export\reports" if the class is reports.

    Thanks

    Lucky.

     

    0
  • Avatar
    Permanently deleted user

    Hello,

    Please follow the instruction:

    1. Load the .cfl file on the recognition tab in the project properties.

    2. Create the script stage before recognition

    3. Add .Net libraries on the .Net Reference tab

    4. Write the script:

       a. Get stringPath of source page by the Batch.Documents[i].Pages[0].ImageSource property.

       b. By methods working with files in the .Net libraries, copy the files to the desired folder

    0

サインインしてコメントを残してください。