IP Library › Granted Patent US 7,296,223
Granted Patent B2
US 7,296,223 · App. 10/607,667 · Granted Nov 13, 2007

System and method for structured document authoring

Assignee: Xerox Corporation
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 7,296,223
App. No.
10/607,667
Granted
Nov 13, 2007
Kind
B2
Abstract

A method for creating a structured document, wherein a structured document comprises a plurality of content elements wrapped in pairs of tags, includes parsing a document of a particular type containing content into a plurality of content elements; and for each content element, suggesting an optimal tag according to a tag suggestion procedure. The tag suggestion procedure includes providing sample data which has been converted into a structured sample document; deriving a set of tags from the structured sample document; evaluating the set of tags according to tag suggestion criteria to determine an optimal tag for the content element. The optimal tag may be a single tag or a pattern of tags which maximizes a similarity function with patterns found in the sample data.

Claims (94)

1. A method for converting a generic document, wherein a generic document comprises a document in a particular format type, into a structured document, wherein a structured document includes a plurality of content elements wrapped in pairs of hierarchically nested tags, comprising:

parsing the generic document of the particular format type containing content into a plurality of content elements; and

for a selected content element, suggesting an optimal tag according to a tag suggestion procedure;

wherein the tag suggestion procedure comprises:

providing sample data in the form of structured sample documents;

analyzing patterns in the sample data to derive a set of tag suggestions and tag suggestion rules;

deriving a set of candidate tags from the set of tag suggestions for the selected content element in accordance with the tag suggestion rules; and

evaluating the set of candidate tags according to tag suggestion criteria to determine an optimal tag for the selected content element.

2. The method of claim 1 , wherein the tag suggestion criteria comprises satisfying a similarity function.

3. The method of claim 1 , wherein the set of tag suggestions are generated during creation of the structured document.

4. The method of claim 1 , wherein the set of tag suggestions are generated prior to creation of the structured document.

5. The method of claim 1 , wherein the structured sample document comprises an XML document having a DTD associated with it.

6. The method of claim 1 , wherein the set of tag suggestions includes tree patterns of tags.

7. The method of claim 6 , wherein the tag suggestion criteria comprises balancing size of tree patterns of tags and frequency of occurrence of tree patterns of tags in the sample data.

8. The method of claim 1 , wherein the optimal tag maximizes a similarity function with patterns found in the sample data.

9. The method of claim 1 , wherein the set of tag suggestions includes a set of tree patterns of tags t i ∈ T, and a set C of candidates is a set of all patterns in T with all their prefixes, C={c|c is a prefix of t i ∈ T};

wherein a similarity function between a candidate c ∈ C and a tree pattern t i ∈ T satisfies:

sim (c, t i )=|c |/|t i |, if c is a tree-prefix of t i ;

sim (c, t i )=0, otherwise; and

wherein the optimal tag comprises a context-free candidate c ∈ C that maximizes an aggregate similarity measure SIM (c,T), where

SIM

⁡

(

c

,

T

)

=

∑

t

i

∈

T

⁢

sim

⁡

(

c

,

t

i

)

·

pr

i

.

10. The method of claim 9 , wherein a candidate set in context t cxt is defined as C(t ctx )={c ∈ C|t cxt is a prefix of c}; and

wherein the optimal tag comprises a context-aware candidate c ∈ C that maximizes an aggregate similarity measure SIM (c,T) where

SIM

⁡

(

c

,

T

)

=

∑

t

i

∈

T

⁢

sim

⁡

(

c

,

t

i

)

·

pr

i

.

11. The method of claim 1 , wherein content comprises text.

12. A method for authoring of a structured document, wherein a structured document comprises a plurality of content elements wrapped in pairs of tags, comprising:

generating content elements wrapped in pairs of tags; and

for a selected tag, suggesting an optimal content fragment according to a content suggestion procedure;

wherein the content suggestion procedure comprises:

providing a plurality of sample structured documents;

analyzing the sample structured documents to derive a set of content fragments and content fragment suggestion criteria;

deriving a set of candidate content fragments from the sample structured document associated with the selected tag in accordance with the content fragment suggestion criteria;

evaluating the set of candidate content fragments to determine an optimal content fragment suggestion for the tag,

wherein the optimal content fragment suggestion is the most probable content fragment for the selected tag.

13. The method of claim 12 , further comprising assigning a score to each content fragment in the set of content fragments, wherein the score is a ratio of number of occurrences of the content fragment under the selected tag and number of occurrences of the selected tag in the sample structured document.

14. The method of claim 13 , wherein the optimal content fragment suggestion is the content fragment with the highest score.

15. The method of claim 13 , further comprising assigning a context to each content fragment in the set of content fragments, wherein context comprises the structural context of the tag surrounding the content fragment.

16. The method of claim 15 , wherein each content fragment is referenced by a partial path from the sample structured document root and the context comprises the partial path of the content fragment in the sample structured document.

17. The method of claim 15 , wherein the context of each content fragment in the set of content fragments comprises the structural tree around the tag surrounding the content fragment.

18. The method of claim 13 , wherein the optimal content fragment suggestion is the content fragment with the highest score greater than a threshold value.

19. The method of claim 12 , further comprising:

selecting a small linguistic unit within each content fragment in the set of content fragments; and

assigning a score to the small linguistic unit, wherein the score is a ratio of number of occurrences of the linguistic unit under the selected tag and number of occurrences of the selected tag in the sample structured document.

20. The method of claim 19 , wherein the small linguistic unit is a word, a phrase or a sentence.

Assignments (3)
RELEASE OF SECURITY INTEREST Recorded Aug 31, 2022
From: JPMORGAN CHASE BANK, N.A. AS SUCCESSOR-IN-INTEREST ADMINISTRATIVE AGENT AND COLLATERAL AGENT TO BANK ONE, N.A.
To: XEROX CORPORATION
Reel/Frame 061360/0501 →
SECURITY AGREEMENT Recorded Aug 31, 2004
From: XEROX CORPORATION
To: JPMORGAN CHASE BANK, AS COLLATERAL AGENT
Reel/Frame 015722/0119 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 27, 2003
From: CHIDLOVSKII, BORIS; DEJEAN, HERVE
To: XEROX CORPORATION
Reel/Frame 014252/0655 →
Continuity (1)
Related Publication 20040268236A1 · Dec 30, 2004