Skip to content

Commit 0c66813

Browse files
author
blmoistawinde
committed
V0.4
Pattern matching word_ego_net new resources more clear readme doc added[still sth wrong]
1 parent 4398810 commit 0c66813

65 files changed

Lines changed: 19189 additions & 169 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.html

Lines changed: 408 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 168 additions & 74 deletions
Large diffs are not rendered by default.

doc/Makefile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Minimal makefile for Sphinx documentation
2+
#
3+
4+
# You can set these variables from the command line.
5+
SPHINXOPTS =
6+
SPHINXBUILD = sphinx-build
7+
SPHINXPROJ = harveesttext
8+
SOURCEDIR = source
9+
BUILDDIR = build
10+
11+
# Put it first so that "make" without argument is like "make help".
12+
help:
13+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
14+
15+
.PHONY: help Makefile
16+
17+
# Catch-all target: route all unknown targets to Sphinx using the new
18+
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
19+
%: Makefile
20+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
1.56 MB
Binary file not shown.
135 KB
Binary file not shown.

doc/build/doctrees/index.doctree

4.72 KB
Binary file not shown.

doc/build/doctrees/modules.doctree

2.55 KB
Binary file not shown.

doc/build/html/.buildinfo

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Sphinx build info version 1
2+
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3+
config: 24c442eda9eab345b7c5cd8ccc216c4d
4+
tags: 645f666f9bcd5a90fca523b33c5a78b7

doc/build/html/.nojekyll

Whitespace-only changes.
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
2+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4+
5+
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh_CN">
6+
<head>
7+
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
8+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
9+
<title>harvesttext &#8212; harvesttext 0.4 文档</title>
10+
<link rel="stylesheet" href="../_static/alabaster.css" type="text/css" />
11+
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
12+
<script type="text/javascript" id="documentation_options" data-url_root="../" src="../_static/documentation_options.js"></script>
13+
<script type="text/javascript" src="../_static/jquery.js"></script>
14+
<script type="text/javascript" src="../_static/underscore.js"></script>
15+
<script type="text/javascript" src="../_static/doctools.js"></script>
16+
<script type="text/javascript" src="../_static/translations.js"></script>
17+
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
18+
<link rel="index" title="索引" href="../genindex.html" />
19+
<link rel="search" title="搜索" href="../search.html" />
20+
21+
<link rel="stylesheet" href="../_static/custom.css" type="text/css" />
22+
23+
24+
<meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9" />
25+
26+
</head><body>
27+
28+
29+
<div class="document">
30+
<div class="documentwrapper">
31+
<div class="bodywrapper">
32+
33+
34+
<div class="body" role="main">
35+
36+
<h1>harvesttext 源代码</h1><div class="highlight"><pre>
37+
<span></span><span class="c1">#coding=utf-8</span>
38+
<span class="c1">#!/usr/bin/env python</span>
39+
<span class="kn">from</span> <span class="nn">.harvesttext</span> <span class="k">import</span> <span class="n">HarvestText</span>
40+
<span class="kn">from</span> <span class="nn">.resources</span> <span class="k">import</span> <span class="o">*</span>
41+
42+
<span class="kn">import</span> <span class="nn">pickle</span>
43+
<div class="viewcode-block" id="saveHT"><a class="viewcode-back" href="../harvesttext.html#harvesttext.saveHT">[文档]</a><span class="k">def</span> <span class="nf">saveHT</span><span class="p">(</span><span class="n">htModel</span><span class="p">,</span><span class="n">filename</span><span class="p">):</span>
44+
<span class="k">with</span> <span class="nb">open</span><span class="p">(</span><span class="n">filename</span><span class="p">,</span> <span class="s2">&quot;wb&quot;</span><span class="p">)</span> <span class="k">as</span> <span class="n">f</span><span class="p">:</span>
45+
<span class="n">htModel</span><span class="o">.</span><span class="n">prepared</span> <span class="o">=</span> <span class="kc">False</span>
46+
<span class="n">pickle</span><span class="o">.</span><span class="n">dump</span><span class="p">(</span><span class="n">htModel</span><span class="p">,</span><span class="n">f</span><span class="p">)</span></div>
47+
48+
<div class="viewcode-block" id="loadHT"><a class="viewcode-back" href="../harvesttext.html#harvesttext.loadHT">[文档]</a><span class="k">def</span> <span class="nf">loadHT</span><span class="p">(</span><span class="n">filename</span><span class="p">):</span>
49+
<span class="k">with</span> <span class="nb">open</span><span class="p">(</span><span class="n">filename</span><span class="p">,</span> <span class="s2">&quot;rb&quot;</span><span class="p">)</span> <span class="k">as</span> <span class="n">f</span><span class="p">:</span>
50+
<span class="n">ht</span> <span class="o">=</span> <span class="n">pickle</span><span class="o">.</span><span class="n">load</span><span class="p">(</span><span class="n">f</span><span class="p">)</span>
51+
<span class="n">ht</span><span class="o">.</span><span class="n">prepare</span><span class="p">()</span>
52+
<span class="k">return</span> <span class="n">ht</span></div>
53+
54+
</pre></div>
55+
56+
</div>
57+
58+
</div>
59+
</div>
60+
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
61+
<div class="sphinxsidebarwrapper">
62+
<h1 class="logo"><a href="../index.html">harvesttext</a></h1>
63+
64+
65+
66+
67+
68+
69+
70+
71+
<h3>导航</h3>
72+
73+
<div class="relations">
74+
<h3>Related Topics</h3>
75+
<ul>
76+
<li><a href="../index.html">Documentation overview</a><ul>
77+
<li><a href="index.html">模块代码</a><ul>
78+
</ul></li>
79+
</ul></li>
80+
</ul>
81+
</div>
82+
<div id="searchbox" style="display: none" role="search">
83+
<h3>快速搜索</h3>
84+
<div class="searchformwrapper">
85+
<form class="search" action="../search.html" method="get">
86+
<input type="text" name="q" />
87+
<input type="submit" value="转向" />
88+
<input type="hidden" name="check_keywords" value="yes" />
89+
<input type="hidden" name="area" value="default" />
90+
</form>
91+
</div>
92+
</div>
93+
<script type="text/javascript">$('#searchbox').show(0);</script>
94+
</div>
95+
</div>
96+
<div class="clearer"></div>
97+
</div>
98+
<div class="footer">
99+
&copy;2018, blmoistawinde.
100+
101+
|
102+
Powered by <a href="http://sphinx-doc.org/">Sphinx 1.7.6</a>
103+
&amp; <a href="https://github.com/bitprophet/alabaster">Alabaster 0.7.11</a>
104+
105+
</div>
106+
107+
108+
109+
110+
</body>
111+
</html>

0 commit comments

Comments
 (0)