nlp :: NLPProcessor
NLPProcessor provides natural language processing for input text and files. Analyzed documents can be manipulated through the resulting NLPDocument.
nlp :: NLPProcessor :: defaultinit
nlp :: NLPProcessor :: process
Creates a new NLPDocument from a stringnlp :: NLPProcessor :: process_file
Creates a new NLPDocument from a file contentnlp :: NLPProcessor :: process_files
Creates a new NLPDocument from a list of files (batch mode)nlp $ NLPProcessor :: SELF
Type of this instance, automatically specialized in every classcore :: Object :: class_factory
Implementation used byget_class to create the specific class.
			core :: Object :: defaultinit
nlp :: NLPProcessor :: defaultinit
core :: Object :: is_same_instance
Return true ifself and other are the same instance (i.e. same identity).
			core :: Object :: is_same_serialized
Isself the same as other in a serialization context?
			core :: Object :: is_same_type
Return true ifself and other have the same dynamic type.
			core :: Object :: output_class_name
Display class name on stdout (debug only).nlp :: NLPProcessor :: process
Creates a new NLPDocument from a stringnlp :: NLPProcessor :: process_file
Creates a new NLPDocument from a file contentnlp :: NLPProcessor :: process_files
Creates a new NLPDocument from a list of files (batch mode)
# Natural Language Processor
#
# NLPProcessor provides natural language processing for input text and files.
# Analyzed documents can be manipulated through the resulting NLPDocument.
interface NLPProcessor
	# Creates a new NLPDocument from a string
	fun process(string: String): NLPDocument is abstract
	# Creates a new NLPDocument from a file content
	fun process_file(path: String): NLPDocument do
		var content = path.to_path.read_all
		return process(content)
	end
	# Creates a new NLPDocument from a list of files (batch mode)
	#
	# Returns a map of file path associated with their NLPDocument.
	fun process_files(paths: Array[String]): Map[String, NLPDocument] do
		var res = new HashMap[String, NLPDocument]
		for file in paths do
			res[file] = process_file(file)
		end
		return res
	end
end
					lib/nlp/stanford.nit:25,1--50,3