<img src="/docs/images/tf-small.png" align="left"/>
# Text-Fabric
[![sha](sha.png) Software Heritage Archive](https://archive.softwareheritage.org/browse/origin/https://github.com/annotation/text-fabric/)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.1008899.svg)](https://doi.org/10.5281/zenodo.592193)
[![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/2592/badge)](https://bestpractices.coreinfrastructure.org/projects/2592)
Text-Fabric is several things:
* a *browser* for ancient text corpora
* a Python3 package for processing ancient corpora
A corpus of ancient texts and linguistic annotations represents a large body of knowledge.
Text-Fabric makes that knowledge accessible to non-programmers by means of
built-in a search interface that runs in your browser.
From there the step to program your own analytics is not so big anymore.
You can export your results to Excel and work with them from there.
And if that is not enough,
you can call the Text-Fabric API from your Python programs.
This works really well in Jupyter notebooks.
# Apps
It is possible to prepare a dataset in TF format and extend Text-Fabric with an *app*
that has further knowledge of that specific dataset.
A TF-app takes care of automatic downloading of the dataset and it supports the Text-Fabric browser.
[Current TF apps](https://annotation.github.io/text-fabric/About/Corpora/)
# Install
Text Fabric is a Python(3) package on the Python Package Index, so you can install it easily with `pip` from
the command line. Here are the precise
[installation instructions](https://annotation.github.io/text-fabric/).
# Use
## On Windows?
You can click the Start Menu, and type `text-fabric bhsa` or `text-fabric uruk`
in the search box, and then Enter.
## On Linux or Macos?
You can open a terminal (command prompt), and just say
```sh
text-fabric bhsa
```
or
```sh
text-fabric uruk
```
The corpus data will be downloaded automatically,
and be loaded into text-fabric.
Then your browser will open and load the search interface.
There you'll find links to further help.
# Documentation
There is extensive documentation.
If you start using the Text-Fabric API in your programs, you'll need it.
Jump off to the [docs](https://annotation.github.io/text-fabric/)
# Data
In order to work with Text-Fabric, you need a dataset to operate on.
Such a data set must be in TF format.
If you have digital text that you control, in whatever format, and want to
convert it to *tf*,
Text-Fabric meets you half-way.
If you walk through the source, and tell TF what you see, it will pick that
up and compile a valid TF dataset out of it.
See the [conversion tutorial](https://nbviewer.jupyter.org/github/annotation/tutorials/blob/master/text-fabric/convert.ipynb).
# Contributing
Want to contribute?
Start with the [contribution notes](codestyle/contributing.md).
---
<a target="_blank" href="https://archive.softwareheritage.org/browse/origin/https://github.com/annotation/text-fabric/directory/"><img src="/docs/images/sha-logo.png" width="100" align="left"/></a>
**This repository is being archived continuously by the
[Software Heritage Archive](https://archive.softwareheritage.org).
If you want to cite snippets of the code of this repository, the Software Archive
offers an easy and elegant way to do so.
As an example, here I quote the
[*stitching* algorithm](https://archive.softwareheritage.org/swh:1:cnt:6169c074089ddc8a0e048cb67e1fec57857ef54d;lines=3224-3270/),
by means of which Text-Fabric Search collects the solutions of a
[search template](https://annotation.github.io/text-fabric/Use/Search/).
The quote refers directly to specific lines of code, deeply buried in
a Python file within a particular version of Text-Fabric.**
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
共114个文件
py:53个
woff:11个
ttf:10个
资源分类:Python库 所属语言:Python 资源全名:text-fabric-7.6.5.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
资源推荐
资源详情
资源评论
收起资源包目录
Python库 | text-fabric-7.6.5.tar.gz (114个子文件)
setup.cfg 38B
fontawesome.css 62KB
index.css 7KB
base.css 4KB
fonts.css 2KB
export.css 2KB
highlight.css 589B
.DS_Store 6KB
.DS_Store 6KB
SBL_Hbrw.eot 308KB
fa-solid-900.eot 187KB
SILEOT.eot 152KB
fa-brands-400.eot 122KB
fa-regular-400.eot 40KB
index.html 16KB
export.html 2KB
favicon.ico 1KB
MANIFEST.in 107B
jquery.js 85KB
tf.js 19KB
README.md 4KB
not-zip-safe 1B
SyrCOMEdessa.otf 78KB
PKG-INFO 2KB
PKG-INFO 2KB
dans.png 255KB
icon.png 34KB
relations.py 32KB
walker.py 24KB
transcription.py 19KB
syntax.py 18KB
mql.py 18KB
fabric.py 17KB
display.py 17KB
repo.py 16KB
data.py 16KB
stitch.py 15KB
semantics.py 13KB
kernel.py 12KB
spin.py 11KB
api.py 11KB
start.py 10KB
serve.py 9KB
helpers.py 8KB
wrap.py 7KB
prepare.py 7KB
searchexe.py 7KB
links.py 6KB
text.py 5KB
tables.py 5KB
search.py 5KB
zipdata.py 5KB
data.py 4KB
servelib.py 4KB
highlight.py 4KB
web.py 3KB
displaysettings.py 3KB
api.py 3KB
timestamp.py 2KB
setup.py 2KB
search.py 2KB
condense.py 2KB
locality.py 2KB
sections.py 2KB
command.py 2KB
helpers.py 2KB
app.py 1KB
graph.py 1KB
monitor.py 1KB
parameters.py 1KB
lib.py 813B
text.py 543B
app.py 518B
__init__.py 2B
__init__.py 2B
__init__.py 2B
__init__.py 2B
__init__.py 2B
__init__.py 2B
__init__.py 2B
fa-solid-900.svg 709KB
fa-brands-400.svg 684KB
fa-regular-400.svg 139KB
GentiumPlus-R.ttf 1.83MB
Santakku.ttf 478KB
SantakkuM.ttf 456KB
SBL_Hbrw.ttf 308KB
fa-solid-900.ttf 187KB
AmiriQuranColored.ttf 180KB
SILEOT.ttf 152KB
AmiriQuran.ttf 133KB
fa-brands-400.ttf 122KB
fa-regular-400.ttf 39KB
SOURCES.txt 3KB
entry_points.txt 95B
requires.txt 53B
top_level.txt 3B
dependency_links.txt 1B
GentiumPlus-R.woff 645KB
Santakku.woff 244KB
共 114 条
- 1
- 2
资源评论
挣扎的蓝藻
- 粉丝: 13w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功