Skip to main content

ne_pretty rule find entity

Project description

ne_pretty rule find entity

# -*- coding: utf-8 -*-
# @Time    : 2022/3/17 14:39
# @Author  : wyw

from ne_pretty import e_add_context
from ne_pretty import e_add_rule_context
from ne_pretty import e_do_connect
from ne_pretty import e_extend_prefix
from ne_pretty import e_extend_suffix
from ne_pretty import e_remove_prefix
from ne_pretty import e_remove_suffix

from ne_pretty import e_remove_contain
from ne_pretty import e_remove_eq
from ne_pretty import e_remove_dup


filename = r'C:\Users\acer\Desktop\demo\text.txt'

e_add_rule_context(filename,filename,'地点','(北京)')

#e_add_context(filename,filename,'地点','北京')


#e_remove_eq(filename,filename,'地点','北京')


#e_remove_suffix(filename,filename,'地点','北京')

#e_remove_prefix(filename,filename,'地点','北京')


#e_remove_contain(filename,filename,'作案手段')

#e_remove_dup(filename,filename)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

ne_pretty-0.0.4-py3-none-any.whl (14.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page