This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!usr/bin/python | |
# -*- coding: utf-8 -*- | |
from docx import * | |
document = opendocx(r'test.docx') | |
words = document.xpath('//w:r', namespaces=document.nsmap) | |
WPML_URI = "{http://schemas.openxmlformats.org/wordprocessingml/2006/main}" | |
tag_rPr = WPML_URI + 'rPr' | |
tag_highlight = WPML_URI + 'highlight' | |
tag_val = WPML_URI + 'val' | |
tag_t = WPML_URI + 't' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// http://nlp.stanford.edu/software/tmt/0.3/ | |
// tells Scala where to find the TMT classes | |
import scalanlp.io._; | |
import scalanlp.stage._; | |
import scalanlp.stage.text._; | |
import scalanlp.text.tokenize._; | |
import scalanlp.pipes.Pipes.global._; | |
import edu.stanford.nlp.tmt.stage._; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Stanford TMT Example 6 - Training a LabeledLDA model | |
// http://nlp.stanford.edu/software/tmt/0.3/ | |
// tells Scala where to find the TMT classes | |
import scalanlp.io._; | |
import scalanlp.stage._; | |
import scalanlp.stage.text._; | |
import scalanlp.text.tokenize._; | |
import scalanlp.pipes.Pipes.global._; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#This is my own interpatation of USA.gov PubSub feed with some tips and code from HarlanH from twitter. | |
#I am interested finding out links about which agency are shared from which part of US. | |
library(stringr) | |
library(plyr) | |
library(ggplot2) | |
library(scrapeR) | |
library(RJSONIO) | |
library(colorspace) | |
library(RColorBrewer) | |
library(maps) |
NewerOlder