4A Server -
2.0
|
Utility functions for document linearization. More...
Static Public Member Functions | |
static ArrayList< ArrayList < Fragment > > | linFragmentsToFragments (ArrayList< Fragment > linFragments, Document doc, ArrayList< ArrayList< Fragment >> badFragments) |
static ArrayList< ArrayList < SuggestionFragment > > | linSugFragmentsToFragments (ArrayList< SuggestionFragment > linFragments, Document doc, ArrayList< ArrayList< SuggestionFragment >> badFragments) |
static ArrayList< ArrayList < AlternativeFragment > > | linAltFragmentsToFragments (ArrayList< AlternativeFragment > linFragments, Document doc, ArrayList< ArrayList< AlternativeFragment >> badFragments) |
static String | linearizeDocument (Document doc) |
static ArrayList < SuggestionFragment > | fragmentsToLinSugFragments (ArrayList< ArrayList< SuggestionFragment >> comFragments, Document doc, ArrayList< ArrayList< SuggestionFragment >> notConverted, boolean addSpaces) |
static ArrayList< Fragment > | fragmentsToLinFragments (ArrayList< ArrayList< Fragment >> comFragments, Document doc, ArrayList< ArrayList< Fragment >> notConverted, boolean addSpaces) |
static ArrayList < AlternativeFragment > | fragmentsToLinAltFragments (ArrayList< ArrayList< AlternativeFragment >> comFragments, Document doc, ArrayList< ArrayList< AlternativeFragment >> notConverted, boolean addSpaces) |
static String | linearizeDocumentFragment (DocumentFragment docFr, Document doc) |
static ArrayList < TextModification > | modificationsToLinMod (ArrayList< TextModification > comModifications, Document doc, ArrayList< TextModification > notConverted) throws ParserConfigurationException, SAXException, IOException |
Static Private Attributes | |
static MatcherProvider | matcherProvider |
Utility functions for document linearization.
This class contains utility functions for document linearization.
Definition at line 40 of file Linearizer.java.
|
static |
Convert list of common fragments to linearized fragments. For more common fragments one linearized fragment can be created.
comFragments | List of common fragments. |
doc | Document in which fragments are |
notConverted | List for fragments, which was not converted |
addSpaces | If true, it will add space after each node (offset will be incremented by 1) |
Definition at line 947 of file Linearizer.java.
|
static |
Convert list of common fragments to linearized fragments. For more common fragments one linearized fragment can be created.
comFragments | List of common fragments. |
doc | Document in which fragments are |
notConverted | List for fragments, which was not converted |
addSpaces | If true, it will add space after each node (offset will be incremented by 1) |
Definition at line 729 of file Linearizer.java.
|
static |
Convert list of common fragments to linearized fragments. For more common fragments one linearized fragment can be created.
comFragments | List of common fragments. |
doc | Document in which fragments are |
notConverted | List for fragments, which was not converted |
addSpaces | If true, it will add space after each node (offset will be incremented by 1) |
Definition at line 511 of file Linearizer.java.
|
static |
Convert list of linearized fragments to common fragments. For each linearized fragment more common fragments can be created.
linFragments | List of linearized fragments. Fragments must be sorted by offset! |
doc | Document in which fragments are |
badFragments | List to which bad fragments will be stored |
Definition at line 331 of file Linearizer.java.
|
static |
Linearizes document to string
doc | Document to linearize |
Definition at line 468 of file Linearizer.java.
|
static |
Linearizes fragment of document to string
docFr | Fragment of document to linearize |
doc | Whole document with nodes |
Definition at line 1163 of file Linearizer.java.
|
static |
Convert list of linearized fragments to common fragments. For each linearized fragment more common fragments can be created.
linFragments | List of linearized fragments. Fragments must be sorted by offset! |
doc | Document in which fragments are |
badFragments | List to which bad fragments will be stored |
Definition at line 57 of file Linearizer.java.
|
static |
Convert list of linearized fragments to common fragments. For each linearized fragment more common fragments can be created.
linFragments | List of linearized fragments. Fragments must be sorted by offset! |
doc | Document in which fragments are |
badFragments | List to which bad fragments will be stored |
Definition at line 190 of file Linearizer.java.
|
static |
Convert list of text modifications to linearized modifications. For more common modifications one linearized modification can be created.
comModifications | List of common modifications. |
doc | Document in which modifications are |
notConverted | Modifications, which was not converted |
Definition at line 1201 of file Linearizer.java.
|
staticprivate |
Matcher provider for linearizing of fragments
Definition at line 45 of file Linearizer.java.