Tag:nesting

  • [pointer network series 1] – globalpointer NER

    Time:2022-6-6

    Write in front ​ This series mainly shows the achievements of pointer network in NER and relation extraction series, and summarizes the advantages and disadvantages and theoretical analysis according to the notes of the leaders. GlobalPointer ​ In the previous work, weNERTraditionalLSTM+CRFThe indicators in each field have also achieved good results. The simple field is […]

  • Sass @media instruction

    Time:2022-6-5

    In this section, we learn [email protected],@mediaThe command is used to set the style rules to different media types, which is similar to the use rules of CSS, but it is also [email protected] can be nested in sass selectors. It is similar to the JS bubble function, which bubbles to the top of the stylesheet. @Use […]

  • Mongodb handy notes (II)

    Time:2022-5-31

    I Nested addition of documents Now to the databaseage:“2”The document object of is added with an attribute called hobby, which is divided into games and sports. The sports and games also include options such as hero League and basketball. First of all, this must involve adding this attribute. There is no doubt about the choicedb.grade.update。 […]

  • Burst the liver for three days, learn SCSS – read this article is enough

    Time:2022-5-24

    preface Today is different from the past. We can only cut pictures by ourselves! stayJavasScripWhen the frame was flying all over the sky, the front end was one of the three board axesCSSAlso gushed forward and backwardSass、Less 、StylusEtcCSSPreprocessing framework. Today we are going to talk about the big brotherSassUpgraded version ofScss,ScssIt provides us with a […]

  • Learn react (V) – routing router through Vue

    Time:2022-5-22

    Routing implementation of react router V6 Just like it install pnpm add react-router-dom Complete code # App.tsx function App() { return ( <div className=”App”> <nav style={{ margin: 10 }}> <Link to=”/” style={{ padding: 5 }}> Home </Link> <Link to=”/about” style={{ padding: 5 }}> About </Link> <Link to=”/list” style={{ padding: 5 }}> About </Link> </nav> <Routes> […]

  • Easy to understand lexical scope

    Time:2022-5-21

    What is lexical scope In short, it is the function scope determined at compile time example var value = 1; function bar() { var value = 2; function foo() { console.log(value); } foo(); } bar(); //2 The answer to the above code is 2. Because bar and foo are nested, their lexical scope is already […]

  • Study day 5.2

    Time:2022-5-19

    C language If — the representative statement and judgment condition of the selection structure if If else if else if else、 int num = 100; int cost = 0; if (num > 200) cost = 1; else if (num > 300) cost = 2; else if (num > 80) cost = 3; else if (num […]

  • JavaScript asynchronous programming – Basics

    Time:2022-5-19

    Ajax requests are very common in the front-end field. I believe every front-end Er has written the following code: //Prerequisite: introducing jquery $.ajax({ type: ‘get’, url: ‘/path/to/data’, success: function (response) { }, error: function (errMsg) { } }) Success and error in the above code are called callback functions. Based on the characteristics of JS […]

  • Swift Associated Object

    Time:2022-5-17

    Associated objects in swift Use the associated object to add the instance field in the extension. You need to define a local variable (private var key: uint8) to get the address. Swift extension is much better than Objective-C category. Extension can add computational attributes to existing classes, but it still cannot add storage attributes. Swift […]

  • App performance optimization

    Time:2022-5-17

    App performance optimization RecyclerView 1. Onbindviewholder runs on the UI thread, which is not suitable for time-consuming operations such as logic. It is only suitable for filling data into the view; 2. Use the under the support packageDiffUtilFor local refresh processing, diffutil (which also calls the local refresh method internally) can compare the difference of […]

  • Nested routing in react router V6

    Time:2022-5-14

    There are many articles about how to achieve the effect of route nesting through < route > nesting in react router V6. This paper introduces how to realize nested routing through route table Nesting in V5 routing table To use the routing table in V5, you need to install another packagereact-router-config, create a router configuration […]

  • Alibaba cloud ECS: Ubuntu 20 04 installing laravel operating environment

    Time:2022-5-5

    Create www users and user groups and / data / www, / data / log directory useradd www -m chown -R www:www /data ssh-keygen -t rsa -C “[email protected]” Initialize system export LC_ALL=”en_US.UTF-8″ echo “LC_ALL=en_US.UTF-8” >> /etc/default/locale locale-gen en_US.UTF-8 locale-gen zh_CN.UTF-8 ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime apt-get update apt-get install -y software-properties-common Initialize software source add-apt-repository -y […]