SalienceAttribute
A wrapper around the underlying SalienceAttribute structure in the C API.
| The text of the attribute |
---|---|
| The count of occurrences of the attribute |
| The count of positive occurrences of the attribute, based on value of the Neutral Upper Bound option |
| The count of negative occurrences of the attribute, based on value of the Neutral Lower Bound option |
| The count of neutral occurrences of the attribute, based on value of the Neutral Upper Bound and Neutral Lower Bound options |
| A List<> of SaliencePhrase structures with details about the occurrences |
| A List<> of SaliencePhrase structures with details about the positive occurrences of the attribute, based on value of the Neutral Upper Bound option |
| A List<> of SaliencePhrase structures with details about the negative occurrences of the attribute, based on value of the Neutral Lower Bound option |
| A List<> of SaliencePhrase structures with details about the neutral occurrences of the attribute, based on value of the Neutral Upper Bound and Neutral Lower Bound options |
See also: SalienceCollection.GetFacets
SalienceChunk
A wrapper around the underlying SalienceChunk structure in the C API.
| A label describing the grammatical type of the chunk |
---|---|
| A zero-based index indicating the sentence in which the chunk appears |
| A List<> of SalienceWord structures that comprise the chunk |
SalienceCollectionDetails
A wrapper around the underlying SalienceCollectionDetails structure in the C API.
| The number of documents added to the collection |
---|
See also: SalienceCollection.GetCollectionDetails
SalienceCollectionDocument
| An identifier for the document |
---|---|
| The text of the document |
SalienceCollectionEntity
A wrapper around the underlying SalienceCollectionEntity structure in the C API.
| Normalized form of the entity |
---|---|
| Type of entity (Company, Person, Place, Product, etc.) |
| Descriptive label for the entity |
| Count of documents in which this entity occurs |
| Count of documents in which this entity occurs with positive sentiment, based on value of the Neutral Upper Bound option |
| Count of documents in which this entity occurs with negative sentiment, based on value of the Neutral Lower Bound option |
| Count of documents in which this entity occurs with neutral sentiment, based on value of the Neutral Lower Bound and Neutral Upper Bound options |
| A List<> of SaliencePhrase structures of all mentions of this entity in the document |
See also: SalienceCollection.GetEntities
SalienceDocument
A wrapper around the underlying SalienceDocument structure in the C API.
| A List<> of SalienceSentence structures that make up the document |
---|
SalienceDocumentDetails
A wrapper around the underlying SalienceDocumentDetails structure in the C API.
| A List<> of SalienceSection structures containing details about the document content |
---|
See also: Salience.GetDocumentDetails
SalienceEntity
A wrapper around the underlying SalienceEntity structure in the C API.
| Normalized form of the entity |
---|---|
| Type of entity (Company, Person, Place, Product, etc.) |
| Descriptive label for the entity |
| Sentiment related to the entity |
| A measure of how much evidence the sentiment score was based on (1 to 7) |
| Whether the entity passed any confidence queries |
| Whether the document is about this entity |
| A summary of the document related to this entity |
| The number of entity mentions for this entity |
| The byte offset within the content indicating the location of the first mention of the entity |
| A List<> of SalienceMention structures of all mentions of this entity in the document |
| A List<> of SalienceTheme structures of themes related to this entity |
| A List<> of SalienceSentimentPhrase structures of sentiment phrases related to this entity |
| A Dictionary<String,List<> > of SalienceEntity structures providing labeled references to entities related to this entity (currently used by meta-entities, likely to be expanded). |
| A List<> of SalienceTopic structures providing information about topics related to the entity |
See also: Salience.GetNamedEntities, Salience.GetUserDefinedEntities
SalienceEntityParams
| Threshold for entity extraction, sets the Entity Threshold option. Default value is 55. |
---|---|
| Length in sentences for entity summary, sets the Entity Summary Length option. Default value is 2. |
| A timeout for entity extraction. Default value is 5. |
SalienceFacet
A wrapper around the underlying SalienceFacet structure in the C API.
| The text of the facet |
---|---|
| The count of occurrences of the facet |
| The count of positive occurrences of the facet, based on value of the Neutral Upper Bound option |
| The count of negative occurrences of the facet, based on value of the Neutral Lower Bound option |
| The count of neutral occurrences of the facet, based on value of the Neutral Lower Bound and Neutral Upper Bound options |
| A List<> of SalienceAttribute structures for the facet |
| Number of SalienceAttribute structures for the facet |
| A List<> of SaliencePhrase structures with details about the occurrences |
| A List<> of SaliencePhrase structures with details about the positive occurrences of the facet, based on the value of the Neutral Upper Bound option |
| A List<> of SaliencePhrase structures with details about the negative occurrences of the facet, based on the value of the Neutral Lower Bound option |
| A List<> of SaliencePhrase structures with details about the neutral occurrences of the facet, based on the value of the Neutral Upper Bound and Neutral Lower Bound options |
See also: SalienceCollection.GetFacets
SalienceIntention
A wrapper around the underlying SalienceIntention structure in the C API.
| The object of the intention, if detected. Otherwise, this structure member will be empty. |
---|---|
| The expresser of the intention, if detected. Otherwise, this structure member will be empty. |
| The phrase expressing the intention. |
| The intention type, out of the set of defined intention types, that was detected. |
| A SalienceChunk containing positional information about the chunk identifying the object of the intention. |
| A SalienceChunk containing positional information about the chunk identifying the expresser of the intention. This will be an empty structure containing zeroes if acWho has not been detected. |
| A SalienceChunk containing positional information about the chunk containing the intention |
See also: Salience.GetDocumentIntentions
SalienceMention
A wrapper around the underlying SalienceMention structure in the C API.
| A SaliencePhrase structure containing location of the mention in text |
---|---|
| The type of mention (Named, Nominal, Pronominal) |
| How likely it is that this is actually a mention of the entity |
SalienceModelSentiment
A wrapper around the underlying SalienceSentimentModel structure in the C API.
| Name of the sentiment model used for scoring |
---|---|
| Indicator of the sentiment category determined as best match (0=Positive, 1=Negative, 2=Mixed, 3=Neutral) |
| Model-based score associated with likelihood document is positive |
| Model-based score associated with likelihood document is negative |
| Model-based score associated with likelihood document is mixed |
| Model-based score associated with likelihood document is neutral |
Note: Sum of model scores should equal 1, nBest
should match category of greatest model score.
SalienceOpinion
A wrapper around the underlying SalienceOpinion structure in the C API.
| A SalienceEntity structure for the entity expressing the opinion |
---|---|
| A SalienceEntity structure for the entity that is the subject of the opinion, if applicable |
| A SalienceTheme structure for the theme that is the subject of the opinion, if applicable |
| The text of the expressed opinion |
| The sentiment associated with the opinion |
| An indicator of whether the opinion is being expressed about an entity or a theme |
See also: Salience.GetNamedEntityOpinions, Salience.GetUserEntityOpinions
SaliencePhrase
A wrapper around the underlying SaliencePhrase structure in the C API.
| The text of the phrase |
---|---|
| The zero-based index of the document in the collection |
| The zero-based index of the sentence |
| The zero-based index of the first token in the phrase |
| The length (in tokens) of the phrase |
| The byte offset in the original text that the phrase starts at |
| The length of the phrase in bytes |
| An indicator of whether the phrase is negated (1) or not (0) |
| If the phrase is negated, the negator is provided in this field |
| An indicator of whether the phrase is negated (1), modified (2), both (3), or neither (0). This is only relevant to phrases related to SalienceSentimentPhrases. |
| The zero-based index of the document details section that this phrase occurs in |
| The zero-based index of the row if the phrase occurs in a list or table |
| The zero-based index of the column if the phrase occurs in a list or table |
SalienceRelationship
A wrapper around the underlying SalienceRelation structure in the C API.
| Measure of confidence in the relationship |
---|---|
| Type of relationship, as defined in the relationship pattern |
| Additional information associated with the relationship |
| A List<> of the SalienceEntity structures for the entities involved in the relationship |
See also: Salience.GetNamedEntityRelationships, Salience.GetUserEntityRelationships
SalienceRow
A wrapper around the underlying SalienceRow structure in the C API.
| A List<> of SalienceDocument structures representing the contents of the columns within the row of a table |
---|
SalienceSection
A wrapper around the underlying SalienceSection structure in the C API.
| The internal version of the document |
---|---|
| A calculated fingerprint of the document (DEPRECATED) |
| The header for this section of the document, if applicable. Otherwise, blank. |
| The number of SalienceWords in the document |
| The number of SalienceSentences in the document |
| The number of objective SalienceSentences in the document |
| The number of subjective SalienceSentences in the document |
| The number of sentences that grammatically parse |
| A List<> of SalienceToken structures providing term frequency analysis |
| A List<> of SalienceToken structures providing tagged term frequency analysis |
| A List<> of SalienceToken structures providing bi-gram frequency analysis |
| A List<> of SalienceToken structures providing tagged bigram frequency analysis |
| A List<> of SalienceToken structures providing tri-gram frequency analysis |
| A List<> of SalienceToken structures providing tagged trigram frequency analysis |
| A List<> of SalienceToken structures providing quad-gram frequency analysis, for ideogram languages only |
| A List<> of SalienceToken structures providing information about negators in the content |
| A List<> of SalienceToken structures providing information about intensifiers in the content |
| A List<> of SalienceSentence structures for the sentences in the content |
| A List<> of SalienceChunk structures providing chunk breakdown of the document |
| A List<> of SalienceRow structures for table and list-based content |
SalienceSentence
A wrapper around the underlying SalienceSentence structure in the C API.
| A List<> of SalienceWord structures that make up the sentence |
---|---|
| A List<> of SalienceChunk structures that make up the sentence |
| The number of SalienceWords in the sentence |
| The number of SalienceChunks in the sentence |
| An indicator specifying if the sentence is subjective (1) or objective (0) |
| An indicator specifying if the sentence conveys sentiment polarity (1) or not (0) |
| An indicator specifying if the sentence conveys an imperative (or "call to action") (1) or not (0) |
| The text of the sentence |
| The rank of the sentence with relation to the summary. A call to retrieve the document summary must be made for this field to be initialized. |
| Reserved for future use to provide sentence-level sentiment. Currently returns 0. |
SalienceSentiment
A wrapper around the underlying SalienceSentimentResult structure in the C API.
| Phrase-based sentiment score |
---|---|
| A List<> of SalienceSentimentPhrase structures containing details of phrase-based sentiment analysis |
| A List<> of SalienceModelSentiment structures containing details of model-based sentiment analysis |
| A List<> of SalienceTopics structures containing details of emotions detected in the content |
See also: Salience.GetDocumentSentiment
SalienceSentimentPhrase
A wrapper around the underlying SalienceSentimentPhrase structure in the C API.
| A SaliencePhrase structure with details about the phrase |
---|---|
| The path of the HSD file containing the phrase, if HSD-based |
| The sentiment weight for the phrase |
| An indicator specifying if the phrase is HSD-based or not |
| An indicator of whether the phrase is negated (1), modified (2), both (3), or neither (0) |
| A List<> of SaliencePhrase structures with details about any relevant supporting phrase, such as a negating or intensifying phrase |
A SentimentPhrase has the following helpful functions for understanding the score:
getType() Returns an int, denoting how this phrase was identified:
0 : This was in the “lsf file”, which is a whole bunch of sentiment phrases already identified by Salience
1 : This was in an “hsd file”, either customer provided or general.hsd from Salience
Mostly that’s all you need, but the rest of the set is:
2 : This was defined in a special file “documentconcepts.dat”
3 : This was defined in a special file “metaphors.dat” for phrases longer than 5 words
4 : You turned “all possible sentiment phrases on” and while this isn’t a sentiment phrase, maybe it could be.
5 : You defined a query in your hsd file (“hot NOT WITH sun OR fire OR fever”)
6 : This phrase was found but isn’t being used because it’s in a question
7 : This phrase was found via a specially trained model.
getSource() For dictionary based results, returns the file name where this was found.
getModified() : Returns a bitmask for modifications to this sentiment phrase.
1 : The phrase was negated
2 : The phrase was intensified e.g. "very"
Those are the main ones, but also:
4 : The phrase was typographically intensified: currently just letter repetition e.g. "I looovvvveee this"
8 : The phrase was modified by its use in discourse e.g. “desert was good, but everything else was bad” the use of ‘but’ generally conveys greater emphasis for the latter idea over the former.
16 : The sentence ended in an exclamation mark
getSupportingPhrases() : this returns the Phrase objects which were the negators or intensifiers discovered.
SalienceStartup
A wrapper around the underlying SalienceSessionStartup structure in the C API.
| Fully-qualified path to location where startup log can be written |
---|---|
| Path to data directory for use |
| Path to user directory for use |
| A |
The nMode
member may be set to the following values: SALIENCEMODE_DEFAULT
: Default mode for handling general content. SALIENCEMODE_SHORTFORM
: Mode for handling short-form content such as Twitter.
SalienceSummary
A wrapper around the underlying SalienceSummaryResult structure in the C API.
| Summary text generated for the document via default method |
---|---|
| A List<> of SalienceSentence objects providing the individual sentences in the summary with ranking |
| Summary text generated for the document via an alternate method |
| A List<> of SalienceSentence objects providing the individual sentences in the alternate summary with ranking |
SalienceTheme
A wrapper around the underlying SalienceTheme structure in the C API.
| The text of the theme |
---|---|
| The stemmed version of the theme |
| The normalized version of the theme |
| An indicator is this is a "meta-theme" (1) or not (0) |
| Documents: A measure of the strength of the theme within the document. Collections: A count of the themes that have been rolled together across collection documents into this theme result |
| Documents: The sentiment score for the theme. Collections: A sentiment score derived from aggregating the sentences containing the theme mentions into a single document |
| Documents: A measure (from 1 to 7) of the content on which the sentiment score for the theme is based. Collections: The number of sentiment phrases used in calculating the theme's sentiment as described above |
| Documents: An indicator specifying if the theme is contained within the summary of the document. Collections: False (not used) |
| A summary of the document content relevant to the theme |
| A List<> of SaliencePhrase structures providing information about theme occurrences in the document |
| A List<> of SalienceTopic structures providing information about topics related to the theme |
| Reserved for future use. |
| A List<> of SaliencePhrase structures containing information about child mentions of the theme. |
| A List<> of SaliencePhrase structures containing information about related mentions of the theme. |
See also: Salience.GetDocumentThemes, SalienceCollection.GetThemes
SalienceToken
A wrapper around the underlying SalienceToken structure in the C API.
| A single token (generally a word, but also includes punctuation and other individual textual items) |
---|---|
| Number of occurrences of the token |
SalienceTopic
A wrapper around the underlying SalienceTopic structure in the C API. This structure is used to return results for multiple API calls:
Query-defined topics
| The query-defined topic label |
---|---|
| Documents: This is the number of query terms that hit for the document. Collections: This is the number of documents within the collection that contain hits for the topic. |
| Documents: This is the sentiment score for content associated with topic query hits. Collections: This value is always 0 (not used). |
| Documents: A List<> of sentences containing the topic hits. Collections: A List<> of the document identifiers for the documents identified for the topic. |
| 0 (indicates query topic result) |
| Documents: A summary of the document focused on the query result. Collections: Not used. |
| Not used |
| A List<> of entities that match the |
| A List<> of SalienceSentimentPhrase structures of sentiment phrases related to this entity |
Concept-defined topics
| The concept-defined topic label |
---|---|
| Documents: This value is always 0 (not used). Collections: This is the number of documents within the collection that conceptually match for the topic. |
| Documents: This provides an indication of the strength of the match. Collections: This value is the sum of match strengths for the topic across all documents in the collection that match for the topic. |
| Documents: A List<> of sentences containing the topic hits. Collections: A List<> of the document identifiers for the documents identified for the topic. |
| 1 (indicates concept topic result) |
| Documents: A summary of the document focused on the query result. Collections: Not used. |
| Not used |
| Not used |
| A List<> of SalienceSentimentPhrase structures of sentiment phrases related to this entity |
Document categories
Document categories are returned using the Wikipedia category information contained within the Concept Matrix. Document categories are only available at the document level.
| The concept-defined topic label |
---|---|
| 0 (not used) |
| This provides an indication of the strength of the match |
| An integer indicating the type of category result: 2=category node, 3=category leaf, 4=category explain info |
| A List<> of SalienceTopic objects representing child topics |
| A List<> of SalienceSentimentPhrase structures of sentiment phrases related to this entity |
Document classification
Document classification results are returned when using classification models in Salience 6. Document classification results are only available at the document level.
| The classification label |
---|---|
| This provides an indication of the strength of the match for the classification |
SalienceWord
A wrapper around the underlying SalienceWord structure in the C API.
| The token associated with the word |
---|---|
| The part-of-speech tag associated with the token, see Supported POS tags |
| The stemmed version of the word |
| An indicator specifying if sentiment for the word has been inverted |
| Sentiment for word, filled in when returned for sentiment and entity markup |
| Indicator of source of sentiment; from hand-scored dictionary, or stopword |
| Entity type for word if it is part of an entity, returned for entity markup |
| Identifiers of which markup applies to the word |
| Secondary identifier of which markup applies to the word |
| An indicator specifying if the word is post-fixed (followed by a space) |
Updated 9 months ago