SemanticRole Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. ai. contentunderstanding. models. SemanticRole
- com.
- com.
public final class SemanticRole
extends ExpandableStringEnum<SemanticRole>
Semantic role of the paragraph.
Field Summary
| Modifier and Type | Field and Description |
|---|---|
|
static final
Semantic |
FOOTNOTE
Note usually placed after the main content on a page. |
|
static final
Semantic |
FORMULA_BLOCK
Block of formulas, often with shared alignment. |
|
static final
Semantic |
PAGE_FOOTER
Text near the bottom edge of the page. |
|
static final
Semantic |
PAGE_HEADER
Text near the top edge of the page. |
|
static final
Semantic |
PAGE_NUMBER
Page number. |
|
static final
Semantic |
SECTION_HEADING
Sub heading describing a section of the document. |
|
static final
Semantic |
TITLE
Top-level title describing the entire document. |
Constructor Summary
| Constructor | Description |
|---|---|
| SemanticRole() |
Deprecated
Use the fromString(String name) factory method.
Creates a new instance of Semantic |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Semantic |
fromString(String name)
Creates or finds a Semantic |
|
static
Collection<Semantic |
values()
Gets known Semantic |
Methods inherited from ExpandableStringEnum
Methods inherited from java.lang.Object
Field Details
FOOTNOTE
public static final SemanticRole FOOTNOTE
Note usually placed after the main content on a page.
FORMULA_BLOCK
public static final SemanticRole FORMULA_BLOCK
Block of formulas, often with shared alignment.
PAGE_FOOTER
public static final SemanticRole PAGE_FOOTER
Text near the bottom edge of the page.
PAGE_HEADER
public static final SemanticRole PAGE_HEADER
Text near the top edge of the page.
PAGE_NUMBER
public static final SemanticRole PAGE_NUMBER
Page number.
SECTION_HEADING
public static final SemanticRole SECTION_HEADING
Sub heading describing a section of the document.
TITLE
public static final SemanticRole TITLE
Top-level title describing the entire document.
Constructor Details
SemanticRole
@Deprecated
public SemanticRole()
Deprecated
Creates a new instance of SemanticRole value.
Method Details
fromString
public static SemanticRole fromString(String name)
Creates or finds a SemanticRole from its string representation.
Parameters:
Returns:
values
public static Collection<SemanticRole> values()
Gets known SemanticRole values.
Returns: