Skip to content

Instantly share code, notes, and snippets.

View hitalex's full-sized avatar

Qingchao Kong hitalex

View GitHub Profile
#include <iostream>
#include <climits>
#include <queue>
#include <map>
#include <cassert>
#include "graph.h"
#define MAX_ELEMENTS 100

词的分类

  • 实词:名词、动词、形容词、状态词、区别词、数词、量词、代词
  • 虚词:副词、介词、连词、助词、拟声词、叹词。

ICTPOS3.0词性标记集

n 名词

nr 人名

@hitalex
hitalex / hmm.py
Last active August 29, 2015 14:12 — forked from fonnesbeck/hmm.py
import numpy as np
import pymc
import pdb
def unconditionalProbability(Ptrans):
"""Compute the unconditional probability for the states of a
Markov chain."""
m = Ptrans.shape[0]
@hitalex
hitalex / foo.c
Created October 8, 2013 14:24
My solution for CSAPP homework 8.26 which requires you to implement a simple interactive shell.
// sample foo
#include <stdlib.h>
#include <sys/types.h>
#include <unistd.h>
#include <stdio.h>
int main(int argc, char* argv[]){
int i = 0;

The Power of Shell

-- Using shell programming for corpus analysis

acepor

January, 2012

1. My story

@hitalex
hitalex / lda_gibbs.py
Created September 8, 2012 12:39 — forked from mblondel/lda_gibbs.py
Latent Dirichlet Allocation with Gibbs sampler
"""
(C) Mathieu Blondel - 2010
Implementation of the collapsed Gibbs sampler for
Latent Dirichlet Allocation, as described in
Finding scientifc topics (Griffiths and Steyvers)
"""
import numpy as np