Skip to content

Instantly share code, notes, and snippets.

View appachan's full-sized avatar
🏨
hotel

appachan appachan

🏨
hotel
  • Tokyo, Japan.
View GitHub Profile
from predpatt import PredPatt, PredPattOpts
from predpatt.util.ud import dep_v2, dep_v1
from predpatt.UDParse import UDParse, DepTriple
import spacy
import stanfordnlp
import argparse
STANFORDNLP = None
@appachan
appachan / stanford_nlp_visualize_by_displacy.ipynb
Created February 1, 2019 13:03
a function converts StanfordNLP output to displaCy's input format for visualization of dependency tree
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@appachan
appachan / loadCSV.java
Last active October 2, 2018 05:52
for MICS jikken.
/* csvファイル読込み処理例 */
String FILE_NAME = "./data.csv";
try (
// try-with-resource
BufferedReader br = new BufferedReader(new FileReader(FILE_NAME));
) {
String line;
// 行のループ
while ((line = br.readLine()) != null) {
var saiko = require('./saiko.js');
console.log(saiko. printSaiko());