首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >字表-uima ruta

字表-uima ruta
EN

Stack Overflow用户
提问于 2016-05-20 07:51:44
回答 1查看 259关注 0票数 3

实际上,我在Wordlist.In中使用了一些城市名称和出版商名称--我的理解是,Wordlist将注释document.But中任何列表项的所有出现,当我更改列表中文本的顺序时,出现的次数增加或减少。

例如:

剧本:

代码语言:javascript
复制
 WORDLIST CITYPUBLIST='CITYPUB.txt';
 DECLARE CITYPUB;
 Document{ -> MARKFAST(CITYPUB, CITYPUBLIST)};
 WORDLIST JournalNameLIST='JournalName.txt';
 DECLARE JournalName;
 Document{ -> MARKFAST(JournalName, JournalNameLIST)};

Wordlist列表(CITYPUB.txt):

代码语言:javascript
复制
Arlington (VA): National Center for Education in Maternal and Child Health
[place unknown]: American Football Coaches Assn
[Bethesda (MD)]: The Institute
Chicago. Chicago: American Medical Association
Basil, Switzerland.Boston: MTB Press
St. Louis, MO. Washington: The Society
Chicago: University of Chicago Press

JournalName.txt:

代码语言:javascript
复制
Jpn J Med Sci Biol
J Immunol
Lancet
Pharm Res Commun
Behav Neuropsychiatry
J Pharm Pharm Sci
Cochrane Database Syst Rev 

样本输入:

代码语言:javascript
复制
1.Lawrence RA. A review of the medical benefits and contraindications to breastfeeding in the United States [Internet] . Arlington (VA): National Center for Education in Maternal and Child Health; 1997 Oct [cited 2000 Apr 24]. p. 40. Available from: www.ncemch.org/pubs/PDFs/Welcometojungle.pdf.
2.Shishido A. Retraction notice: Effect of platinum compounds on murine lymphocyte mitogenesis [Retraction of Alsabti EA, Ghalib ON, Salem MH. In: Jpn J Med Biol 1979 Apr; 32(2):53-65]. Jpn J Med Sci Biol 1980 Aug;33(4):235-237.
3.Leist TP, Zinkernagel RM. Effects of treatment with IL-2 receptor specific monoclonal antibody in mice [letter] [Retraction of Leist TP, Kohler M, Eppler M, Zinkernagel RM. In: J Immunol 1989 Jul 15; 143(2): 628-32]. J Immunol 1990 Apr 1;144(7):2847.
4.Alsabti EA, Ghalib ON, Salem MH. Effect of platinum compounds on murine lymphocyte mitogenesis [Retracted by Shishido A. In: Jpn J Med Sci Biol 1980 Aug; 33(4):235-7]. Jpn J Med Sci Biol 1979 Apr;32(2):53-65.
5.Meyer, Beat; Hermanns, Karl. Formaldehyde release from pressed wood products. In: Turoski, Victor, editor. Formaldehyde: analytical chemistry and toxicology. Proceedings of the symposium at the 187th meeting of the American Chemical Society; 1984 Apr 8-13; St. Louis, MO. Washington: The Society; 1985. p. 101-116.
6.Magni F, Rossoni G, Berti F. BN-52021 protects guinea-pig from heard anaphylaxis. Pharm Res Commun 1988 Dec;20 Suppl 5:75-78.
7.Garvia EE, DeHaven ED. An experimental analysis of response acquisition and elimination with positive reinforcers. Behav Neuropsychiatry 1975 April-1976 Mar;7(1-12):71-78.
8.Mueller FO, Schindler RD. Annual survey of football injury research 1931-1985. [place unknown]: American Football Coaches Assn; 1986. 24 p.
9.Stern, Michael P. National Institute of Arthritis, Diabetes, and Digestive and Kidney Diseases. Diabetes in America: diabetes data compiled 1984. [Bethesda (MD)]: The Institute; 1985 Aug. Diabetes in Hispanic Americans. Chapter 9. (NIH publication; no. 86-1468).
10.Vivian, Valerie L, editor. Child abuse and neglect: a medical community response. 1st AMA National Conference on Child Abuse and Neglect; 1984 March 30-June 31; Chicago. Chicago: American Medical Association; 1985. 256 p.
11.Popper, Hans, et al., editors. Structural carbohydrates in the liver: proceedings of the 34th Falk Symposium; 1982 oct 12-19; Basil, Switzerland.Boston: MTB Press; 1983. 701 p.
12.Tidy JA, Parry GC, Ward P, Coleman DV, Peto J, Malcolm AD, Farrell PJ. High rate of papillomavirus type 16 infection in cytologically normal cervices [letter] [Retracted by Tidy J, Farrell PJ. In: Lancet 1989 Dec 23-30:2(8678-8679):1535]. Lancet 1989 Feb 25;1(8635):434.
13.Thomas Bernard, A Party for Boris, in Histrionics: Three Plays, trans. Peter K. Jansen and Kenneth Northcott (Chicago: University of Chicago Press, 1990).

当我测试它时,我得到了CITYPUB(4).If --我在列表项目之前使用了一个空行,我正在接收CITYPUB(5)。

提前谢谢。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-05-20 12:59:48

该文件很可能以字节顺序标记(BOM)开头。你能检查一下是否有BOM,例如,用Notepad++吗?在UIMA Ruta中有一个悬而未决的问题,现在不支持BOMs的文件(UIMA Ruta 2.4.0)。要么删除BOM,要么在开头添加一个虚拟行(空行)。

(我是UIMA Ruta的开发者)

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/37341007

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档