Giter VIP home page Giter VIP logo

tethne's Introduction

Tethne Build Status

Tethne is a Python package for integrated bibliographic and corpus analysis developed by the Digital Innovation Group at Arizona State University. Tethne provides simple tools for generating networks from bibliographic datasets, and provides a framework for weaving together techniques from scientometrics, computational linguistics, topic modeling, and social influence modeling. Rather than reinvent or re-implement existing algorithms, Tethne is designed to interface with existing software packages, and to provide mechanisms for drawing the results and functionalities of those packages together.

Need help?

We now have a Google group for Tethne users: https://groups.google.com/forum/#!forum/tethne-users

Documentation

For more information, see the Tethne website.

The documentation project (ReST sources, etc.) can be found in tethne-docs.

Key features

  • Flexible core model for text and citation-data.
  • Provides core analytic features of popular citation-analysis software (e.g. Citespace).
  • Integrates popular topic modeling software (e.g. MALLET).
  • Export network models to mainstream formats (e.g. for visualization in Cytoscape).
  • Leverages powerful computational and network-analysis libraries in Python.

How to Contribute

  1. Fork this repository.

  2. Check out the develop branch: git checkout develop

  3. Create a new branch for your contribution, e.g. git checkout -b issue45

  4. Make your changes. Be sure to include a docstring for each function and class!

  5. Write tests. We aim for 95% test coverage. Put your tests in tests, where they belong.

  6. Ensure that all of your tests are passing. We use nose. Test with:

    $ nosetests --with-coverage --cover-package=tethne --cover-min-percentage=95
  7. Check for code cleanliness! Code should conform to PEP 0008. We use Pylint. For example:

    $ pylint tethne/mycontribution.py
  8. Create a pull request. Be sure to select diging/develop as the base branch.

Requirements

These should be installed automatically when you install Tethne, but just in case they aren't:

networkx>=1.8.1
Unidecode>=0.04.16
iso8601
rdflib

New in v0.7

v0.7 was a nearly ground-up refactor, resulting in a more modular and testable codebase and a simplified API. Here are some of the most notable changes:

  • Network-building functions were made significantly more abstract and flexible.
  • Numpy and SciPy are no longer required. We weren't really taking advantage of the performance gains afforded by those packages, and some users were running into installation issues with SciPy.
  • Plotting functionality has been removed. This was causing bloat, and we were making aesthetic and formatting decisions for the user that weren't easily customizable.
  • Huge improvements to the WoS reader. The old reader was bloated and suffered from some nasty bugs.
  • Re-designed Corpus and Paper classes. See the docs for more information.
  • Introduced Feature and FeatureSet classes to provide a more consistent and user-friendly mechanism for managing document features.

Contributors

License

Tethne is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

Tethne is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

alt text

About

Tethne is developed by the ASU Digital Innovation Group (DigInG), part of the Laubichler Lab in the Center for Biology & Society, School of Life Sciences.

This material is based upon work supported by the National Science Foundation Graduate Research Fellowship Program under Grant No. 2011131209, and NSF Doctoral Dissertation Research Improvement Grant No. 1256752.

Tethneus, an orb weaving spider

tethne's People

Contributors

aabaker99 avatar erickpeirson avatar gkumbhat avatar guilhermeleobas avatar nischalsamji avatar nowke avatar rsubra13 avatar rudi114 avatar tjquinn1 avatar yyk16293 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tethne's Issues

wos2meta chokes if first name is missing

Traceback (most recent call last):
  File "davidson_coauthors.py", line 19, in <module>
    meta_list = rd.wos2meta(wos_list)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/tethne/readers.py", line 246, in wos2meta
    auinit = name_tokens[1][1] #1 b/c of 'aulast, aufirst'
IndexError: list index out of range

Import tethne.writers

Traceback (most recent call last):
File "<pyshell#6>", line 1, in
import tethne.writers as wr
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/tethne/writers/init.py", line 7, in
import tethne.writers.collection
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/tethne/writers/collection.py", line 88
for i in sorted(nodes[n].keys()):

When trying to install via pip "No distributions matching the version for tethne"

Downloaded and unzipped tethne 0.6.2-beta, when running install from command line using pip unable to install

'''
Downloading/unpacking tethne
Could not find a version that satisfies the requirement tethne (from versions: 0.3.0-alpha, 0.3.1-alpha, 0.4.0-alpha, 0.4.2-alpha, 0.6.0-beta, 0.6.1-beta, 0.6.2-beta)
Cleaning up...
No distributions matching the version for tethne
Storing debug log for failure in /Users/Kenneth/.pip/pip.log
'''

screen shot 2014-08-18 at 9 34 18 pm

ValueError when building bibliographic coupling graph with threshold == 2

Using TethneGUI, downloaded Feb 27 @ 1pm. MacOSX.

----------------------------------------
    Workflow step: Graph
----------------------------------------
Loading DataCollection with slices from /Users/Bianca/Desktop/PMS Tethne/tmp_DST1315262543/DST1315262543_DataCollection_sliced.pickle...done.
Using first slice in DataCollection: date.

Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/Users/Bianca/Downloads/TethneGUI-2/configuration/org.eclipse.osgi/bundles/2/1/.cp/python/tethne/__main__.py", line 403, in <module>
    kwargs['threshold'] = int(options.threshold)
ValueError: invalid literal for int() with base 10: '2.0'

Mechanism to import Zotero collection with full-texts from PDFs

Many users build text collections in Zotero, which can download full-text PDFs from JSTOR, PubMed, and other sources. Zotero uses pdf2text to extract articulated plain text from PDFs. A user should be able to export their Zotero collection (in Zotero RDF, say) and load it directly into a Tethne a Corpus object.

writers.graph.to_graphml: date should be an integer, not a string

From a .graphml document generated by tethne v0.6.1-beta:

<graphml xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd">
  <key attr.name="weight" attr.type="double" for="edge" id="weight" />
  <key attr.name="atitle" attr.type="string" for="node" id="atitle" />
  <key attr.name="jtitle" attr.type="string" for="node" id="jtitle" />
  <key attr.name="id" attr.type="string" for="node" id="id" />
  <key attr.name="date" attr.type="string" for="node" id="date" />

utilities.handle_attribs() sets all dates (other attributes?) to a single value

This dataset has papers from 1999-2013

>>> dates_meta = {}
>>> for node in meta_list:
...    if node['date'] not in dates_meta.keys(): dates_meta[node['date']] = 1
...    else: dates_meta[node['date']] += 1
>>> dates_meta.keys()
[1999,
 2000,
 2001,
 2002,
 2003,
 2004,
 2005,
 2006,
 2007,
 2008,
 2009,
 2010,
 2011,
 2012,
 2013]

But if I run biblio_coupling, and then pull out the nodes, all nodes have date=1999:

>>> dates = {}
>>> for node in bc_nodes:
...     if node[1]['date'] not in dates.keys(): dates[node[1]['date']] = 1
...     else: dates[node[1]['date']] += 1
>>> dates.keys()
[1999]

Seems to do the same thing with titles.

KeyError while trying to create a topicmodel

Hi there,

I have been trying to follow the tutorial on topic modelling on the main tethne website. I installed anaconda, tethne, nltk, and also mallet. But when I run the line

MyLDAModel = MyManager.build(Z=50, max_iter=300, prep=True)

i get the following error

Traceback (most recent call last):
File "", line 1, in
File "//anaconda/lib/python2.7/site-packages/tethne/model/managers/init.py", line 108, in build
self.prep()
File "//anaconda/lib/python2.7/site-packages/tethne/model/managers/init.py", line 89, in prep
self._generate_corpus(meta)
File "//anaconda/lib/python2.7/site-packages/tethne/model/managers/mallet.py", line 152, in _generate_corpus
vocab=self.D.features[self.feature]['index'] )
File "//anaconda/lib/python2.7/site-packages/tethne/writers/corpora.py", line 59, in to_documents
meta += [ str(metadict[p][f]) for f in metakeys ]
KeyError: '10.1525/rac.2006.16.1.95'

I will appreciate all the help in this regard

a small mistake in the documentation

Hi Erick,

In your tethne 0.6.1 beta documentation, the section of Load some data, there is a mistake. See below:

from tethne.readers import wos
C = dfr.read_corpus('/path/to/my/wosdata.txt') -------This one should be wos.read_corpus instead of dfr.read_corpus.

Thanks

Y

GraphCollection.build should not overwrite method_kwargs

GraphCollection.build is currently overwriting method_kwargs, which means that the user has no control over node_id. This causes problems for networks.papers.cocitation, because WoS corpora are indexed by wosid by default; .build sets node_id by Corpus.indexed_by, which is inappropriate for cited references (which lack wosids).

TypeError Traceback fig = C.plot_distribution('jtitle') """using wos data"""

screen shot 2014-08-13 at 11 46 45 am

screen shot 2014-08-13 at 11 50 09 am

'\n--------------------------------------------------------------------------\nTypeError Traceback (most recent call last)\n in ()\n----> 1 fig = C.plot_distribution('jtitle')\n\n/Users/Kenneth/anaconda/lib/python2.7/site-packages/tethne/classes/corpus.pyc in plot_distribution(self, x_axis, y_axis, type, aspect, step, fig, mode, fkwargs, *_kwargs)\n 1509 yvals = self.feature_distribution(featureset, feature, x_axis,\n 1510 mode=fmode, normed=fnormed)\n-> 1511 plt.dict[type](xkeys, yvals, **kwargs)\n 1512 plt.xlim(xkeys[0], xkeys[-1]) # Already sorted.\n 1513 else:\n\n/Users/Kenneth/anaconda/lib/python2.7/site-packages/matplotlib/pyplot.pyc in bar(left, height, width, bottom, hold, *_kwargs)\n 2513 ax.hold(hold)\n 2514 try:\n-> 2515 ret = ax.bar(left, height, width=width, bottom=bottom, *_kwargs)\n 2516 draw_if_interactive()\n 2517 finally:\n\n/Users/Kenneth/anaconda/lib/python2.7/site-packages/matplotlib/axes.pyc in bar(self, left, height, width, bottom, *_kwargs)\n 5051 r.get_path()._interpolation_steps = 100\n 5052 #print r.get_label(), label, 'label' in kwargs\n-> 5053 self.add_patch(r)\n 5054 patches.append(r)\n 5055 \n\n/Users/Kenneth/anaconda/lib/python2.7/site-packages/matplotlib/axes.pyc in add_patch(self, p)\n 1560 if p.get_clip_path() is None:\n 1561 p.set_clip_path(self.patch)\n-> 1562 self._update_patch_limits(p)\n 1563 self.patches.append(p)\n 1564 p._remove_method = lambda h: self.patches.remove(h)\n\n/Users/Kenneth/anaconda/lib/python2.7/site-packages/matplotlib/axes.pyc in _update_patch_limits(self, patch)\n 1578 vertices = patch.get_path().vertices\n 1579 if vertices.size > 0:\n-> 1580 xys = patch.get_patch_transform().transform(vertices)\n 1581 if patch.get_data_transform() != self.transData:\n 1582 patch_to_data = (patch.get_data_transform() -\n\n/Users/Kenneth/anaconda/lib/python2.7/site-packages/matplotlib/patches.pyc in get_patch_transform(self)\n 574 \n 575 def get_patch_transform(self):\n--> 576 self._update_patch_transform()\n 577 return self._rect_transform\n 578 \n\n/Users/Kenneth/anaconda/lib/python2.7/site-packages/matplotlib/patches.pyc in _update_patch_transform(self)\n 567 width = self.convert_xunits(self._width)\n 568 height = self.convert_yunits(self._height)\n--> 569 bbox = transforms.Bbox.from_bounds(x, y, width, height)\n 570 rot_trans = transforms.Affine2D()\n 571 rot_trans.rotate_deg_around(x, y, self._angle)\n\n/Users/Kenneth/anaconda/lib/python2.7/site-packages/matplotlib/transforms.pyc in from_bounds(x0, y0, width, height)\n 819 width and height may be negative.\n 820 """\n--> 821 return Bbox.from_extents(x0, y0, x0 + width, y0 + height)\n 822 \n 823 @staticmethod\n\nTypeError: cannot concatenate 'str' and 'float' objects\n'

Small fixes on SIF attribute files

Aaron, you may have already done this in your branch? In writers.to_sif():

  • The first line in each attribute file should be the name of the attribute,
  • For edge attributes, the relationship/predicate should be enclosed in parentheses.

E.g. if the interaction is:
Darwin cites Lamarck

An edge attribute file might look like:

date
Darwin (cites) Lamarck = 1859

Isolating co-citing papers {Enhancement}

I would like to be able to take two separate records, isolate the papers that cite both papers, and build networks and analyze just those co-citing documents.

Error when using tethne.writers.corpora.to_documents()

I'm using tethne to work with JSTOR DfR data. I'm using tethne to explicitly correlate wordcounts with DOIs. Working from the command line, when I correlated the wordcounts with the DOIs, I needed to export the information in a file, which I could then use in Mallet.

Problem: When I used the command: >>> wr.corpora.to_documents('./mycorpu1s', wordcounts),

I received the following error message: Traceback (most recent call last):
File "", line 1, in
File "/Applications/anaconda/lib/python2.7/site-packages/tethne/writers/corpora.py", line 36, in to_documents
for i in xrange(freq) ]) + '\n')
UnicodeEncodeError: 'ascii' codec can't encode character u'\u03c6' in position 17799: ordinal not in range(128)

bug in writers

>>> import tethne.writers as wr

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "tethne/writers/__init__.py", line 7, in <module>
    import tethne.writers.collection
  File "tethne/writers/collection.py", line 88
    for i in sorted(nodes[n].keys()):
                                    ^
SyntaxError: invalid syntax

networks.nx_biblio_coupling() chokes if record has no citations

>>> print [ i for i in range(len(meta_list)) if meta_list[i]['citations'] is None ]
[685]

Causes:

>>> bc = nt.nx_biblio_coupling(meta_list, 'ayjid', 2, 'ayjid', 'date')
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-97-51155c7d4843> in <module>()
----> 1 bc = nt.nx_biblio_coupling(meta_list, 'ayjid', 2, 'ayjid', 'date')

//anaconda/lib/python2.7/site-packages/tethne/networks.pyc in nx_biblio_coupling(doc_list, citation_id, threshold, node_id, *node_attribs)
    222                         for j in xrange(i+1, len(doc_list)):
    223                                 if doc_list[j]['citations'] is not None:
--> 224                                         #make a list of citation_id's for each document
    225                                         j_list = []
    226                                         for citation in doc_list[j]['citations']:

TypeError: 'NoneType' object is not iterable

Line 223 was my 10-second attempt to solve this problem, but it didn't work.

But if I...

meta_list[685]['citations'] = []

It proceeds without complaint.

AttributeError: 'module' object has no attribute 'corpus_from_dir'

Following the tutorial, I am running into problems with wos.corpus_from_dir(datapath).

The error message is as follows:

Traceback (most recent call last):
File "/Users/derycpainter/Desktop/WILLIAMS_57_networks/basic_coCitation", line 4, in
MyCorpus = wos.corpus_from_dir('datapath')
AttributeError: 'module' object has no attribute 'corpus_from_dir'

Here's a link to the page: http://bit.ly/1AwiZU9

Perhaps the module was renamed?

When loading JSTOR Dfr corpus, OSError occurs

Following the quickstart guide for loading data, after creating a corpus using JSTOR Dfr dataset, when trying to run the command to load JSTOR Dfr corpus

screen shot 2014-08-18 at 10 05 42 pm

OSError                                   Traceback (most recent call last)
<ipython-input-11-fdf5386772be> in <module>()
----> 1 Corpus = dfr.read_corpus('/Users/Kenneth/Downloads/Microbiome', 'uni')

/Users/Kenneth/anaconda/lib/python2.7/site-packages/tethne/readers/dfr.pyc in read_corpus(path, features, exclude, **kwargs)
    214     if features is not None:
    215         for feat in features:
--> 216             grams[feat+'grams'] = ngrams(path, feat, **kwargs)
    217 
    218     return Corpus(papers, features=grams, index_by='doi', exclude=exclude)

/Users/Kenneth/anaconda/lib/python2.7/site-packages/tethne/readers/dfr.pyc in ngrams(datapath, N, ignore_hash, mode)
    399         ngrams = {}
    400 
--> 401         for file in os.listdir(gram_path):
    402             if file.split('.')[-1] == 'XML':
    403                 root = ET.parse(gram_path + "/" + file).getroot()

OSError: [Errno 2] No such file or directory: '/Users/Kenneth/Downloads/Microbiome/ugrams'

Issue parsing some WoS exports with Group Authors.

Greetings all. Have been using Tethne as a means to parse the vast amounts of WoS exports I have for a particular project.

Out of 160 files (each containing the maximum 500 references), ~31 of them fail with the following error (although the actual string values vary):

In [19]: meta_list = rd.wos.convert(wos_list)
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-19-c13337f31f8c> in <module>()
----> 1 meta_list = rd.wos.convert(wos_list)

/usr/local/lib/python2.7/dist-packages/tethne/readers/wos.pyc in convert(wos_data)
    592                         #  as our mapping key to ensure consistency with older
    593                         #  datasets.
--> 594                         author_index = wos_dict['AF'].index(author)
    595                         #e.g."WU, ZD"
    596                         author_au = wos_dict['AU'][author_index].upper()

ValueError: 'Brazilian Aging Brain Study Grp' is not in list

For example, the only line "Brazilian Aging Brain Study Grp" appears in the file in question is:

data/ims/arrastra$ grep -H -r "Brazilian Aging Brain Study Grp" /data/arrastra/alzheimers_xph1_v4/Citations/
/data/arrastra/alzheimers_xph1_v4/Citations/sub1/savedrecs (12).txt.perror:CA Brazilian Aging Brain Study Grp
/data/arrastra/alzheimers_xph1_v4/Citations/sub1/savedrecs (12).txt.perror:   [Grinberg, L. T.; Alba, J. G.; Farfel, J. M.; Suemoto, C. K.; de Lucena Ferretti, R. E.; Leite, R. E. P.; de Andrade, M. P.; Pasqualucci, C. A.; Nitrini, R.; Jacob-Filho, W.; Brazilian Aging Brain Study Grp] Univ Sao Paulo, Sch Med, Brazilian Aging Brain Study Grp LIM22, Sao Paulo, Brazil.

I could easily add a check to ensure that the value is in fact present in the list, but that wouldn't really be solving the issue. Perhaps this is failing due to the fact that it is listed as a "Group Author" (WoS Field = CA)?

Thanks!

KeyError when using plot_burstness on unigram featureset

>>> corpus.contents_to_features(stem=False)
>>> corpus.slice('date', 'time_window', window_size=4)
>>> fig3 = plot_burstness(corpus, 'contentsTerms', k=10, perslice=True)
---------------------------------------------------------------------------
KeyError                                  Traceback (most recent call last)
<ipython-input-396-b7e05d728d81> in <module>()
----> 1 fig3 = plot_burstness(corpus, 'contentsTerms', k=10, perslice=True)

//anaconda/lib/python2.7/site-packages/tethne/analyze/corpus.pyc in plot_burstness(corpus, feature, k, topn, perslice, flist, normalize, fig, **kwargs)
    149 
    150     B = burstness(corpus, feature, k=k, topn=topn, perslice=perslice,
--> 151                                 flist=flist, normalize=normalize, **kwargs)
    152 
    153     color = kwargs.get('color', 'red')

//anaconda/lib/python2.7/site-packages/tethne/analyze/corpus.pyc in burstness(corpus, feature, k, topn, perslice, flist, normalize, **kwargs)
    270         feat = corpus.features[feature]['index'][f]
    271         B[feat] = feature_burstness(corpus, feature, f, k=k,
--> 272                                             normalize=normalize, **kwargs)
    273     return B
    274 

//anaconda/lib/python2.7/site-packages/tethne/analyze/corpus.pyc in feature_burstness(corpus, feature, findex, k, normalize, **kwargs)
    333         if i not in A:
    334             A[d] = []
--> 335         A[d].append(st[i])
    336 
    337     # Get mean burstness for each year.

KeyError: 1971

mycorpus_meta.csv file not created

Working with DfR data, the mycorpus_doc.txt file is created, but the mycorpus_meta.csv is not.

import tethne.readers as rd
datapath = '/Users/derycpainter/Desktop/Research/1-12-15/125_records_williams57'
wordcounts = rd.dfr.ngrams(datapath, N='uni')
import tethne.writers as wr
wr.corpora.to_documents('./mycorpus', wordcounts)

ParseError when using dfr.read_corpus

image

<abstract>Background. We hypothesized that the inflammatory response in the lungs of children with cystic fibrosis (CF) would vary with the type of infecting organism, being greatest with Pseudomonas aeruginosa and Staphylococcus aureus. Methods. A microbiological surveillance program based on annual bronchoalveolar lavage (BAL) collected fluid for culture and assessment of inflammation was conducted. Primary analyses compared inflammation in samples that grew a single organism with uninfected samples in cross-sectional and longitudinal analyses. Results. Results were available for 653 samples from 215 children with CF aged 24 days to 7 years. A single agent was associated with pulmonary infection (≥10 5 cfu/mL) in 67 BAL samples, with P. aeruginosa (n = 25), S. aureus (n = 17), and Aspergillus species (n = 19) being the most common. These microorganisms were associated with increased levels of inflammation, with P. aeruginosa being the most proinflammatory. Mixed oral flora (MOF) alone was isolated from 165 BAL samples from 112 patients, with 97 of these samples having a bacterial density ≥10 5 cfu/mL, and was associated with increased pulmonary inflammation (P <.001). For patients with current, but not past, infections there was an association with a greater inflammatory response, compared with those who were never infected (P <.05). However, previous infection with S. aureus was associated with a greater inflammatory response in subsequent BAL. Conclusions. Pulmonary infection with P. aeruginosa, S. aureus, or Aspergillus species and growth of MOF was associated with significant inflammatory responses in young children with CF. Our data support the use of specific surveillance and eradication programs for these organisms. The inflammatory response to MOF requires additional investigation.</abstract>

tethne.classes.corpus.from_hdf5 does not load Papers

hcorpus = HDF5Corpus([], datapath='/Users/erickpeirson/Desktop/ed_journals/Corpus-66bb6a39-14f6-4e7e-b384-976d26e326ef.h5')
corpus = from_hdf5(hcorpus)
corpus.all_papers()[0]
---------------------------------------------------------------------------
IndexError                                Traceback (most recent call last)
<ipython-input-10-715f674bc396> in <module>()
----> 1 corpus.all_papers()[0]

IndexError: list index out of range

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.