Skip to content

Instantly share code, notes, and snippets.

David McClure davidmcclure

Block or report user

Report or block davidmcclure

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View fields.py
class Field(PointIndex):
fields = {
'title': {
'type': 'text',
'term_vector': 'with_positions_offsets',
},
'description': {
'type': 'text',
'term_vector': 'with_positions_offsets',
View article.txt
root
|-- article_id: long (nullable = true)
|-- text: string (nullable = true)
|-- tokens: array (nullable = true)
| |-- element: string (containsNull = true)
|-- clf_tokens: array (nullable = true)
| |-- element: string (containsNull = true)
|-- first_ts: integer (nullable = true)
|-- url: string (nullable = true)
|-- domain: string (nullable = true)
View gist:7cd25716bb569171b25ebf4cc8795ced
[Row(pair=Row(t_tokens=['hamlet', 'on', 'friendship'], a_tokens=['shakespeare']), logp=-39.098968505859375, work_id=223338697031),
Row(pair=Row(t_tokens=['hamlet', 'grosse', 'oper', 'in', '5', 'akten', 'und', '7', 'tableaux'], a_tokens=['shakespeare']), logp=-116.32585144042969, work_id=42949996797),
Row(pair=Row(t_tokens=['hamlet', 'first', 'quarto', '1603'], a_tokens=['shakespeare']), logp=-50.56448745727539, work_id=42949996797),
Row(pair=Row(t_tokens=['hamlet', 'tragedy', 'in', 'five', 'acts'], a_tokens=['shakespeare']), logp=-56.80743408203125, work_id=42949996797),
Row(pair=Row(t_tokens=['hamlet', 'first', 'quarto', '1603'], a_tokens=['shakespeare']), logp=-50.56448745727539, work_id=42949996797),
Row(pair=Row(t_tokens=['hamlet', 'tragedy', 'in', 'five', 'acts'], a_tokens=['shakespeare']), logp=-56.80743408203125, work_id=42949996797),
Row(pair=Row(t_tokens=['hamlet', 'tragedy'], a_tokens=['shakespeare']), logp=-34.793853759765625, work_id=42949996797),
Row(pair=Row(t_tokens=['hamlet', 'ishkhan',
View geom.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View ts-ac.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View ta-ab.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View ta-ova.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View content-audience.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View hl-graph.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View user-graph.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
You can’t perform that action at this time.