All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edu.utah.bmi.nlp.fastcontext.package-info Maven / Gradle / Ivy

Go to download

FastContext is an optimized Java implementation of ConText algorithm (https://www.ncbi.nlm.nih.gov/pubmed/23920642). It runs two orders of magnitude faster than previous two popular implementations: JavaConText and GeneralConText. Version 2.0 includes UIMA wrapper

The newest version!
/*
 * ******************************************************************************
 *  * Copyright  2017  Department of Biomedical Informatics, University of Utah
 *  * 

* * Licensed under the Apache License, Version 2.0 (the "License"); * * you may not use this file except in compliance with the License. * * You may obtain a copy of the License at * *

* * http://www.apache.org/licenses/LICENSE-2.0 * *

* * Unless required by applicable law or agreed to in writing, software * * distributed under the License is distributed on an "AS IS" BASIS, * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * * See the License for the specific language governing permissions and * * limitations under the License. * ****************************************************************************** */ /** * * Note: * * Because FastContext does not implement real regular expression. Rather, it implements a few regular expression capability instead. * 1. use \w+ to represent a word (corresponding to any element in the input ArrayList of String or Span * 2. use "> number" (there is a whitespace between them) to represent any digit greater than the given "number" * As a results, you will need consider input digit as single token annotation/word, which is annotated differently in some parsers. * Please referring to the example rule file: "conf/context.txt" * * * @author Jianlin Shi */ package edu.utah.bmi.nlp.fastcontext;





© 2015 - 2024 Weber Informatics LLC | Privacy Policy