Snippet¶
- class semanticscholar.Snippet.Snippet(data: dict)¶
This class abstracts a snippet search result.
- keys() list¶
Returns a list of all keys in the API response data.
- Return type:
list
- property paper: SnippetPaper¶
Basic paper data.
- property raw_data: dict¶
The API response data in its original JSON structure, represented as a dict.
- Type:
dict
- property score: float¶
Relevance score of the snippet match.
- Type:
float
- property snippet: SnippetText¶
Snippet data.
- property text: str¶
Shortcut for snippet.text.
- Type:
str