当前位置: 首页>>代码示例>>Python>>正文


Python AnnoDoc.add_tier方法代码示例

本文整理汇总了Python中annotator.annotator.AnnoDoc.add_tier方法的典型用法代码示例。如果您正苦于以下问题:Python AnnoDoc.add_tier方法的具体用法?Python AnnoDoc.add_tier怎么用?Python AnnoDoc.add_tier使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在annotator.annotator.AnnoDoc的用法示例。


在下文中一共展示了AnnoDoc.add_tier方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: test_extracted_reference_date

# 需要导入模块: from annotator.annotator import AnnoDoc [as 别名]
# 或者: from annotator.annotator.AnnoDoc import add_tier [as 别名]
    def test_extracted_reference_date(self):
        text = '10/10/14 It was 11am yesterday when I went to the beach. Tomorrow I head home.'
        doc = AnnoDoc(text)
        doc.add_tier(self.annotator)

        self.assertEqual(doc.text, text)

        self.assertEqual(len(doc.tiers['stanford.times'].spans), 3)

        self.assertEqual(
            doc.tiers['stanford.times'].spans[0].label, '2014-10-10')
        self.assertEqual(doc.tiers['stanford.times'].spans[0].text, '10/10/14')
        self.assertEqual(doc.tiers['stanford.times'].spans[0].start, 0)
        self.assertEqual(doc.tiers['stanford.times'].spans[0].end, 8)
        self.assertEqual(doc.tiers['stanford.times'].spans[0].type, 'DATE')

        self.assertEqual(
            doc.tiers['stanford.times'].spans[1].label, '2014-10-09T11:00')
        self.assertEqual(
            doc.tiers['stanford.times'].spans[1].text, '11am yesterday')
        self.assertEqual(doc.tiers['stanford.times'].spans[1].start, 16)
        self.assertEqual(doc.tiers['stanford.times'].spans[1].end, 30)
        self.assertEqual(doc.tiers['stanford.times'].spans[1].type, 'TIME')

        self.assertEqual(
            doc.tiers['stanford.times'].spans[2].label, '2014-10-11')
        self.assertEqual(doc.tiers['stanford.times'].spans[2].text, 'Tomorrow')
        self.assertEqual(doc.tiers['stanford.times'].spans[2].start, 57)
        self.assertEqual(doc.tiers['stanford.times'].spans[2].end, 65)
        self.assertEqual(doc.tiers['stanford.times'].spans[2].type, 'DATE')
开发者ID:ecohealthalliance,项目名称:annie,代码行数:32,代码来源:test_jvm_nlp_date_annotator.py

示例2: test_attribute_association

# 需要导入模块: from annotator.annotator import AnnoDoc [as 别名]
# 或者: from annotator.annotator.AnnoDoc import add_tier [as 别名]
 def test_attribute_association(self):
     doc = AnnoDoc("""
     The first deaths reported were a seventy-two year old woman
     and a 6 month old infant.
     """)
     doc.add_tier(self.annotator)
     test_utils.assertHasProps(doc.tiers['patientInfo'].spans[0].metadata, {
         'age' : {
             'number': 72,
             'year_units': True
         },
         'female': True,
         'death' : True
     })
     test_utils.assertHasProps(doc.tiers['patientInfo'].spans[1].metadata, {
         'age' : {
             'number': 6,
             'month_units': True
         },
         'death' : True
     })
     self.assertEqual(test_utils.get_path(
         doc.tiers['patientInfo'].spans[1].metadata,
         'count.female'
     ), None)
开发者ID:ecohealthalliance,项目名称:annie,代码行数:27,代码来源:eval_patient_info_annotator.py

示例3: test_relative_dates

# 需要导入模块: from annotator.annotator import AnnoDoc [as 别名]
# 或者: from annotator.annotator.AnnoDoc import add_tier [as 别名]
    def test_relative_dates(self):
        text = "Tomorrow I'm going to the symphony. In five days from now I'll wish it was yesterday."
        doc = AnnoDoc(text, date=datetime.datetime(2010, 10, 10))
        doc.add_tier(self.annotator)

        self.assertEqual(doc.text, text)

        self.assertEqual(len(doc.tiers['stanford.times'].spans), 3)

        self.assertEqual(
            doc.tiers['stanford.times'].spans[0].label, '2010-10-11')
        self.assertEqual(doc.tiers['stanford.times'].spans[0].text, 'Tomorrow')
        self.assertEqual(doc.tiers['stanford.times'].spans[0].start, 0)
        self.assertEqual(doc.tiers['stanford.times'].spans[0].end, 8)
        self.assertEqual(doc.tiers['stanford.times'].spans[0].type, 'DATE')

        self.assertEqual(
            doc.tiers['stanford.times'].spans[1].label, '2010-10-15')
        self.assertEqual(
            doc.tiers['stanford.times'].spans[1].text, 'five days from now')
        self.assertEqual(doc.tiers['stanford.times'].spans[1].start, 39)
        self.assertEqual(doc.tiers['stanford.times'].spans[1].end, 57)
        self.assertEqual(doc.tiers['stanford.times'].spans[1].type, 'DATE')

        self.assertEqual(
            doc.tiers['stanford.times'].spans[2].label, '2010-10-09')
        self.assertEqual(
            doc.tiers['stanford.times'].spans[2].text, 'yesterday')
        self.assertEqual(doc.tiers['stanford.times'].spans[2].start, 75)
        self.assertEqual(doc.tiers['stanford.times'].spans[2].end, 84)
        self.assertEqual(doc.tiers['stanford.times'].spans[2].type, 'DATE')
开发者ID:ecohealthalliance,项目名称:annie,代码行数:33,代码来源:test_jvm_nlp_date_annotator.py

示例4: test_duration_with_years

# 需要导入模块: from annotator.annotator import AnnoDoc [as 别名]
# 或者: from annotator.annotator.AnnoDoc import add_tier [as 别名]
    def test_duration_with_years(self):
        text = 'I lived there for three years, from 1999 until 2001'
        doc = AnnoDoc(text)
        doc.add_tier(self.annotator)

        self.assertEqual(doc.text, text)

        self.assertEqual(len(doc.tiers['stanford.times'].spans), 3)

        self.assertEqual(doc.tiers['stanford.times'].spans[0].label, 'P3Y')
        self.assertEqual(
            doc.tiers['stanford.times'].spans[0].text, 'three years')
        self.assertEqual(doc.tiers['stanford.times'].spans[0].start, 18)
        self.assertEqual(doc.tiers['stanford.times'].spans[0].end, 29)
        self.assertEqual(doc.tiers['stanford.times'].spans[0].type, 'DURATION')

        self.assertEqual(doc.tiers['stanford.times'].spans[1].label, '1999')
        self.assertEqual(doc.tiers['stanford.times'].spans[1].text, '1999')
        self.assertEqual(doc.tiers['stanford.times'].spans[1].start, 36)
        self.assertEqual(doc.tiers['stanford.times'].spans[1].end, 40)
        self.assertEqual(doc.tiers['stanford.times'].spans[1].type, 'DATE')

        self.assertEqual(doc.tiers['stanford.times'].spans[2].label, '2001')
        self.assertEqual(doc.tiers['stanford.times'].spans[2].text, '2001')
        self.assertEqual(doc.tiers['stanford.times'].spans[2].start, 47)
        self.assertEqual(doc.tiers['stanford.times'].spans[2].end, 51)
        self.assertEqual(doc.tiers['stanford.times'].spans[2].type, 'DATE')
开发者ID:ecohealthalliance,项目名称:annie,代码行数:29,代码来源:test_jvm_nlp_date_annotator.py

示例5: test_adjacent_state_name_2

# 需要导入模块: from annotator.annotator import AnnoDoc [as 别名]
# 或者: from annotator.annotator.AnnoDoc import add_tier [as 别名]
 def test_adjacent_state_name_2(self):
     doc = AnnoDoc("In the city of Springfield, IL.")
     doc.add_tier(self.annotator)
     self.assertEqual(
         doc.tiers['geonames'].spans[0].geoname['geonameid'], '4250542')
     self.assertEqual(
         doc.tiers['geonames'].spans[0].geoname['admin1_code'], 'IL')
开发者ID:ecohealthalliance,项目名称:annie,代码行数:9,代码来源:test_geoname_annotator.py

示例6: test_no_nes

# 需要导入模块: from annotator.annotator import AnnoDoc [as 别名]
# 或者: from annotator.annotator.AnnoDoc import add_tier [as 别名]
    def test_no_nes(self):
        text = 'I went to see her in a boat.'
        doc = AnnoDoc(text)
        doc.add_tier(self.annotator)

        self.assertEqual(doc.text, text)
        nes = doc.tiers['stanford.nes'].spans
        self.assertEqual(len(nes), 0)
开发者ID:ecohealthalliance,项目名称:annie,代码行数:10,代码来源:test_jvm_nlp_ne_annotator.py

示例7: test_bug_causing_sentence

# 需要导入模块: from annotator.annotator import AnnoDoc [as 别名]
# 或者: from annotator.annotator.AnnoDoc import add_tier [as 别名]
 def test_bug_causing_sentence(self):
     text = u"""
     In late June 2012, an increase in cases of prolonged fever for ≥3 days
     was reported from the Vanimo General Hospital in
     Vanimo, Sandaun Province.
     """
     doc = AnnoDoc(text)
     doc.add_tier(self.annotator)
开发者ID:ecohealthalliance,项目名称:annie,代码行数:10,代码来源:test_geoname_annotator.py

示例8: test_mulipart_names

# 需要导入模块: from annotator.annotator import AnnoDoc [as 别名]
# 或者: from annotator.annotator.AnnoDoc import add_tier [as 别名]
    def test_mulipart_names(self):
        text = 'I used to live in Seattle, WA'
        doc = AnnoDoc(text)
        doc.add_tier(self.annotator)

        self.assertEqual(doc.text, text)
        self.assertEqual(len(doc.tiers['geonames'].spans), 1)
        self.assertEqual(doc.tiers['geonames'].spans[0].text, "Seattle, WA")
开发者ID:ecohealthalliance,项目名称:annie,代码行数:10,代码来源:test_geoname_annotator.py

示例9: test_one_word_sentence

# 需要导入模块: from annotator.annotator import AnnoDoc [as 别名]
# 或者: from annotator.annotator.AnnoDoc import add_tier [as 别名]
    def test_one_word_sentence(self):

        doc = AnnoDoc("Hi")
        doc.add_tier(self.annotator)

        self.assertEqual(len(doc.tiers['ngrams'].spans), 1)

        self.assertEqual(doc.tiers['ngrams'].spans[0].text, 'Hi')
开发者ID:ecohealthalliance,项目名称:annie,代码行数:10,代码来源:test_ngram_annotator.py

示例10: test_duration_with_years2

# 需要导入模块: from annotator.annotator import AnnoDoc [as 别名]
# 或者: from annotator.annotator.AnnoDoc import add_tier [as 别名]
    def test_duration_with_years2(self):
        text = 'I lived there for three years, from 1999 until late 2001'
        doc = AnnoDoc(text)
        doc.add_tier(self.annotator)

        self.assertEqual(doc.text, text)

        self.assertEqual(len(doc.tiers['stanford.times'].spans), 3)

        self.assertEqual(doc.tiers['stanford.times'].spans[0].label, 'P3Y')
        self.assertEqual(
            doc.tiers['stanford.times'].spans[0].text, 'three years')
        self.assertEqual(doc.tiers['stanford.times'].spans[0].start, 18)
        self.assertEqual(doc.tiers['stanford.times'].spans[0].end, 29)
        self.assertEqual(doc.tiers['stanford.times'].spans[0].type, 'DURATION')
        self.assertEqual(
            doc.tiers['stanford.times'].spans[0].timeDuration.label, 'P3Y')

        self.assertEqual(doc.tiers['stanford.times'].spans[1].label, '1999')
        self.assertEqual(doc.tiers['stanford.times'].spans[1].text, '1999')
        self.assertEqual(doc.tiers['stanford.times'].spans[1].start, 36)
        self.assertEqual(doc.tiers['stanford.times'].spans[1].end, 40)
        self.assertEqual(doc.tiers['stanford.times'].spans[1].type, 'DATE')
        self.assertEqual(
            doc.tiers['stanford.times'].spans[1].timeRange.begin.year, 1999)
        self.assertEqual(
            doc.tiers['stanford.times'].spans[1].timeRange.begin.month, 1)
        self.assertEqual(
            doc.tiers['stanford.times'].spans[1].timeRange.begin.date, 1)
        self.assertEqual(
            doc.tiers['stanford.times'].spans[1].timeRange.end.year, 1999)
        self.assertEqual(
            doc.tiers['stanford.times'].spans[1].timeRange.end.month, 12)
        self.assertEqual(
            doc.tiers['stanford.times'].spans[1].timeRange.end.date, 31)

        self.assertEqual(doc.tiers['stanford.times'].spans[2].label, '2001')
        self.assertEqual(
            doc.tiers['stanford.times'].spans[2].text, 'late 2001')
        self.assertEqual(doc.tiers['stanford.times'].spans[2].start, 47)
        self.assertEqual(doc.tiers['stanford.times'].spans[2].end, 56)
        self.assertEqual(doc.tiers['stanford.times'].spans[2].type, 'DATE')
        self.assertEqual(
            doc.tiers['stanford.times'].spans[2].timeRange.mod, 'LATE')
        self.assertEqual(
            doc.tiers['stanford.times'].spans[2].timeRange.end.mod, None)
        self.assertEqual(
            doc.tiers['stanford.times'].spans[2].timeRange.begin.year, 2001)
        self.assertEqual(
            doc.tiers['stanford.times'].spans[2].timeRange.begin.month, 1)
        self.assertEqual(
            doc.tiers['stanford.times'].spans[2].timeRange.begin.date, 1)
        self.assertEqual(
            doc.tiers['stanford.times'].spans[2].timeRange.end.year, 2001)
        self.assertEqual(
            doc.tiers['stanford.times'].spans[2].timeRange.end.month, 12)
        self.assertEqual(
            doc.tiers['stanford.times'].spans[2].timeRange.end.date, 31)
开发者ID:ecohealthalliance,项目名称:annie,代码行数:60,代码来源:test_jvm_nlp_date_annotator.py

示例11: test_false_positive_counts

# 需要导入模块: from annotator.annotator import AnnoDoc [as 别名]
# 或者: from annotator.annotator.AnnoDoc import add_tier [as 别名]
 def test_false_positive_counts(self):
     examples = [
         "Measles - Democratic Republic of the Congo (Katanga) 2007.1775",
         "Meningitis - Democratic Republic of Congo [02] 970814010223"
     ]
     for example in examples:
         doc = AnnoDoc(example)
         doc.add_tier(self.annotator)
         self.assertEqual(len(doc.tiers['counts']), 0)
开发者ID:ecohealthalliance,项目名称:annie,代码行数:11,代码来源:test_count_annotator.py

示例12: test_url_names

# 需要导入模块: from annotator.annotator import AnnoDoc [as 别名]
# 或者: from annotator.annotator.AnnoDoc import add_tier [as 别名]
 def test_url_names(self):
     doc = AnnoDoc(u"""
     [1] Cholera - South Sudan
     Date: 19 Jul 2014
     Source: Radio Tamazuj [edited]
     https://radiotamazuj.org/en/article/south-sudan-100-total-cholera-deaths
     """)
     doc.add_tier(self.annotator)
     self.assertEqual(len(doc.tiers['geonames']), 1)
开发者ID:ecohealthalliance,项目名称:annie,代码行数:11,代码来源:test_geoname_annotator.py

示例13: test_northeast

# 需要导入模块: from annotator.annotator import AnnoDoc [as 别名]
# 或者: from annotator.annotator.AnnoDoc import add_tier [as 别名]
 def test_northeast(self):
     doc = AnnoDoc(u"""
      Instead, a novel virus was isolated from a patient’s blood. Since March 2010, there were frequent reports of a unique group of hospitalized patients who presented with clinical symptoms similar to those of SFTS in Central and Northeast China (Fig. 1). On the basis of data from a primary investigation in 2009, an enhanced surveillance was implement- ed in selected provinces in China to further in- vestigate the cause and epidemiologic character- istics of SFTS. Here we describe the discovery and characterization of a novel phlebovirus in the Bunyaviridae family, designated SFTS bunyavirus (SFTSV), which is associated with SFTS. We also discuss the clinical manifestations of SFTS and the epidemiologic investigations. Methods Case Definition and Surveillance Methods Since 2009, we have implemented an active sur- veillance program in selected areas in Hubei and Henan provinces to identify patients with SFTS. The syndrome was characterized by acute fever (temperatures of 38°C or more) and thrombocyto- penia (platelet count, <100,000 per cubic millime- ter) of unknown cause.2 We collected blood sam- ples from hospitalized patients whose symptoms fulfilled the criteria of the case definition. We excluded patients whose symptoms fit these crite- ria but who had other clinical or laboratory-con- firmed diagnoses. We defined a laboratory-confirmed case as meeting one or more of the following criteria: the isolation of SFTSV from the patient’s serum, the detection of SFTSV RNA in the patient’s se- rum during the acute phase of the illness, or the detection of seroconversion or an elevation by a factor of four in serum IgG antibodies against SFTSV on enzyme-linked immunosorbent assay (ELISA), indirect immunof luorescence assay, or neutralization testing in serum obtained during the convalescent phase. If possible, we collected serum samples within 2 weeks after the onset of fever and again during the convalescent phase. We also collected serum samples from 200 patient- matched healthy persons living in the same areas and during the same time period. The research protocol was approved by the human bioethics committee of the Chinese Center for Disease Con- trol and Prevention, and all participants provided written informed consent. Isolation of an Unknown Pathogen In June 2009, a blood sample in heparin antico- agulant was obtained on day 7 after the onset of illness from a patient from Xinyang City in Henan Province. Because the cause of the illness was un- known, we designed a strategy to isolate the patho- gen by inoculating multiple cell lines susceptible to both viral and rickettsial agents, including hu- man cell line HL60; animal cell lines DH82, L929, Vero, and Vero E6; and tick cell line ISE6. The pa- tient’s white cells were used to inoculate cell mono- layers. The cells were cultured at 37°C in a 5% carbon dioxide atmosphere with media changes twice a week. In 2010, we used a related strategy to isolate an additional 11 strains of the virus by inoculation of serum or homogenized white cells onto Vero cells. Electron Microscopy A DH82-cell monolayer that was infected with SFTSV in T25 flasks was fixed for transmission electron microscopy with Ito solution, as de- scribed previously.3 Ultrathin sections were cut on a Reichert–Leica Ultracut S ultramicrotome, stained with lead citrate and examined in a Phil- ips 201 or CM-100 electron microscope at 60 kV. Negative-stain electron microscopy was performed on virions purified from a clarified culture super- natant of infected Vero cells concentrated by a factor of 100.4,5 Genetic Analysis For the first SFTSV isolate, formalin-fixed cell cul- ture was used to extract viral RNA using a High Pure FFPE RNA Micro Kit (Roche Applied Sci- ence). The virus was sequenced with the use of the restriction-fragment–length-polymorphism assay with amplified complementary DNA, as described previously.6 For the remaining 11 strains of the virus, the whole genomes were sequenced with the use of the sequence-independent, single-primer amplification (SISPA) method.7 The 5' and 3' ter- minals of viral RNA segments were determined with a RACE Kit (Invitrogen). Phylogenetic analy- ses were performed with the neighbor-joining method with the use of the Poisson correction and complete deletion of gaps. Neutralization Assay For microneutralization testing, serial dilutions of serum samples were mixed with an equal vol- ume of 100 median tissue-culture infectious dos- es of SFTSV (strain HB29) and incubated at 37°C for 1.5 hours. The mixture was then added to a 96-well plate containing Vero cells in quadrupli- cate. The plates were incubated at 37°C in a 5% carbon dioxide atmosphere for 12 days. Viral in- fection was detected on specific immunofluores- cence assays in serum samples from patients with laboratory-confirmed infection. The end-point ti- ter was expressed as the reciprocal of the highest dilution of serum that prevented infection. Polymerase Chain Reaction RNA that was extracted from serum, whole blood, or homogenized arthropods was amplified with the use of a one-step, multiplex real-time reverse- transcriptase polymerase chain reaction (RT-PCR) with primers for SFTSV (Qiagen). The cutoff cycle- threshold value for a positive sample was set at 35 cycles. Nested RT-PCR and sequencing were used to verify samples from which only one ge- nomic segment was amplified. Virus Isolation The first SFTSV (strain DBM) was isolated from a 42-year-old man from Henan Province. A month after inoculation of cell monolayers with white cells obtained from the patient, virus-induced cellular changes visible on light microscopy (cyto- pathic effect) were observed in DH82 cells but not in the other cell lines. The morphologic features of infected DH82 cells changed from round mono- cytes to an elongated shape, which had granular particles in the cytoplasm (Fig. 2A). After several passages in culture, the cytopathic effect usually appeared on day 4 after inoculation of a fresh monolayer. Subsequently, 11 additional strains of the virus were isolated from serum samples ob- tained from patients during the acute phase of illness in six provinces with the use of Vero cells (Table 1 in the Supplementary Appendix, available with the full text of this article at NEJM.org). SFTSV can infect a variety of cells, including L929, Vero E6, Vero (Fig. 2B), and DH82 cells, but it re- sulted in the cytopathic effect only in DH82 cells. The viral particles were spheres with a diameter of 80 to 100 nm. Negative-stain electron microscopy of SFTSV particles that were purified from the su- pernatants of infected Vero cells revealed complex surface projections (Fig. 2C). Transmission electron microscopy revealed viral particles in the DH82-cell cytoplasm. The virions were observed inside vacu- oles, presumably in the Golgi apparatus (Fig. 2D). Partial sequences were obtained from the first isolated virus strain DBM, and the complete ge- nomes of 11 additional human isolates of SFTSV were determined. (GenBank accession numbers are provided in Table 1 in the Supplementary Ap- pendix.) All isolates including strain DBM were closely related (96% homology of nucleotide se- quences for all segments). The terminals of the three genomic segments of SFTSV were found to be similar to counterparts in other phlebovirus- es.8 The L segment contains 6368 nucleotides with one open reading frame encoding 2084 amino acids. The M segment contains 3378 nu- cleotides with one open reading frame encoding 1073 amino acid precursors of glycoproteins (Gn and Gc). The S segment contains 1744 nucleo- tides of ambisense RNA encoding two proteins, the N and NSs proteins, in opposite orientations, separated by a 62-bp intergenic region. Phylogenetic trees based on partial or complete viral genomic sequences of L, M, and S segments from strains DBM, HN6, and HB29 showed that SFTSV was related to prototypic viruses of the five genera of Bunyaviridae (Fig. 1 in the Supple- mentary Appendix). Among the genera orthobun- yavirus, hantavirus, nairovirus, phlebovirus, and tospovirus, SFTSV belongs to the phlebovirus genus8 but was more distantly related to proto- typic viruses in the other four genera. To verify this finding, we carried out a phylogenetic analy- sis, using complete deduced amino acid sequenc- es coding for RNA-dependent RNA polymerase, glycoproteins (Gn and Gc), and N and NSs pro- teins of SFTSV (strains HB29, HN6, AN12, LN2, JS3, and SD4) from six provinces in China, as com- pared with the other known phleboviruses (Fig. 3). The generated phylogenetic tree showed that all SFTSV isolates clustered together but were near- ly equidistant from the other two groups,9 the Sandfly fever group (Rift Valley fever virus, Punta Toro virus, Toscana virus, Massila virus, and Sandfly fever Sicilian virus) and the Uukuniemi group. This suggested that SFTSV is the proto- type of a third group in the phlebovirus genus. A comparison of the similarity of amino acid sequences provided further evidence that SFTSV is distinct from the other phleboviruses (Table 2 in the Supplementary Appendix). Both RNA- dependent RNA polymerase and glycoproteins of SFTSV are slightly more closely related to coun- terparts in Uukuniemi virus. However, N pro- teins in SFTSV and Rift Valley fever virus had 41.4% similarity. In contrast, the amino acids in NSs proteins encoded by the S segment showed a similarity of only 11.2 to 16.0% with amino acids in other phleboviruses. Serologic Analysis We evaluated seroconversion against SFTSV in pa- tients with SFTS using three different methods: immunof luorescence assay, ELISA, and microneu- tralization. We chose a cohort of 35 patients with RT-PCR–confirmed SFTSV infection who had se- rum samples from both acute and convalescent phases of the illness. An elevation in the anti- body titer by a factor of four or seroconversion was observed in all 35 patients, as seen especially on microneutralization (Table 1). These results indi- cated that high levels of neutralizing antibodies were generated during the convalescent phase of the illness. An antibody titer of more than 1:25,600 on ELISA was present in 15 convalescent-phase serum samples, indicating a robust humoral im- mune response against SFTSV. Among the 35 se- ropositive samples, all SFTSV infections were confirmed on viral RNA sequencing, and 11 were confirmed on virus isolation. It is noteworthy that specific neutralizing antibodies against SFTSV persisted in some convalescent-phase serum sam- ples even 1 year after recovery. Clinical Symptoms The first patient, a 42-year-old male farmer, pre- sented with fever (temperatures of 39.2 to 39.7°C), fatigue, conjunctival congestion, diarrhea, abdom- inal pain, leukocytopenia, thrombocytopenia, pro- teinuria, and hematuria. Later, a unique group of hospitalized patients with acute high fever with thrombocytopenia was identified. We analyzed only 81 patients with laboratory-confirmed SFTSV infection who had a complete medical record for the clinical spectrum of SFTS. The clinical symp- toms of SFTS were nonspecific, and the major symptoms included fever and gastrointestinal symptoms. Regional lymphadenopathy was also frequently observed (Table 2). The most common abnormalities on laboratory testing were thrombo- cytopenia (95%) and leukocytopenia (86%) (Table 3). Multiorgan failure developed rapidly in most patients, as shown by elevated levels of serum ala- nine aminotransferase, aspartate aminotransfer- ase, creatine kinase, and lactate dehydrogenase. Proteinuria (in 84% of patients) and hematuria (in 59%) were also observed. Among the 171 con- firmed cases, there were 21 deaths (12%). However, it is not clear how SFTSV caused these deaths. Epidemiologic Investigation From June 2009 through September 2010, we de- tected SFTS bunyavirus RNA, specific antiviral antibodies, or both in 171 patients among 241 hospitalized patients who met the case defini- tion for SFTS2 in Central and Northeast China. These patients included 43 in Henan, 52 in Hubei, 93 in Shandong, 31 in Anhui, 11 in Jiangsu, and 11 in Liaoning provinces. In 2010, a total of 148 of 154 laboratory-confirmed cases (96%) occurred from May to July. The ages of the patients ranged from 39 to 83 years, and 115 of 154 patients (75%) were over 50 years of age. Of these 154 patients, 86 (56%) were women, and 150 (97%) were farm- ers living in wooded and hilly areas and working in the fields before the onset of disease. No SFTSV was identified on real-time RT-PCR and no anti- bodies against SFTSV were identified in serum samples that were collected from 200 patient- matched healthy control subjects in the endemic areas, from 180 healthy subjects from nonendem- ic areas, and from 54 patients with suspected hem- orrhagic fever with renal syndrome. Mosquitoes and ticks were commonly found in the patients’ home environment. However, viral RNA was not detected in any of 5900 mosquitoes tested. On the other hand, 10 of 186 ticks (5.4%) of the species Haemaphysalis longicornis that were collected from domestic animals in the areas where the patients lived contained SFTSV RNA. The viruses in the ticks were isolated in Vero cell culture, and the RNA sequences of these viruses were very closely related but not identical to the SFTSV isolated in samples obtained from the patients (data not shown). There was no epidemiologic evidence of human-to-human transmission of the virus. Discussion Although we have not fulfilled Koch’s postulates for establishing a causal relationship between a mi- crobe and a disease in their entirety, our findings suggest that SFTS is caused by a newly identified bunyavirus. These data include epidemiologic, clinical, and laboratory findings and several lines of evidence that include virus isolation, viral RNA detection, and molecular and serologic analyses. SFTS has been identified in Central and Northeast China, which covers all six provinces where sur- veillance for SFTS was carried out.
      """)
     doc.add_tier(self.annotator)
     self.assertTrue(
         'Northeast' not in [
             span.text for span in doc.tiers['geonames'].spans]
     )
开发者ID:ecohealthalliance,项目名称:annie,代码行数:11,代码来源:test_geoname_annotator.py

示例14: test_internals

# 需要导入模块: from annotator.annotator import AnnoDoc [as 别名]
# 或者: from annotator.annotator.AnnoDoc import add_tier [as 别名]
 def test_internals(self):
     from annotator.count_annotator import search_spans_for_regex
     import annotator.result_aggregators as ra
     doc = AnnoDoc("Deaths: 2")
     doc.add_tier(self.annotator)
     ra.follows([
         search_spans_for_regex(
             'deaths(\s?:)?', doc.tiers['spacy.tokens'].spans),
         search_spans_for_regex('\d+', doc.tiers['spacy.tokens'].spans)])
开发者ID:ecohealthalliance,项目名称:annie,代码行数:11,代码来源:test_count_annotator.py

示例15: test_vietnamese

# 需要导入模块: from annotator.annotator import AnnoDoc [as 别名]
# 或者: from annotator.annotator.AnnoDoc import add_tier [as 别名]
 def test_vietnamese(self):
     # Normally this should be spelled Cao Bằng, but I want to test
     # that the ascii version works.
     doc = AnnoDoc(u"At Cao Bang, Vietnam 5 cases were recorded.")
     candidates = self.annotator.get_candidate_geonames(doc)
     gn_features = self.annotator.extract_features(candidates, doc)
     doc.add_tier(self.annotator)
     self.assertEqual(
         doc.tiers['geonames'].spans[0].geoname['geonameid'], '1586182')
开发者ID:ecohealthalliance,项目名称:annie,代码行数:11,代码来源:test_geoname_annotator.py


注:本文中的annotator.annotator.AnnoDoc.add_tier方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。