Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
使用带有 utf8 的 NLTK 分词器 [重复]
这个问题在这里已经有答案了 我是 Python 的一个相当新的用户 我主要处理导入的文本文件 尤其是 csv 文件 这让我处理起来很头疼 我尝试阅读这样的文档 https docs python org 2 howto unicode ht
python
csv
NLTK
了解二元组和三元组的 NLTK 搭配评分
背景 我正在尝试比较单词对 看看哪一对在美国英语中比另一对 更有可能出现 我的计划是使用 NLTK 中的搭配工具对单词对进行评分 得分较高的对是最有可能的 方法 我使用 NLTK 在 Python 中编写了以下代码 为简洁起见 删除了几个步
python
NLP
NLTK
将 NLTK Rake 应用于 Dataframe 中的每一行
我想应用 Rake 函数 https pypi org project rake nltk https pypi org project rake nltk 到我的数据框中的每一行 我可以将该函数单独应用于特定行 但不能将其附加到数据帧 这
python
pandas
NLTK
Pickling 经过训练的 NLTK 模型
所以我目前正在一组手术数据上训练隐马尔可夫模型 如下所示 nltkTrainer nltk tag hmm HiddenMarkovModelTrainer range 15 range 90 model nltkTrainer train
python
python27
NLTK
pickle
hiddenmarkovmodels
nltk:如何防止专有名词的词干
我正在尝试使用斯坦福词性标注器和 NER 编写一个关键字提取程序 对于关键字提取 我只对专有名词感兴趣 这是基本方法 通过删除字母以外的任何内容来清理数据 删除停用词 每个词的词干 确定每个单词的 POS 标签 如果 POS 标签是名词 则
python
NLP
NLTK
stanfordnlp
stemming
如何制作 iPython/Jupyter 中内联的 NLTK draw() 树
对于 iPython Jupyter 中的 Matplotlib 绘图 您可以使笔记本绘图内联 matplotlib inline 如何对树的 NLTK draw 做同样的事情 这是文档http www nltk org api nltk
ipython
draw
NLTK
jupyter
如何遍历NLTK树对象?
给定一个括号内的解析 我可以将其转换为 NLTK 中的 Tree 对象 如下所示 gt gt gt from nltk tree import Tree gt gt gt s ROOT S NP NNP Europe VP VBZ is P
Parsing
Tree
NLP
NLTK
depthfirstsearch
如何使用 spacy 的词形还原器将单词转化为基本形式
我是 spacy 的新手 我想使用它的 lemmatizer 函数 但我不知道如何使用它 就像我进入单词字符串一样 它将返回具有单词基本形式的字符串 例子 单词 gt 单词 做了 gt 做 谢谢 之前的答案很复杂 无法编辑 所以这里是一个更
python
NLTK
spacy
lemmatization
如何将NLTK块输出到文件?
我有这个 python 脚本 我使用 nltk 库来解析 标记 标记和分块一些让我们说来自网络的随机文本 我需要格式化并在文件中写入输出chunked1 chunked2 chunked3 这些有类型class nltk tree Tree
python
regex
fileio
NLP
NLTK
希望从句子中提取复合名词形容词对。所以,基本上我想要这样的东西:
对于形容词 The company s customer service was terrible customer service terrible 对于动词 They kept increasing my phone bill phon
python
NLTK
spacy
在python中使用bing或google API获取位置坐标
这是我的问题 我有一个示例文本文件 我在其中通过抓取各种 html 页面来存储文本数据 该文本包含有关各种事件及其时间和地点的信息 我想获取这些位置的坐标 我不知道如何在 python 中做到这一点 我正在使用 nltk 来识别此示例文本中
python
googlemaps
Coordinates
bingmaps
NLTK
需要在NLTK和Python中设置分类语料阅读器,语料文本在一个文件中,每行一个文本
我通过 Jacob Perkins 的书 Python Text Handling with NLTK 2 0 Cookbook 逐渐熟悉了 NLTK 和文本分类 我的语料库文档 文本每个都包含一段文本 因此每个文本都位于单独的文件行中 而
python27
Text
NLTK
corpus
categorization
斯坦福大学对 Python NLTK 的通用依赖关系
有什么方法可以使用 python 或 nltk 获取通用依赖项吗 我只能生成解析树 Example 输入句子 My dog also likes eating sausage Output Universal dependencies nm
python
NLP
NLTK
stanfordnlp
NLTK导入错误
我是 Python 和 NLTK 的新手 我一直在尝试寻找解决问题的方法 但尚未找到解决方案 希望有人可以帮助我 我目前运行的是 64 位 Windows 8 我已按照 NLTK 网站上的说明进行操作 http www nltk org i
Windows
python27
64bit
NLTK
如何使用 Python NLTK 计算 WordNet 中两个形容词之间的最短路径(测地线)距离?
使用几个内置的相似性度量可以轻松计算 WordNet 中两个同义词集之间的语义相似性 例如 synset1 path similarity synset2 synset1 lch similarity synset2 Leacock Cho
python
NLP
NLTK
WordNet
cosinesimilarity
MaltParser 在 Python NLTK 中不工作
我无法让 Maltparser 与 Python NLTK 一起使用 到目前为止 这是我的代码 import nltk os environ MALT PARSER C Python34 maltparser 1 8 1 os enviro
python
Parsing
NLTK
Python 中的 HTML 文件解析
我有一个很长的 html 文件 看起来完全像这样 html文件 我希望能够解析该文件 以便获得 tuple 表单中的信息 Example tr td Cech td td Chelsea td td 30 td td 6 4 td tr 上
python
html
beautifulsoup
NLTK
在 PyCharm 上导入 NLTK 时出错
我试图在 PyCharm 中导入 NLTK 并收到以下错误 我使用的是 Mac OS 10 5 8 和 Python 2 7 6 可能发生什么事 我对编程完全陌生 如果我缺少一些基本的东西 我很抱歉 安装软件包失败 安装软件包 nltk 时
python
NLTK
pycharm
将文本拆分为段落 NLTK - nltk.tokenize.texttiling 的用法?
我正在寻找将文档分成段落的方法 我遇到了文本平铺作为一种可能的方法来做到这一点 这是我使用它的尝试 但是 我不明白如何处理输出 我很感激你的帮助 t unidecode doclist 0 decode utf 8 ignore nltk
python
NLTK
使用 Wordnet Synset 的定义方法未获得所需的输出
from nltk corpus import wordnet syn wordnet synsets cookbook 0 print syn definition 预期输出 a book of recipes and cooking d
python
output
NLTK
owl
WordNet
«
1 ...
8
9
10
11
12
13
14
15
»